Tags: 1tgr/rust-clippy
Tags
Auto merge of rust-lang#3662 - mikerite:fix-498, r=oli-obk Fix `map_clone` bad suggestion `cloned` requires that the elements of the iterator must be references. This change determines if that is the case by examining the type of the closure argument and suggesting `.cloned` only if it is a reference. When the closure argument is not a reference, it suggests removing the `map` call instead. A minor problem with this change is that the new check sometimes overlaps with the `clone_on_copy` lint. Fixes rust-lang#498
Merge pull request rust-lang#3459 from flip1995/sugg_appl Add Applicability to suggestion lints: Take 2
Enable rustup clippy to refer to the correct documentation
Enable rustup clippy to refer to the correct documentation
Merge pull request rust-lang#3194 from flip1995/c_void Fix c_void path
Merge pull request rust-lang#3194 from flip1995/c_void Fix c_void path