aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/parent_module.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-10-02 14:45:09 +0100
committerAleksey Kladov <[email protected]>2020-10-02 15:45:08 +0100
commit8716c4cec3a05ba891b20b5f28df69d925b913ad (patch)
treee2f073c459e9a1e1c98b98d524565633524b84c2 /crates/ide/src/parent_module.rs
parent700c9bc019346a321d230c51bbea597a497bed84 (diff)
Move ide::AnalysisChange -> base_db::Change
This seems like a better factoring logically; ideally, clients shouldn't touch `set_` methods of the database directly. Additionally, I think this should remove the unfortunate duplication in fixture code.
Diffstat (limited to 'crates/ide/src/parent_module.rs')
-rw-r--r--crates/ide/src/parent_module.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/parent_module.rs b/crates/ide/src/parent_module.rs
index 59ed2967c..68b107901 100644
--- a/crates/ide/src/parent_module.rs
+++ b/crates/ide/src/parent_module.rs
@@ -69,7 +69,7 @@ mod tests {
69 69
70 use crate::{ 70 use crate::{
71 mock_analysis::{analysis_and_position, MockAnalysis}, 71 mock_analysis::{analysis_and_position, MockAnalysis},
72 AnalysisChange, CrateGraph, 72 Change, CrateGraph,
73 Edition::Edition2018, 73 Edition::Edition2018,
74 }; 74 };
75 75
@@ -146,7 +146,7 @@ mod foo;
146 Env::default(), 146 Env::default(),
147 Default::default(), 147 Default::default(),
148 ); 148 );
149 let mut change = AnalysisChange::new(); 149 let mut change = Change::new();
150 change.set_crate_graph(crate_graph); 150 change.set_crate_graph(crate_graph);
151 host.apply_change(change); 151 host.apply_change(change);
152 152