From a7d5a5ca366a0980ae5e3b763c94dd72dde11177 Mon Sep 17 00:00:00 2001 From: Adrian Wielgosik Date: Thu, 21 Mar 2024 23:07:36 +0100 Subject: [PATCH] build: Silence clippy assigning_clones lint --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 024d01df2ca3..82e86cffc81b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,6 +63,9 @@ unknown_lints = "allow" # LONG-TERM: These lints are unhelpful. manual_map = "allow" # Less readable: Suggests `opt.map(..)` instsead of `if let Some(opt) { .. }` manual_range_contains = "allow" # Less readable: Suggests `(a..b).contains(n)` instead of `n >= a && n < b` +assigning_clones = "allow" # Sometimes useful, but more often than not it doesn't do anything as + # we overwrite an empty item. And sometimes it can even be a footgun + # by keeping big allocations alive. # Don't optimize build scripts and macros. [profile.release.build-override]