From 6723829a3398b3c9dd6dc6ae79124f46000606ee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 00:50:54 +0200 Subject: chore(treewide): Remove `cargo` warnings to 0 There are still the `clippy` warnings, but they are for a future date. --- crates/turtle/src/command/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/turtle/src/command/client.rs') diff --git a/crates/turtle/src/command/client.rs b/crates/turtle/src/command/client.rs index 0c97f945..2ec5abe7 100644 --- a/crates/turtle/src/command/client.rs +++ b/crates/turtle/src/command/client.rs @@ -35,7 +35,7 @@ fn cleanup_old_logs(log_dir: &Path, prefix: &str, retention_days: u64) { && let Ok(modified) = metadata.modified() && modified < cutoff { - let _ = fs::remove_file(&path); + drop(fs::remove_file(&path)); } } } @@ -107,7 +107,7 @@ impl Cmd { pub(crate) fn run(self) -> Result<()> { // Daemonize before creating the async runtime – fork() inside a live // tokio runtime corrupts its internal state. - #[cfg(all(unix, feature = "daemon"))] + #[cfg(unix)] if let Self::Daemon(ref cmd) = self && cmd.should_daemonize() { -- cgit v1.3.1