1
Fork 0

Add forgotten function: span_suggestion*s* to the previous refactoting

This commit is contained in:
Vitaly _Vi Shukela 2018-09-15 19:32:35 +03:00 committed by flip1995
parent d4c994e670
commit 3e853a632e
No known key found for this signature in database
GPG key ID: 9F184E1164831181

View file

@ -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() {