From 6ddc6dc77a422d5897bdea4df794e6520e1ab948 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 11:56:46 +0000 Subject: [PATCH] fix(robot-repo-automaton): satisfy clippy needless_bool in confidence.rs Return the any() result directly instead of an if guard that returns a bool literal followed by a literal false. Behaviour is unchanged; newer stable clippy rejects the old form under -D warnings. --- robot-repo-automaton/src/confidence.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/robot-repo-automaton/src/confidence.rs b/robot-repo-automaton/src/confidence.rs index 842871b3..db704d43 100644 --- a/robot-repo-automaton/src/confidence.rs +++ b/robot-repo-automaton/src/confidence.rs @@ -349,11 +349,7 @@ fn is_protected_file(target: &str) -> bool { "spec/", "verification/", ]; - if protected_dirs.iter().any(|dir| target.contains(dir)) { - return true; - } - - false + protected_dirs.iter().any(|dir| target.contains(dir)) } /// Check if a file is a standard repository file (high confidence to create)