Make vec_box MachineApplicable

This commit is contained in:
Philipp Hansch 2019-02-01 08:42:01 +01:00
parent 4aff8711f0
commit 38347bad38
No known key found for this signature in database
GPG Key ID: B6FA06A6E0E2665B

View File

@ -289,7 +289,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
"`Vec<T>` is already on the heap, the boxing is unnecessary.",
"try",
format!("Vec<{}>", ty_ty),
Applicability::MaybeIncorrect,
Applicability::MachineApplicable,
);
return; // don't recurse into the type
}