diff options
Diffstat (limited to 'crates/ra_ide_api/src/references')
-rw-r--r-- | crates/ra_ide_api/src/references/search_scope.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/references/search_scope.rs b/crates/ra_ide_api/src/references/search_scope.rs index b6eb248b7..dbd1af597 100644 --- a/crates/ra_ide_api/src/references/search_scope.rs +++ b/crates/ra_ide_api/src/references/search_scope.rs | |||
@@ -120,7 +120,7 @@ impl NameDefinition { | |||
120 | return SearchScope::new(res); | 120 | return SearchScope::new(res); |
121 | } | 121 | } |
122 | if vis.as_str() == "pub" { | 122 | if vis.as_str() == "pub" { |
123 | let krate = self.container.krate(db).unwrap(); | 123 | let krate = self.container.krate(); |
124 | let crate_graph = db.crate_graph(); | 124 | let crate_graph = db.crate_graph(); |
125 | for crate_id in crate_graph.iter() { | 125 | for crate_id in crate_graph.iter() { |
126 | let mut crate_deps = crate_graph.dependencies(crate_id); | 126 | let mut crate_deps = crate_graph.dependencies(crate_id); |