From 85e53035572548e6db53a43e63ac989d0266e121 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 18 Oct 2023 15:41:54 -0600 Subject: [PATCH] job: Remove unneeded mut --- src/job.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/job.rs b/src/job.rs index d103584..bfc003e 100644 --- a/src/job.rs +++ b/src/job.rs @@ -367,7 +367,7 @@ impl JobMonitor { message: Option, 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 {