Rename: drop a redundant from != to (clippy nonminimal_bool)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-07 20:08:52 -04:00
co-authored by Claude Opus 5.5
parent 41f9ae0c2b
commit 034bb6e324
+1 -1
View File
@@ -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)) {