Add forgotten function: span_suggestion*s* to the previous refactoting
This commit is contained in:
parent
d4c994e670
commit
3e853a632e
1 changed files with 6 additions and 1 deletions
|
@ -418,7 +418,12 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
|
|||
NONMINIMAL_BOOL,
|
||||
e.span,
|
||||
"this boolean expression can be simplified",
|
||||
|db| { db.span_suggestions(e.span, "try", suggestions); },
|
||||
|db| { db.span_suggestions_with_applicability(
|
||||
e.span,
|
||||
"try",
|
||||
suggestions,
|
||||
Applicability::Unspecified,
|
||||
); },
|
||||
);
|
||||
};
|
||||
if improvements.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue