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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue