Skip to content

Commit

Permalink
Applicability adjustment per additional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed Sep 18, 2018
1 parent 2d3c987 commit 9043de4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/large_enum_variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LargeEnumVariant {
"consider boxing the large fields to reduce the total size of the \
enum",
format!("Box<{}>", snip),
Applicability::MachineApplicable,
Applicability::Unspecified,
);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/let_if_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LetIfSeq {
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");
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}
Expand Down

0 comments on commit 9043de4

Please sign in to comment.