Skip to content

Commit a5cbefd

Browse files
committed
fix warnings
1 parent a0b0938 commit a5cbefd

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

crates/hir-def/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ mod pretty;
6363
#[cfg(test)]
6464
mod test_db;
6565

66-
use std::{
67-
hash::{Hash, Hasher},
68-
panic::{RefUnwindSafe, UnwindSafe},
69-
};
66+
use std::hash::{Hash, Hasher};
7067

7168
use base_db::{impl_intern_key, CrateId};
7269
use hir_expand::{

crates/hir/src/symbols.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl<'a> SymbolCollector<'a> {
353353
}
354354
}
355355

356-
fn push_decl<'db, L>(&mut self, id: L, name: &Name, is_assoc: bool)
356+
fn push_decl<L>(&mut self, id: L, name: &Name, is_assoc: bool)
357357
where
358358
L: Lookup<Database = dyn DefDatabase> + Into<ModuleDefId>,
359359
<L as Lookup>::Data: HasSource,

crates/ide-db/src/traits.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
//! Functionality for obtaining data related to traits from the DB.
22
3-
use crate::{
4-
base_db::{salsa::AsDynDatabase, RootQueryDb},
5-
defs::Definition,
6-
RootDatabase,
7-
};
3+
use crate::{defs::Definition, RootDatabase};
84
use hir::{db::HirDatabase, AsAssocItem, Semantics};
95
use rustc_hash::FxHashSet;
106
use syntax::{ast, AstNode};

0 commit comments

Comments
 (0)