We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60df7e4 commit d353bc6Copy full SHA for d353bc6
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