From ab69ea4ab4c32143ddad5376c84a5479cb348e94 Mon Sep 17 00:00:00 2001 From: Vivian Date: Wed, 23 Oct 2024 22:58:11 +0200 Subject: [PATCH] remove safety comment --- src/with_const_generics.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/with_const_generics.rs b/src/with_const_generics.rs index bc70007..fc9857d 100644 --- a/src/with_const_generics.rs +++ b/src/with_const_generics.rs @@ -181,10 +181,6 @@ impl ConstGenericRingBuffer { #[allow(clippy::let_unit_value)] let () = Self::ERROR_CAPACITY_IS_NOT_ALLOWED_TO_BE_ZERO; - // allow here since we are constructing an array of MaybeUninit - // which explicitly *is* defined behavior - // https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init - #[allow(clippy::uninit_assumed_init)] Self { buf: [const { MaybeUninit::::uninit() }; CAP], writeptr: 0,