aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/command/client.rs')
-rw-r--r--crates/turtle/src/command/client.rs4
1 files changed, 2 insertions, 2 deletions
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()
{