mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
minor
This commit is contained in:
parent
47be3a3a24
commit
0d7b1e442d
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue