Skip to content

Commit 9043de4

Browse files
committed
Applicability adjustment per additional comments
1 parent 2d3c987 commit 9043de4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_lints/src/large_enum_variant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LargeEnumVariant {
102102
"consider boxing the large fields to reduce the total size of the \
103103
enum",
104104
format!("Box<{}>", snip),
105-
Applicability::MachineApplicable,
105+
Applicability::Unspecified,
106106
);
107107
return;
108108
}

clippy_lints/src/let_if_seq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LetIfSeq {
125125
span,
126126
"it is more idiomatic to write",
127127
sug,
128-
Applicability::MaybeIncorrect,
128+
Applicability::HasPlaceholders,
129129
);
130130
if !mutability.is_empty() {
131131
db.note("you might not need `mut` at all");

clippy_lints/src/matches.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ fn check_match_bool(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm], expr: &Ex
344344
expr.span,
345345
"consider using an if/else expression",
346346
sugg,
347-
Applicability::MaybeIncorrect, // not sure
347+
Applicability::HasPlaceholders,
348348
);
349349
}
350350
}

0 commit comments

Comments
 (0)