mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
12f7c17ae0
`useless_asref`: do not lint `.as_ref().map(Arc::clone)` This applies to `Arc`, `Rc`, and their weak variants. Using `.clone()` would be less idiomatic. This follows the discussion in <https://github.com/rust-lang/rust-clippy/issues/12528#issuecomment-2014444305>. changelog: [`useless_asref`]: do not lint `.as_ref().map(Arc::clone)` and similar |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |