| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-12-22 | Fix `map_clone` false positive | Michael Wright | -0/+10 | |
| Don't lint when the item type is not a reference. `copied` only applies to references. | ||||
| 2019-10-03 | Test fixes | Shotaro Yamada | -1/+1 | |
| 2019-05-16 | Also rename the lint in test files | flip1995 | -1/+1 | |
| 2019-05-16 | Split redundant_closure lint | Michael Wright | -1/+1 | |
| Move the method checking into a new lint called `redundant_closures_for_method_calls` and put it in the pedantic group. This aspect of the lint seems more controversial than the rest. cc #3942 | ||||
| 2019-04-28 | Suggest .copied() for map_clone on iterators too | Manish Goregaokar | -2/+2 | |
| 2019-04-15 | Only suggest .copied() for Option right now | Manish Goregaokar | -4/+4 | |
| 2019-04-15 | Also suggest .copied() when .clone() is called on a Copy type | Manish Goregaokar | -0/+1 | |
| 2019-04-15 | Suggest .copied() instead of .cloned() in map_clone when dealing with references | Manish Goregaokar | -2/+3 | |
| 2019-02-10 | removing redundant closures in the whole project | Grzegorz | -0/+1 | |
| 2019-01-15 | Fix issue number in `map_clone` test | Michael Wright | -1/+1 | |
| 2019-01-15 | Fix `map_clone` bad suggestion | Michael Wright | -0/+12 | |
| `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 #498 | ||||
| 2019-01-13 | Add run-rustfix to map_clone test | Wilco Kusee | -0/+11 | |
