]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/types.rs
Make vec_box MachineApplicable
[rust.git] / clippy_lints / src / types.rs
index 75e2f75ffcd4623df48b0fa90c0826d32c2bd819..6ee7d10155cd602d96fcd1489d1462c4ec29b447 100644 (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
                             }