Skip to content

Commit

Permalink
Changed the applicability
Browse files Browse the repository at this point in the history
  • Loading branch information
botahamec committed Jul 15, 2022
1 parent 0d0fec2 commit 79bf2d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/unused_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ impl LateLintPass<'_> for UnusedBox {
format!("function returns `Box<{0}>` when `{0}` implements `Sized`", boxed_ty).as_str(),
"change the return type to",
boxed_ty.to_string(),
Applicability::MaybeIncorrect,
// the return value also needs to be changed, so this can't be MachineApplicable
Applicability::HasPlaceholders,
);
}
}
Expand Down

0 comments on commit 79bf2d0

Please sign in to comment.