From fa9c6eb4560c3c72a726dba4210af2edbb3dd4bb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 23 Mar 2021 13:01:45 +0300 Subject: Improve readability --- crates/base_db/src/input.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/base_db') diff --git a/crates/base_db/src/input.rs b/crates/base_db/src/input.rs index 56fb4ad71..07628935f 100644 --- a/crates/base_db/src/input.rs +++ b/crates/base_db/src/input.rs @@ -280,6 +280,7 @@ impl CrateGraph { let mut worklist = vec![of]; let mut rev_deps = FxHashSet::default(); rev_deps.insert(of); + let mut inverted_graph = FxHashMap::<_, Vec<_>>::default(); self.arena.iter().for_each(|(&krate, data)| { data.dependencies -- cgit v1.2.3