chore: remove unneeded into_iter

This commit is contained in:
Kristof Mattei 2024-01-14 09:40:14 -07:00
parent b1c52d502d
commit ea585ef321
No known key found for this signature in database
GPG Key ID: 89668E582D199AA8

View File

@ -21,7 +21,6 @@ pub(super) fn check(cx: &LateContext<'_>, metadata: &Metadata) {
// the code below temporarily rectifies this discrepancy // the code below temporarily rectifies this discrepancy
if p.name if p.name
.chars() .chars()
.into_iter()
.map(|c| if c == '-' { '_' } else { c }) .map(|c| if c == '-' { '_' } else { c })
.eq(local_name.as_str().chars()) .eq(local_name.as_str().chars())
{ {