Skip to content

Commit 0f9f06d

Browse files
committed
Swallow unused assignment warning.
1 parent dffa3a0 commit 0f9f06d

File tree

1 file changed

+2
-0
lines changed
  • src/tools/rust-analyzer/crates/test-fixture/src

1 file changed

+2
-0
lines changed

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)