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?",