Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/intern/src/lib.rs')
| -rw-r--r-- | crates/intern/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/intern/src/lib.rs b/crates/intern/src/lib.rs index 6548bb1826..e990490f5a 100644 --- a/crates/intern/src/lib.rs +++ b/crates/intern/src/lib.rs @@ -177,7 +177,10 @@ pub struct InternStorage<T: ?Sized> { map: OnceLock<InternMap<T>>, } -#[allow(clippy::new_without_default)] // this a const fn, so it can't be default +#[allow( + clippy::new_without_default, + reason = "this a const fn, so it can't be default yet. See <https://github.com/rust-lang/rust/issues/63065>" +)] impl<T: ?Sized> InternStorage<T> { pub const fn new() -> Self { Self { map: OnceLock::new() } |