]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in types check
authorscott-linder <scott.b.linder@wmich.edu>
Wed, 1 Feb 2017 16:17:17 +0000 (11:17 -0500)
committerscott-linder <scott.b.linder@wmich.edu>
Sun, 11 Jun 2017 16:19:11 +0000 (12:19 -0400)
clippy_lints/src/types.rs

index a073e7e98523de58729165bef31c88ea8e615f09..5918d76a5ff4375ab5cacd536c58f1b21df1a457 100644 (file)
@@ -142,7 +142,7 @@ fn check_ty(cx: &LateContext, ast_ty: &hir::Ty) {
                         match_def_path(cx.tcx, did, &paths::VEC),
                     ], {
                         span_help_and_lint(cx,
-                                           BOX_VEC,
+                                           BORROWED_BOX,
                                            ast_ty.span,
                                            "you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`",
                                            "`Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation.");