mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
fix(useless_conversion): respect reduced applicability
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user