diff --git a/x11rb-protocol/src/wrapper.rs b/x11rb-protocol/src/wrapper.rs index 6e6f27bd..beeefed1 100644 --- a/x11rb-protocol/src/wrapper.rs +++ b/x11rb-protocol/src/wrapper.rs @@ -41,7 +41,7 @@ where } fn size_hint(&self) -> (usize, Option) { - let size = self.0.len() / core::mem::size_of::(); + let size = self.0.len() / size_of::(); (size, Some(size)) } }