diff options
author | Aleksey Kladov <[email protected]> | 2018-09-15 11:55:34 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-15 22:00:05 +0100 |
commit | 0d7b1e442d1449a48e0b73b3db6ea270520ea039 (patch) | |
tree | c1be0c06864a74d17523b095f609f07a3f80e1bf /crates/libanalysis | |
parent | 47be3a3a24de1eb28e1575db1571d934765f6d53 (diff) |
minor
Diffstat (limited to 'crates/libanalysis')
-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 { |