build: Silence clippy assigning_clones lint
This commit is contained in:
parent
ab254c93c6
commit
a7d5a5ca36
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue