From 11dea785955881b3f5461e7e22f96af151aa4fc0 Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Wed, 6 May 2015 22:52:16 -0700 Subject: [PATCH] Fix Box> test. --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index c966c49be85..f0c91dc18b5 100644 --- a/src/types.rs +++ b/src/types.rs @@ -58,7 +58,7 @@ impl LintPass for TypePass { use std::vec::Vec; } match_ty_unwrap(ty, &["std", "boxed", "Box"]).and_then(|t| t.first()) - .map(|t| match_ty_unwrap(&**t, &["std", "vec", "Vec"])) + .and_then(|t| match_ty_unwrap(&**t, &["std", "vec", "Vec"])) .map(|_| { span_note_and_lint(cx, BOX_VEC, ty.span, "You seem to be trying to use Box>. Did you mean to use Vec?",