identifiers: Remove allow attribute

Seems to no longer be necessary.
This commit is contained in:
Jonas Platte 2021-06-21 12:24:05 +02:00
parent 59161b842b
commit 1eb2f39593
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 0 additions and 2 deletions

View File

@ -176,7 +176,6 @@ macro_rules! opaque_identifier {
}
impl $id {
#[allow(clippy::transmute_ptr_to_ptr)]
fn from_borrowed(s: &str) -> &Self {
unsafe { std::mem::transmute(s) }
}

View File

@ -13,7 +13,6 @@ pub struct ServerName(str);
pub type ServerNameBox = Box<ServerName>;
impl ServerName {
#[allow(clippy::transmute_ptr_to_ptr)]
fn from_borrowed(s: &str) -> &Self {
unsafe { mem::transmute(s) }
}