Applicability adjustment per additional comments
This commit is contained in:
parent
58729346be
commit
52fb7d461e
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user