Skip to content

Commit 79bf2d0

Browse files
committed
Changed the applicability
1 parent 0d0fec2 commit 79bf2d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/unused_box.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ impl LateLintPass<'_> for UnusedBox {
7171
format!("function returns `Box<{0}>` when `{0}` implements `Sized`", boxed_ty).as_str(),
7272
"change the return type to",
7373
boxed_ty.to_string(),
74-
Applicability::MaybeIncorrect,
74+
// the return value also needs to be changed, so this can't be MachineApplicable
75+
Applicability::HasPlaceholders,
7576
);
7677
}
7778
}

0 commit comments

Comments
 (0)