Skip to content

Commit d398b8f

Browse files
committed
Avoid Option::is_none_or for a while
1 parent 5461f49 commit d398b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/consteval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub(crate) fn const_eval_discriminant_variant(
287287
}
288288

289289
let repr = db.enum_data(loc.parent).repr;
290-
let is_signed = repr.and_then(|repr| repr.int).is_none_or(|int| int.is_signed());
290+
let is_signed = IsNoneOr::is_none_or(repr.and_then(|repr| repr.int), |int| int.is_signed());
291291

292292
let mir_body = db.monomorphized_mir_body(
293293
def,

0 commit comments

Comments
 (0)