Skip to content

Commit

Permalink
fix two "unnecessary mut" Rust lints
Browse files Browse the repository at this point in the history
Summary:
Two unnecessary `mut` plus `-D warnings` are causing some Hermit
code not to build.

Reviewed By: VladimirMakaev

Differential Revision: D47177379

fbshipit-source-id: 1a58cdbff1c6b275b58a59df7fd01913ad2ca7d5
  • Loading branch information
mjhostet authored and facebook-github-bot committed Jul 2, 2023
1 parent 7dd028f commit 2db9c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion detcore/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ impl Scheduler {
/// Precondition: guest is stopped so that there is no chance the ivars are being used
/// concurrently while they are being cleared.
fn clear_nextturn(&mut self, dtid: DetTid) {
let mut nextturn = self
let nextturn = self
.next_turns
.get_mut(&dtid)
.expect("clear_nextturn: Thread should be available in next_turns");
Expand Down
2 changes: 1 addition & 1 deletion detcore/src/tool_global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ impl GlobalState {
);
d
};
let mut info = mg
let info = mg
.detinodes_info
.get_mut(&dino)
// TODO(T87258449): remove this `expect`:
Expand Down

0 comments on commit 2db9c29

Please sign in to comment.