From 0d7b1e442d1449a48e0b73b3db6ea270520ea039 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 15 Sep 2018 13:55:34 +0300 Subject: minor --- crates/libanalysis/src/db/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/libanalysis/src/db') 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 { } 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 { -- cgit v1.2.3