Use Default everywhere

This commit is contained in:
Aleksey Kladov 2018-11-04 14:09:21 +03:00
parent cca5f862de
commit f29b0172fb
7 changed files with 23 additions and 34 deletions

View file

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