diff --git a/crates/ruma-identifiers/src/macros.rs b/crates/ruma-identifiers/src/macros.rs index 095e14f6..d3c27eb6 100644 --- a/crates/ruma-identifiers/src/macros.rs +++ b/crates/ruma-identifiers/src/macros.rs @@ -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) } } diff --git a/crates/ruma-identifiers/src/server_name.rs b/crates/ruma-identifiers/src/server_name.rs index 74110d98..2cf0ea94 100644 --- a/crates/ruma-identifiers/src/server_name.rs +++ b/crates/ruma-identifiers/src/server_name.rs @@ -13,7 +13,6 @@ pub struct ServerName(str); pub type ServerNameBox = Box; impl ServerName { - #[allow(clippy::transmute_ptr_to_ptr)] fn from_borrowed(s: &str) -> &Self { unsafe { mem::transmute(s) } }