From be98362c289a991d5efe67ed88affed31072c785 Mon Sep 17 00:00:00 2001 From: soruh Date: Fri, 31 Jul 2026 04:03:09 +0200 Subject: [PATCH] Compile unchecked diagnostics in release mode --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) 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();