Skip to content

Commit 5ec13c9

Browse files
committed
merge pats
1 parent 9a2076e commit 5ec13c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/len_zero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ fn is_first_generic_integral<'tcx>(segment: &'tcx PathSegment<'tcx>) -> bool {
349349
let segments = &path.segments;
350350
let segment = &segments[0];
351351
let res = &segment.res;
352-
if matches!(res, Res::PrimTy(PrimTy::Uint(_))) || matches!(res, Res::PrimTy(PrimTy::Int(_))) {
352+
if matches!(res, Res::PrimTy(PrimTy::Uint(_) | PrimTy::Int(_))) {
353353
return true;
354354
}
355355
}
@@ -362,7 +362,7 @@ fn parse_len_output<'tcx>(cx: &LateContext<'tcx>, sig: FnSig<'tcx>) -> Option<Le
362362
if let Some(segment) = extract_future_output(cx, sig.output()) {
363363
let res = segment.res;
364364

365-
if matches!(res, Res::PrimTy(PrimTy::Uint(_))) || matches!(res, Res::PrimTy(PrimTy::Int(_))) {
365+
if matches!(res, Res::PrimTy(PrimTy::Uint(_) | PrimTy::Int(_))) {
366366
return Some(LenOutput::Integral);
367367
}
368368

0 commit comments

Comments
 (0)