This commit is contained in:
Aleksey Kladov 2018-09-15 13:55:34 +03:00
parent 47be3a3a24
commit 0d7b1e442d
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,8 @@ pub(crate) struct Query<T, R> {
}
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 {

View file

@ -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 {