Skip to content

Commit 8905cb7

Browse files
author
scott-linder
committed
Actually fix the lint applied
1 parent 67f3845 commit 8905cb7

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
@@ -140,7 +140,7 @@ fn check_ty(cx: &LateContext, ast_ty: &Ty) {
140140
match_def_path(cx.tcx, did, &paths::VEC),
141141
], {
142142
span_help_and_lint(cx,
143-
BORROWED_BOX,
143+
BOX_VEC,
144144
ast_ty.span,
145145
"you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`",
146146
"`Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation.");
@@ -182,7 +182,7 @@ fn check_ty(cx: &LateContext, ast_ty: &Ty) {
182182
if let Some(def_id) = opt_def_id(def) {
183183
if Some(def_id) == cx.tcx.lang_items.owned_box() {
184184
span_help_and_lint(cx,
185-
BOX_VEC,
185+
BORROWED_BOX,
186186
ast_ty.span,
187187
"you seem to be trying to use `&Box<T>`. Consider using just `&T`",
188188
"replace `&Box<T>` with simply `&T`");

0 commit comments

Comments
 (0)