Enable clippy::unnecessary_operation (#8752)

This PR enables the
[`clippy::unnecessary_operation`](https://rust-lang.github.io/rust-clippy/master/index.html#/unnecessary_operation)
rule and fixes the outstanding violations.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-02 22:19:56 -05:00 committed by GitHub
parent ea68f86476
commit 6a9e8faad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View file

@ -114,7 +114,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
"clippy::single_range_in_vec_init",
"clippy::suspicious_to_owned",
"clippy::type_complexity",
"clippy::unnecessary_operation",
"clippy::unnecessary_to_owned",
"clippy::unnecessary_unwrap",
"clippy::useless_conversion",