mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use Default everywhere
This commit is contained in:
parent
cca5f862de
commit
f29b0172fb
7 changed files with 23 additions and 34 deletions
|
@ -82,7 +82,7 @@ impl MockAnalysis {
|
|||
FileId(idx as u32 + 1)
|
||||
}
|
||||
pub fn analysis_host(self) -> AnalysisHost {
|
||||
let mut host = AnalysisHost::new();
|
||||
let mut host = AnalysisHost::default();
|
||||
let mut file_map = Vec::new();
|
||||
let mut change = AnalysisChange::new();
|
||||
for (id, (path, contents)) in self.files.into_iter().enumerate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue