diff --git a/crates/libanalysis/src/db/mod.rs b/crates/libanalysis/src/db/mod.rs index 3198272b7d..38ba402736 100644 --- a/crates/libanalysis/src/db/mod.rs +++ b/crates/libanalysis/src/db/mod.rs @@ -43,7 +43,8 @@ pub(crate) struct Query { } impl Db { - pub(crate) fn new(state: State) -> Db { + pub(crate) fn new() -> Db { + let state = Default::default(); Db { inner: salsa::Db::new(query_config(), state) } } 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 777f7a38ad..02ac06c5fc 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 { Fixture { next_file_id: 1, fm: im::HashMap::new(), - db: Db::new(State::default()), + db: Db::new(), } } fn add_file(&mut self, path: &str, text: &str) -> FileId {