mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 15:10:38 +00:00
new lint: `option_as_ref_cloned` Closes #12009 Adds a new lint that looks for `.as_ref().cloned()` on `Option`s. That's the same as just `.clone()`-ing the option directly. changelog: new lint: [`option_as_ref_cloned`]