mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Improve readability
This commit is contained in:
parent
ba48c0d8bd
commit
fa9c6eb456
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ impl CrateGraph {
|
||||||
let mut worklist = vec![of];
|
let mut worklist = vec![of];
|
||||||
let mut rev_deps = FxHashSet::default();
|
let mut rev_deps = FxHashSet::default();
|
||||||
rev_deps.insert(of);
|
rev_deps.insert(of);
|
||||||
|
|
||||||
let mut inverted_graph = FxHashMap::<_, Vec<_>>::default();
|
let mut inverted_graph = FxHashMap::<_, Vec<_>>::default();
|
||||||
self.arena.iter().for_each(|(&krate, data)| {
|
self.arena.iter().for_each(|(&krate, data)| {
|
||||||
data.dependencies
|
data.dependencies
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue