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 e47dba0 commit cbb966dCopy full SHA for cbb966d
clippy_lints/src/default_box_assignments.rs
@@ -69,7 +69,7 @@ fn is_box_of_default<'a>(ty: Ty<'a>, cx: &LateContext<'a>) -> bool {
69
{
70
cx.tcx
71
.get_diagnostic_item(sym::Default)
72
- .map_or(false, |id| implements_trait(cx, inner, id, &[]))
+ .is_some_and(|id| implements_trait(cx, inner, id, &[]))
73
} else {
74
false
75
}
0 commit comments