Replace span_suggestion_with_style with _verbose

This commit is contained in:
Alex Macleod 2024-08-17 18:09:28 +00:00
parent 68b222ebd9
commit 4f661302c6
10 changed files with 27 additions and 55 deletions

View file

@ -74,7 +74,7 @@ pub(super) fn check<'tcx>(
"&"
};
diag.span_suggestion_with_style(
diag.span_suggestion_verbose(
span,
"using `[]` is clearer and more concise",
format!(
@ -82,7 +82,6 @@ pub(super) fn check<'tcx>(
snippet_with_applicability(cx, recv.span, "..", &mut applicability)
),
applicability,
rustc_errors::SuggestionStyle::ShowAlways,
);
},
);