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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/intern/src/lib.rs b/crates/intern/src/lib.rs index d784321c7c..40d18b1cf8 100644 --- a/crates/intern/src/lib.rs +++ b/crates/intern/src/lib.rs @@ -174,6 +174,7 @@ pub struct InternStorage<T: ?Sized> { map: OnceLock<InternMap<T>>, } +#[allow(clippy::new_without_default)] // this a const fn, so it can't be default impl<T: ?Sized> InternStorage<T> { pub const fn new() -> Self { Self { map: OnceLock::new() } |