Skip to content

Commit

Permalink
Update source/spitebuf/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Eliza Weisman <[email protected]>
  • Loading branch information
spookyvision and hawkw authored Aug 13, 2024
1 parent cdb25d4 commit 6d77149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/spitebuf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ pub fn cell_array<const N: usize, T: Sized>() -> [Cell<T>; N] {
}

impl<T> Cell<T> {
// TODO https://rust-lang.github.io/rust-clippy/master/index.html#/declare_interior_mutable_const
// This constant is used in a static initializer, so the clippy lint does not apply.
// See the "Known Problems" heading here:
// https://rust-lang.github.io/rust-clippy/master/index.html#/declare_interior_mutable_const
#[allow(clippy::declare_interior_mutable_const)]
const SINGLE_CELL: Self = Self::new(0);

Expand Down

0 comments on commit 6d77149

Please sign in to comment.