From c2c34ede67d1e95bbfad9a25e8cf95f4a2ac46b3 Mon Sep 17 00:00:00 2001 From: Jonathan Krebs Date: Fri, 13 Dec 2024 14:57:14 +0100 Subject: [PATCH] fix warnings: remove unused muts and variables --- bffhd/capnp/machine.rs | 1 - bffhd/capnp/user_system.rs | 2 +- bffhd/initiators/process.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bffhd/capnp/machine.rs b/bffhd/capnp/machine.rs index d05d4f2..7067727 100644 --- a/bffhd/capnp/machine.rs +++ b/bffhd/capnp/machine.rs @@ -211,7 +211,6 @@ impl ManageServer for Machine { mut result: manage::GetMachineInfoExtendedResults, ) -> Promise<(), ::capnp::Error> { let mut builder = result.get(); - let user = User::new_self(self.session.clone()); User::build_optional( &self.session, self.resource.get_current_user(), diff --git a/bffhd/capnp/user_system.rs b/bffhd/capnp/user_system.rs index b52366f..6fa699b 100644 --- a/bffhd/capnp/user_system.rs +++ b/bffhd/capnp/user_system.rs @@ -84,7 +84,7 @@ impl manage::Server for Users { "method call" ); - let mut builder = result.get(); + let builder = result.get(); if !username.is_empty() && !password.is_empty() { if self.session.users.get_user(username).is_none() { diff --git a/bffhd/initiators/process.rs b/bffhd/initiators/process.rs index 814e1a8..9fae277 100644 --- a/bffhd/initiators/process.rs +++ b/bffhd/initiators/process.rs @@ -116,7 +116,7 @@ impl ProcessState { impl Future for Process { type Output = (); - fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { + fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { if let Process { state: Some(state), buffer,