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 6, 2024
1 parent f7b800c commit 937f1ff
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 937f1ff

Please sign in to comment.