aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/lib.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-11-04 11:09:57 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-11-04 11:09:57 +0000
commit19c6cbd9540ef87850161cad7e108b380eceea24 (patch)
tree4ec1f709d283d3ea0b7c225a70f6439d67a5ca32 /crates/ra_analysis/src/lib.rs
parentcca5f862de8a4eb4a8990fdca95a4a7686937789 (diff)
parentf29b0172fbcbc88160980c2e7359f92d7c0d885d (diff)
Merge #187
187: Use Default everywhere r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r--crates/ra_analysis/src/lib.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index 6565f69fb..4e4c65f08 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -99,17 +99,12 @@ impl AnalysisChange {
99} 99}
100 100
101/// `AnalysisHost` stores the current state of the world. 101/// `AnalysisHost` stores the current state of the world.
102#[derive(Debug)] 102#[derive(Debug, Default)]
103pub struct AnalysisHost { 103pub struct AnalysisHost {
104 imp: AnalysisHostImpl, 104 imp: AnalysisHostImpl,
105} 105}
106 106
107impl AnalysisHost { 107impl AnalysisHost {
108 pub fn new() -> AnalysisHost {
109 AnalysisHost {
110 imp: AnalysisHostImpl::new(),
111 }
112 }
113 /// Returns a snapshot of the current state, which you can query for 108 /// Returns a snapshot of the current state, which you can query for
114 /// semantic information. 109 /// semantic information.
115 pub fn analysis(&self) -> Analysis { 110 pub fn analysis(&self) -> Analysis {