From 4eec70e5cd404acee2d9264e2699973d755904b4 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 24 Oct 2026 04:56:14 +0700 Subject: [PATCH] Automation roots: rustfmt and clippy (redundant closure) --- crates/engine/src/cmd/findfiles/walk.rs | 4 +++- crates/engine/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/findfiles/walk.rs b/crates/engine/src/cmd/findfiles/walk.rs index 4f83595fe..8d3551571 100644 --- a/crates/engine/src/cmd/findfiles/walk.rs +++ b/crates/engine/src/cmd/findfiles/walk.rs @@ -498,7 +498,9 @@ impl Shared { queue.push((path, depth + 1)); } // The home folder is added by a rule, not picked: it needs the picked folder's authority. - let home = rules.home_below(&listed).filter(|h| !rules.is_refused(h) && self.scope.clone().run(|| crate::file_access::check_read(&h.to_string_lossy())).is_ok()); + let home = rules + .home_below(&listed) + .filter(|h| !rules.is_refused(h) && self.scope.clone().run(|| crate::file_access::check_read(&h.to_string_lossy())).is_ok()); { let mut w = self.lock(); w.files += files; diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 6151a01d0..33125dae1 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -1490,7 +1490,7 @@ impl Session { // The background workers of placed documents read files in the scope that asked. vectorcraft_render::placed_document::set_scope_capture(|| { let scope = file_access::ScopeHandle::capture(); - Box::new(move |f: &mut dyn FnMut()| scope.run(|| f())) + Box::new(move |f: &mut dyn FnMut()| scope.run(f)) }); // Clicks find an image's own fills and strokes where their effects draw them. vectorcraft_doc::hit::set_image_paint(vectorcraft_render::effects::image_paint);