mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
ada0b2b095
Lint redundant clone of fields Makes `redundant_clone` warn on unnecessary `foo.field.clone()` sometimes (it can detect an unnecessary clone only if the base of projection, `foo` in this case, is not used at all after that). This is enough for cases like `returns_tuple().0.clone()`. |
||
---|---|---|
.. | ||
author.rs | ||
camel_case.rs | ||
comparisons.rs | ||
conf.rs | ||
constants.rs | ||
higher.rs | ||
hir_utils.rs | ||
inspector.rs | ||
internal_lints.rs | ||
mod.rs | ||
paths.rs | ||
ptr.rs | ||
sugg.rs | ||
usage.rs |