feat: add label to span

This commit is contained in:
rvcas
2023-01-24 11:31:07 -05:00
committed by Lucas
parent a485406e3d
commit ba05f1f070

View File

@@ -1062,7 +1062,7 @@ pub enum Warning {
help("Prefer using a {} binding like so...\n\n{}", "let".purple(), format_suggestion(sample)) help("Prefer using a {} binding like so...\n\n{}", "let".purple(), format_suggestion(sample))
)] )]
SingleWhenClause { SingleWhenClause {
#[label] #[label("use let")]
location: Span, location: Span,
sample: UntypedExpr, sample: UntypedExpr,
}, },