aboutsummaryrefslogtreecommitdiff
path: root/crates/base_db/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/base_db/src')
-rw-r--r--crates/base_db/src/input.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/base_db/src/input.rs b/crates/base_db/src/input.rs
index 04a338d99..56fb4ad71 100644
--- a/crates/base_db/src/input.rs
+++ b/crates/base_db/src/input.rs
@@ -276,10 +276,7 @@ impl CrateGraph {
276 276
277 /// Returns all transitive reverse dependencies of the given crate, 277 /// Returns all transitive reverse dependencies of the given crate,
278 /// including the crate itself. 278 /// including the crate itself.
279 pub fn transitive_reverse_dependencies( 279 pub fn transitive_rev_deps(&self, of: CrateId) -> impl Iterator<Item = CrateId> + '_ {
280 &self,
281 of: CrateId,
282 ) -> impl Iterator<Item = CrateId> + '_ {
283 let mut worklist = vec![of]; 280 let mut worklist = vec![of];
284 let mut rev_deps = FxHashSet::default(); 281 let mut rev_deps = FxHashSet::default();
285 rev_deps.insert(of); 282 rev_deps.insert(of);