Applicability adjustment per additional comments

This commit is contained in:
Vitaly _Vi Shukela 2018-09-18 22:43:52 +03:00 committed by flip1995
parent 58729346be
commit 52fb7d461e
No known key found for this signature in database
GPG Key ID: 9F184E1164831181
3 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ fn check_item(&mut self, cx: &LateContext<'_, '_>, item: &Item) {
"consider boxing the large fields to reduce the total size of the \
enum",
format!("Box<{}>", snip),
Applicability::MachineApplicable,
Applicability::Unspecified,
);
return;
}

View File

@ -125,7 +125,7 @@ fn check_block(&mut self, cx: &LateContext<'a, 'tcx>, block: &'tcx hir::Block) {
span,
"it is more idiomatic to write",
sug,
Applicability::MaybeIncorrect,
Applicability::HasPlaceholders,
);
if !mutability.is_empty() {
db.note("you might not need `mut` at all");

View File

@ -344,7 +344,7 @@ fn check_match_bool(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm], expr: &Ex
expr.span,
"consider using an if/else expression",
sugg,
Applicability::MaybeIncorrect, // not sure
Applicability::HasPlaceholders,
);
}
}