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

@ -99,17 +99,12 @@ impl AnalysisChange {
}
/// `AnalysisHost` stores the current state of the world.
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct AnalysisHost {
imp: AnalysisHostImpl,
}
impl AnalysisHost {
pub fn new() -> AnalysisHost {
AnalysisHost {
imp: AnalysisHostImpl::new(),
}
}
/// Returns a snapshot of the current state, which you can query for
/// semantic information.
pub fn analysis(&self) -> Analysis {