From 9e2794579eda7e45b6cf85701c331d4d30a98f83 Mon Sep 17 00:00:00 2001 From: tupe12334 Date: Sun, 21 Jun 2026 10:39:49 +0300 Subject: [PATCH] chore(lint): enable clippy::redundant_clone Promote clippy::redundant_clone to deny in core/Cargo.toml, continuing the crate's incremental lint-ratcheting policy. Catches .clone() calls whose result is the last use of the value (the original is dead), which allocate a fresh copy where a move would do. Completes the existing clone-hygiene family (implicit_clone, cloned_instead_of_copied). Zero current violations; clippy/build/test all pass. Closes #169 --- core/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Cargo.toml b/core/Cargo.toml index 6d801c0..41f1e9a 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -30,6 +30,7 @@ unimplemented = "deny" manual_string_new = "deny" uninlined_format_args = "deny" cloned_instead_of_copied = "deny" +redundant_clone = "deny" match_same_arms = "deny" semicolon_if_nothing_returned = "deny" if_not_else = "deny"