diff --git a/clippy_lints/src/cargo/multiple_crate_versions.rs b/clippy_lints/src/cargo/multiple_crate_versions.rs index c487ffb1c82..6b4af6753c3 100644 --- a/clippy_lints/src/cargo/multiple_crate_versions.rs +++ b/clippy_lints/src/cargo/multiple_crate_versions.rs @@ -21,7 +21,6 @@ pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) { // the code below temporarily rectifies this discrepancy if p.name .chars() - .into_iter() .map(|c| if c == '-' { '_' } else { c }) .eq(local_name.as_str().chars()) {