We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9fca0a4 + 2691143 commit 6d42e75Copy full SHA for 6d42e75
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