From b03117b2624ef4fb2609b317d3ff8d51b29a9f75 Mon Sep 17 00:00:00 2001 From: Dmitry Kashitsyn Date: Sun, 15 Oct 2017 22:41:40 +0700 Subject: [PATCH] Removes redundant `mut` in service.rs.in (#6775) --- ipc/hypervisor/src/service.rs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/hypervisor/src/service.rs.in b/ipc/hypervisor/src/service.rs.in index 6d6f38268..9b881e64c 100644 --- a/ipc/hypervisor/src/service.rs.in +++ b/ipc/hypervisor/src/service.rs.in @@ -49,7 +49,7 @@ impl HypervisorService { // return type for making method synchronous fn module_ready(&self, module_id: u64, control_url: String) -> bool { let mut modules = self.modules.write().unwrap(); - modules.get_mut(&module_id).map(|mut module| { + modules.get_mut(&module_id).map(|module| { module.started = true; module.control_url = control_url; }); @@ -60,7 +60,7 @@ impl HypervisorService { // return type for making method synchronous fn module_shutdown(&self, module_id: u64) -> bool { let mut modules = self.modules.write().unwrap(); - modules.get_mut(&module_id).map(|mut module| { + modules.get_mut(&module_id).map(|module| { module.shutdown = true; }); trace!(target: "hypervisor", "Module shutdown: {}", module_id);