Skip to content

Commit b1fca3b

Browse files
author
scott-linder
committed
Actually fix the lint applied
1 parent 92e0e2f commit b1fca3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn check_ty(cx: &LateContext, ast_ty: &Ty) {
141141
match_def_path(cx.tcx, did, &paths::VEC),
142142
], {
143143
span_help_and_lint(cx,
144-
BORROWED_BOX,
144+
BOX_VEC,
145145
ast_ty.span,
146146
"you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`",
147147
"`Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation.");
@@ -183,7 +183,7 @@ fn check_ty(cx: &LateContext, ast_ty: &Ty) {
183183
if let Some(def_id) = opt_def_id(def) {
184184
if Some(def_id) == cx.tcx.lang_items.owned_box() {
185185
span_help_and_lint(cx,
186-
BOX_VEC,
186+
BORROWED_BOX,
187187
ast_ty.span,
188188
"you seem to be trying to use `&Box<T>`. Consider using just `&T`",
189189
"replace `&Box<T>` with simply `&T`");

0 commit comments

Comments
 (0)