diff --git a/src/lib.rs b/src/lib.rs index e085f38..231bf81 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -249,7 +249,6 @@ impl TypeErasedVec { /// # Safety /// `T` must have the same `Layout` as the underlying capacity. pub unsafe fn as_type_unchecked(&mut self) -> ContentGuard<'_, T> { - #[cfg(debug_assertions)] let layout = self.layout; let res = self.try_as_type();