From babb38cd1b014e67422482d3e64785b58f8b2690 Mon Sep 17 00:00:00 2001 From: kingchenc Date: Fri, 10 Jul 2026 22:46:49 +0200 Subject: [PATCH 1/2] fix(core): satisfy clippy::manual_flatten in scan stat pass The parallelized stat pass used `for res in children.iter_mut() { if let Ok(e) = res }`, which clippy::manual_flatten denies under -D warnings. Iterate the Ok entries directly via .flatten(); no behaviour change. --- crates/diskghost-core/src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/diskghost-core/src/lib.rs b/crates/diskghost-core/src/lib.rs index d4ec6ee..13277b9 100644 --- a/crates/diskghost-core/src/lib.rs +++ b/crates/diskghost-core/src/lib.rs @@ -221,11 +221,9 @@ fn walk(root: &Path, opts: &Options, progress: &Progress) -> Walk { }); } // Stat every file here (on the walk's rayon worker), caching its size. - for res in children.iter_mut() { - if let Ok(e) = res { - if e.file_type().is_file() { - e.client_state = std::fs::metadata(e.path()).ok().map(|m| m.len()); - } + for e in children.iter_mut().flatten() { + if e.file_type().is_file() { + e.client_state = std::fs::metadata(e.path()).ok().map(|m| m.len()); } } }); From f9bc1f68ebe96d68be82db9392b74ca99b0d6627 Mon Sep 17 00:00:00 2001 From: kingchenc Date: Fri, 10 Jul 2026 22:57:41 +0200 Subject: [PATCH 2/2] fix(deps): bump crossbeam-epoch to 0.9.20 (RUSTSEC-2026-0204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A new advisory (RUSTSEC-2026-0204: invalid pointer dereference in the fmt::Pointer impl for Atomic/Shared) was published against crossbeam-epoch 0.9.18, pulled transitively via jwalk and rayon — turning cargo-deny red on its own. Lockfile-only bump to the patched 0.9.20. --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f05a1d2..a712d58 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -328,9 +328,9 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.18" +version = "0.9.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f" dependencies = [ "crossbeam-utils", ]