From 6d7714944a1bd62f1ec3a1916a33d660a0dcb206 Mon Sep 17 00:00:00 2001 From: Anatol Ulrich <45840+spookyvision@users.noreply.github.com> Date: Tue, 13 Aug 2024 22:42:01 +0200 Subject: [PATCH] Update source/spitebuf/src/lib.rs Co-authored-by: Eliza Weisman --- source/spitebuf/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/spitebuf/src/lib.rs b/source/spitebuf/src/lib.rs index 589ad0cc..866d3650 100644 --- a/source/spitebuf/src/lib.rs +++ b/source/spitebuf/src/lib.rs @@ -179,7 +179,9 @@ pub fn cell_array() -> [Cell; N] { } impl Cell { - // 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);