We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d0fec2 commit 79bf2d0Copy full SHA for 79bf2d0
clippy_lints/src/unused_box.rs
@@ -71,7 +71,8 @@ impl LateLintPass<'_> for UnusedBox {
71
format!("function returns `Box<{0}>` when `{0}` implements `Sized`", boxed_ty).as_str(),
72
"change the return type to",
73
boxed_ty.to_string(),
74
- Applicability::MaybeIncorrect,
+ // the return value also needs to be changed, so this can't be MachineApplicable
75
+ Applicability::HasPlaceholders,
76
);
77
}
78
0 commit comments