From c5ddbbafd1f801594424c3ccdc063d24af676826 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 24 Oct 2026 02:55:17 -0700 Subject: [PATCH] Autosave: allow the Unix-only mut, so clippy passes on Windows Autosave::create builds each session folder with a DirBuilder that only the #[cfg(unix)] mode call mutates. On Windows, clippy -D warnings reports the binding as unused_mut, and cargo xtask ci stops at its clippy step. The binding now carries #[cfg_attr(not(unix), allow(unused_mut))], as the recovery test's paths in the same file does. Nothing changes at run time. --- crates/engine/src/autosave.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/engine/src/autosave.rs b/crates/engine/src/autosave.rs index 09a63f4f..7c6c7c54 100644 --- a/crates/engine/src/autosave.rs +++ b/crates/engine/src/autosave.rs @@ -186,6 +186,7 @@ impl Autosave { let mut n = 1; loop { // Not recursive, so a folder that already exists is reported and the next name tried. + #[cfg_attr(not(unix), allow(unused_mut))] let mut builder = std::fs::DirBuilder::new(); #[cfg(unix)] std::os::unix::fs::DirBuilderExt::mode(&mut builder, 0o700);