We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fca0a4 commit 2691143Copy full SHA for 2691143
crates/rust-analyzer/src/reload.rs
@@ -527,7 +527,7 @@ impl ProjectFolders {
527
// maps include paths to indices of the corresponding root
528
let mut include_to_idx = FxHashMap::default();
529
// Find and note down the indices of overlapping roots
530
- for (idx, root) in roots.iter().filter(|it| !it.include.is_empty()).enumerate() {
+ for (idx, root) in roots.iter().enumerate().filter(|(_, it)| !it.include.is_empty()) {
531
for include in &root.include {
532
match include_to_idx.entry(include) {
533
Entry::Occupied(e) => {
0 commit comments