Skip to content

Commit 7a721fd

Browse files
committed
Silence warning in r-a.
1 parent c514904 commit 7a721fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/rust-analyzer/crates/ide-db/src/imports/merge_imports.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ fn recursive_normalize(use_tree: &ast::UseTree, style: NormalizationStyle) -> Op
406406
} else {
407407
ted::replace_with_many(subtree.syntax(), elements);
408408
}
409+
// Silence unused assignment warning on `modified`.
410+
let _ = modified;
409411
modified = true;
410412
} else {
411413
modified |= recursive_normalize(&subtree, NormalizationStyle::Default).is_some();

0 commit comments

Comments
 (0)