Skip to content

Commit 4dac816

Browse files
committed
redundant_allocation: change to MaybeIncorrect
1 parent c3ea7c2 commit 4dac816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/types/redundant_allocation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, qpath: &QPath<'_
2020
};
2121

2222
if let Some(span) = utils::match_borrows_parameter(cx, qpath) {
23-
let mut applicability = Applicability::MachineApplicable;
23+
let mut applicability = Applicability::MaybeIncorrect;
2424
span_lint_and_sugg(
2525
cx,
2626
REDUNDANT_ALLOCATION,
@@ -51,7 +51,7 @@ pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, qpath: &QPath<'_
5151
Some(ty) => ty.span,
5252
None => return false,
5353
};
54-
let mut applicability = Applicability::MachineApplicable;
54+
let mut applicability = Applicability::MaybeIncorrect;
5555
span_lint_and_sugg(
5656
cx,
5757
REDUNDANT_ALLOCATION,

0 commit comments

Comments
 (0)