Skip to content

Commit 3804447

Browse files
committed
Silence warning in r-a.
1 parent 1456bec commit 3804447

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-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
@@ -405,6 +405,8 @@ fn recursive_normalize(use_tree: &ast::UseTree, style: NormalizationStyle) -> Op
405405
} else {
406406
ted::replace_with_many(subtree.syntax(), elements);
407407
}
408+
// Silence unused assignment warning on `modified`.
409+
let _ = modified;
408410
modified = true;
409411
} else {
410412
modified |= recursive_normalize(&subtree, NormalizationStyle::Default).is_some();

src/tools/rust-analyzer/crates/test-fixture/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ impl ChangeFixture {
383383
}
384384
}
385385

386+
let _ = file_id;
387+
386388
let root = match current_source_root_kind {
387389
SourceRootKind::Local => SourceRoot::new_local(mem::take(&mut file_set)),
388390
SourceRootKind::Library => SourceRoot::new_library(mem::take(&mut file_set)),

0 commit comments

Comments
 (0)