build: Silence clippy assigning_clones lint

This commit is contained in:
Adrian Wielgosik 2024-03-21 23:07:36 +01:00 committed by Adrian Wielgosik
parent ab254c93c6
commit a7d5a5ca36
1 changed files with 3 additions and 0 deletions

View File

@ -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]