]> git.lizzy.rs Git - rust.git/commitdiff
Make vec_box MachineApplicable
authorPhilipp Hansch <dev@phansch.net>
Fri, 1 Feb 2019 07:42:01 +0000 (08:42 +0100)
committerPhilipp Hansch <dev@phansch.net>
Fri, 1 Feb 2019 17:18:45 +0000 (18:18 +0100)
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
                             }