From 09c5d2532e885a5901fc0a3e887765330dea14b9 Mon Sep 17 00:00:00 2001 From: Icelk Date: Thu, 6 Jul 2023 21:42:52 +0200 Subject: [PATCH] Fix more lints --- src/ctl.rs | 2 +- src/shutdown.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ctl.rs b/src/ctl.rs index 3764cd4..786882b 100644 --- a/src/ctl.rs +++ b/src/ctl.rs @@ -688,7 +688,7 @@ pub(crate) async fn listen( let _task = spawn(async move { drop(sd.get_initate_shutdown_watcher().changed().await); info!("Send close to ctl socket, because we started shutting down."); - drop(close_ctl.send(true)); + let _ = close_ctl.send(true); }) .await; diff --git a/src/shutdown.rs b/src/shutdown.rs index 08cf928..a7274c5 100644 --- a/src/shutdown.rs +++ b/src/shutdown.rs @@ -290,7 +290,7 @@ impl Manager { recieved += 1; } info!("Sending shutdown signal"); - drop(channel.send(())); + let _ = channel.send(()); }); } /// Waits for Kvarn to enter the `shutdown` state.