Skip to content

Commit 29cf224

Browse files
committed
Silence warning in r-a.
1 parent 9601f6f commit 29cf224

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
@@ -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();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ impl ChangeFixture {
371371
}
372372
}
373373

374+
let _ = file_id;
375+
374376
let root = match current_source_root_kind {
375377
SourceRootKind::Local => SourceRoot::new_local(mem::take(&mut file_set)),
376378
SourceRootKind::Library => SourceRoot::new_library(mem::take(&mut file_set)),

0 commit comments

Comments
 (0)