job: Remove unneeded mut

This commit is contained in:
Zhaofeng Li 2023-10-18 15:41:54 -06:00
parent f11e3c77ee
commit 85e5303557

View file

@ -367,7 +367,7 @@ impl JobMonitor {
message: Option<String>,
noop: bool,
) {
let mut metadata = self.jobs.get_mut(&job_id).unwrap();
let metadata = self.jobs.get_mut(&job_id).unwrap();
let old_state = metadata.state;
if old_state == new_state {