From 21313ea46b96c00d56e4ab7a2f99125d91e32b30 Mon Sep 17 00:00:00 2001 From: tupe12334 Date: Fri, 19 Jun 2026 10:24:31 +0300 Subject: [PATCH] chore(lint): enable clippy::manual_let_else Promote clippy::manual_let_else to deny, continuing the incremental clippy ratchet. The codebase currently has zero violations, so this is a guard against future verbose diverging match/if-let bindings. Co-Authored-By: Claude Opus 4.8 (1M context) --- core/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Cargo.toml b/core/Cargo.toml index 6d801c0..f465fee 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -78,6 +78,11 @@ expect_used = "deny" too_many_lines = "deny" unwrap_used = "deny" wildcard_imports = "deny" +# A diverging `match`/`if let` whose only job is to bind a value or bail out of +# the function reads as boilerplate and buries the happy path. Prefer the +# `let ... else { ... }` form so the binding and its divergence are stated once, +# the bound name stays in the enclosing scope, and the early return is obvious. +manual_let_else = "deny" [dependencies] cel-interpreter = "0.10"