fix(useless_conversion): respect reduced applicability

This commit is contained in:
Ada Alakbarova
2026-01-09 20:20:35 +01:00
parent 331a474142
commit f73e504eea
+1 -1
View File
@@ -365,7 +365,7 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
format!("useless conversion to the same type: `{b}`"),
"consider removing `.into_iter()`",
sugg,
Applicability::MachineApplicable, // snippet
applicability,
);
}
}