Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/change.rs')
-rw-r--r--crates/hir-expand/src/change.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/hir-expand/src/change.rs b/crates/hir-expand/src/change.rs
index 1fdf251ba5..7a42d66260 100644
--- a/crates/hir-expand/src/change.rs
+++ b/crates/hir-expand/src/change.rs
@@ -1,10 +1,8 @@
//! Defines a unit of change that can applied to the database to get the next
//! state. Changes are transactional.
-use base_db::{
- ra_salsa::Durability, CrateGraph, CrateId, CrateWorkspaceData, FileChange, SourceRoot,
- SourceRootDatabase,
-};
+use base_db::{CrateGraph, CrateId, CrateWorkspaceData, FileChange, SourceRoot};
use rustc_hash::FxHashMap;
+use salsa::Durability;
use span::FileId;
use triomphe::Arc;
@@ -21,7 +19,7 @@ impl ChangeWithProcMacros {
Self::default()
}
- pub fn apply(self, db: &mut (impl ExpandDatabase + SourceRootDatabase)) {
+ pub fn apply(self, db: &mut impl ExpandDatabase) {
self.source_change.apply(db);
if let Some(proc_macros) = self.proc_macros {
db.set_proc_macros_with_durability(Arc::new(proc_macros), Durability::HIGH);