Skip to content

Commit abce16b

Browse files
committed
remove safety comment
1 parent cd04f2e commit abce16b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/with_const_generics.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ impl<T, const CAP: usize> ConstGenericRingBuffer<T, CAP> {
181181
#[allow(clippy::let_unit_value)]
182182
let () = Self::ERROR_CAPACITY_IS_NOT_ALLOWED_TO_BE_ZERO;
183183

184-
// allow here since we are constructing an array of MaybeUninit<T>
185-
// which explicitly *is* defined behavior
186-
// https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
187-
#[allow(clippy::uninit_assumed_init)]
188184
Self {
189185
buf: [const { MaybeUninit::<T>::uninit() }; CAP],
190186
writeptr: 0,

0 commit comments

Comments
 (0)