diff options
-rw-r--r-- | crates/libanalysis/src/db/mod.rs | 3 | ||||
-rw-r--r-- | crates/libanalysis/src/module_map_db/mod.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/libanalysis/src/db/mod.rs b/crates/libanalysis/src/db/mod.rs index 3198272b7..38ba40273 100644 --- a/crates/libanalysis/src/db/mod.rs +++ b/crates/libanalysis/src/db/mod.rs | |||
@@ -43,7 +43,8 @@ pub(crate) struct Query<T, R> { | |||
43 | } | 43 | } |
44 | 44 | ||
45 | impl Db { | 45 | impl Db { |
46 | pub(crate) fn new(state: State) -> Db { | 46 | pub(crate) fn new() -> Db { |
47 | let state = Default::default(); | ||
47 | Db { inner: salsa::Db::new(query_config(), state) } | 48 | Db { inner: salsa::Db::new(query_config(), state) } |
48 | } | 49 | } |
49 | pub(crate) fn state(&self) -> &State { | 50 | pub(crate) fn state(&self) -> &State { |
diff --git a/crates/libanalysis/src/module_map_db/mod.rs b/crates/libanalysis/src/module_map_db/mod.rs index 777f7a38a..02ac06c5f 100644 --- a/crates/libanalysis/src/module_map_db/mod.rs +++ b/crates/libanalysis/src/module_map_db/mod.rs | |||
@@ -98,7 +98,7 @@ mod tests { | |||
98 | Fixture { | 98 | Fixture { |
99 | next_file_id: 1, | 99 | next_file_id: 1, |
100 | fm: im::HashMap::new(), | 100 | fm: im::HashMap::new(), |
101 | db: Db::new(State::default()), | 101 | db: Db::new(), |
102 | } | 102 | } |
103 | } | 103 | } |
104 | fn add_file(&mut self, path: &str, text: &str) -> FileId { | 104 | fn add_file(&mut self, path: &str, text: &str) -> FileId { |