From 34400ceec4953341a9f625eb4f268ce12ecac0d0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 13 Aug 2026 23:13:28 +0000 Subject: [PATCH] fix: adapt scanner pruning for jwalk 0.9 API jwalk 0.9 renamed DirEntry.read_children_path to read_children; update the directory-prune callback and bump the dependency so Dependabot and CI compile cleanly. Co-authored-by: k2gwv6rzf6 --- Cargo.lock | 4 ++-- src-tauri/Cargo.toml | 2 +- src-tauri/src/scanner.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aebfc75..31bddd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2072,9 +2072,9 @@ dependencies = [ [[package]] name = "jwalk" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2735847566356cd2179a2a38264839308f7079fa96e6bd5a42d740460e003c56" +checksum = "5e610b2b1eaea9e0e062c47e319d20a2e0f929e7aabf24d58514354de967bfbd" dependencies = [ "crossbeam", "rayon", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index e8f429f..f276922 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -27,7 +27,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" blake3 = "1" -jwalk = "0.8" +jwalk = "0.9" rayon = "1.10" image = { version = "0.25", default-features = false, features = ["jpeg", "png", "gif", "bmp", "tiff", "webp"] } rusqlite = { version = "0.32", features = ["bundled"] } diff --git a/src-tauri/src/scanner.rs b/src-tauri/src/scanner.rs index f367ee6..e6375d2 100644 --- a/src-tauri/src/scanner.rs +++ b/src-tauri/src/scanner.rs @@ -547,7 +547,7 @@ fn walk_roots( if let Ok(mut set) = pruned_for_walk.lock() { set.insert(paths::normalize_for_storage(&full)); } - child.read_children_path = None; + child.read_children = None; } } });