Skip to content

Commit cbb966d

Browse files
committed
Fix Clippy lint
1 parent e47dba0 commit cbb966d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/default_box_assignments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn is_box_of_default<'a>(ty: Ty<'a>, cx: &LateContext<'a>) -> bool {
6969
{
7070
cx.tcx
7171
.get_diagnostic_item(sym::Default)
72-
.map_or(false, |id| implements_trait(cx, inner, id, &[]))
72+
.is_some_and(|id| implements_trait(cx, inner, id, &[]))
7373
} else {
7474
false
7575
}

0 commit comments

Comments
 (0)