Skip to content

Commit

Permalink
build: Silence clippy assigning_clones lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian17 committed Mar 23, 2024
1 parent ab254c9 commit a7d5a5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a7d5a5c

Please sign in to comment.