mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-23 10:33:52 +00:00
Fix new clippy lints
This commit is contained in:
parent
8e324e98a1
commit
2ae3e57c26
33 changed files with 31 additions and 42 deletions
|
@ -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() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue