mirror of
https://github.com/storytold/soundcraft.git
synced 2026-11-02 00:30:31 +00:00
Merge PR #1017: Autosave: allow the Unix-only mut, so clippy passes on Windows
This commit is contained in:
commit
c0dc2c3ec6
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user