From a4c4da1c4b4d4356fecf998ce7499c1a836573e2 Mon Sep 17 00:00:00 2001 From: scott-linder Date: Wed, 1 Feb 2017 11:17:17 -0500 Subject: [PATCH] Fix typo in types check --- clippy_lints/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index a073e7e98523..5918d76a5ff4 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -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>`. Consider using just `Vec`", "`Vec` is already on the heap, `Box>` makes an extra allocation.");