Clippy dogfood

This commit is contained in:
Oliver Scherer
2019-05-14 10:03:16 +02:00
parent 8612346de1
commit af80c53450
3 changed files with 7 additions and 6 deletions

View File

@@ -1028,7 +1028,7 @@ pub fn has_iter_method(cx: &LateContext<'_, '_>, probably_ref_ty: Ty<'_>) -> Opt
_ => return None,
};
for path in into_iter_collections.iter() {
for path in &into_iter_collections {
if match_def_path(cx, def_id, path) {
return Some(*path.last().unwrap());
}