Refactor map_unit_fn lint

This commit is contained in:
Cameron Steffen
2025-08-07 14:10:59 -05:00
parent 2886b36df4
commit 7670cdeb70
3 changed files with 39 additions and 68 deletions

View File

@@ -902,9 +902,8 @@ pub(crate) struct MappingToUnit {
pub argument_label: Span,
#[label(lint_map_label)]
pub map_label: Span,
#[suggestion(style = "verbose", code = "{replace}", applicability = "maybe-incorrect")]
#[suggestion(style = "verbose", code = "for_each", applicability = "maybe-incorrect")]
pub suggestion: Span,
pub replace: String,
}
// internal.rs