mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
ee8bfb7f7a
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`]