aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_analysis/src/imp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 61296215c..e1493bdaa 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -216,8 +216,8 @@ impl AnalysisImpl {
216 .sweep(salsa::SweepStrategy::default().discard_values()); 216 .sweep(salsa::SweepStrategy::default().discard_values());
217 Ok(query.search(&buf)) 217 Ok(query.search(&buf))
218 } 218 }
219 /// This return `Vec`: a module may be inclucded from several places. 219 /// This return `Vec`: a module may be included from several places. We
220 /// We don't handle this case yet though, so the Vec has length at most one. 220 /// don't handle this case yet though, so the Vec has length at most one.
221 pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> { 221 pub fn parent_module(&self, position: FilePosition) -> Cancelable<Vec<(FileId, FileSymbol)>> {
222 let descr = match ModuleDescriptor::guess_from_position(&*self.db, position)? { 222 let descr = match ModuleDescriptor::guess_from_position(&*self.db, position)? {
223 None => return Ok(Vec::new()), 223 None => return Ok(Vec::new()),