Skip to content

Commit

Permalink
Swallow unused assignment warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Apr 7, 2024
1 parent 641ffac commit 96be3ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/rust-analyzer/crates/test-fixture/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ impl ChangeFixture {
}
}

let _ = file_id;

let root = match current_source_root_kind {
SourceRootKind::Local => SourceRoot::new_local(mem::take(&mut file_set)),
SourceRootKind::Library => SourceRoot::new_library(mem::take(&mut file_set)),
Expand Down

0 comments on commit 96be3ff

Please sign in to comment.