From 034bb6e324789596316a2f855054be0380d8c8c3 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 7 Oct 2026 20:08:52 -0400 Subject: [PATCH] Rename: drop a redundant from != to (clippy nonminimal_bool) Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/rename.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/rename.rs b/crates/engine/src/rename.rs index 31e8e02cf..0479a4e59 100644 --- a/crates/engine/src/rename.rs +++ b/crates/engine/src/rename.rs @@ -599,7 +599,7 @@ fn plan_rename_core( // this very file, maybe spelled differently (case-insensitive volume)? By // identity: on a case-sensitive volume `img_1.jpg` may be another photo let (from, to) = (Path::new(path), Path::new(&tp)); - let same = from == to || (from != to && key == folded_path(path) && exists(to) && same_file(from, to)); + let same = from == to || (key == folded_path(path) && exists(to) && same_file(from, to)); // free: not claimed in this batch and not on disk (unless it is this very file). // A file this batch moves away still counts as taken: simple and safe. if !taken.contains(&key) && (same || !exists(to)) {