Skip to content

Commit

Permalink
remove safety comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NULLx76 committed Oct 23, 2024
1 parent 0ef1603 commit ab69ea4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/with_const_generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ impl<T, const CAP: usize> ConstGenericRingBuffer<T, CAP> {
#[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<T>
// 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::<T>::uninit() }; CAP],
writeptr: 0,
Expand Down

1 comment on commit ab69ea4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.