File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1330,11 +1330,11 @@ macro_rules! int_impl {
1330
1330
without modifying the original"]
1331
1331
#[ inline]
1332
1332
pub const fn unbounded_shl( self , rhs: u32 ) -> $SelfT{
1333
- if rhs < Self :: BITS {
1333
+ if rhs < Self :: BITS {
1334
1334
// SAFETY:
1335
1335
// rhs is just checked to be in-range above
1336
1336
unsafe { self . unchecked_shl( rhs) }
1337
- } else{
1337
+ } else {
1338
1338
0
1339
1339
}
1340
1340
}
@@ -1457,11 +1457,11 @@ macro_rules! int_impl {
1457
1457
without modifying the original"]
1458
1458
#[ inline]
1459
1459
pub const fn unbounded_shr( self , rhs: u32 ) -> $SelfT{
1460
- if rhs < Self :: BITS {
1460
+ if rhs < Self :: BITS {
1461
1461
// SAFETY:
1462
1462
// rhs is just checked to be in-range above
1463
1463
unsafe { self . unchecked_shr( rhs) }
1464
- } else{
1464
+ } else {
1465
1465
// A shift by `Self::BITS-1` suffices for signed integers, because the sign bit is copied for each of the shifted bits.
1466
1466
1467
1467
// SAFETY:
Original file line number Diff line number Diff line change @@ -1519,11 +1519,11 @@ macro_rules! uint_impl {
1519
1519
without modifying the original"]
1520
1520
#[ inline]
1521
1521
pub const fn unbounded_shl( self , rhs: u32 ) -> $SelfT{
1522
- if rhs < Self :: BITS {
1522
+ if rhs < Self :: BITS {
1523
1523
// SAFETY:
1524
1524
// rhs is just checked to be in-range above
1525
1525
unsafe { self . unchecked_shl( rhs) }
1526
- } else{
1526
+ } else {
1527
1527
0
1528
1528
}
1529
1529
}
@@ -1644,11 +1644,11 @@ macro_rules! uint_impl {
1644
1644
without modifying the original"]
1645
1645
#[ inline]
1646
1646
pub const fn unbounded_shr( self , rhs: u32 ) -> $SelfT{
1647
- if rhs < Self :: BITS {
1647
+ if rhs < Self :: BITS {
1648
1648
// SAFETY:
1649
1649
// rhs is just checked to be in-range above
1650
1650
unsafe { self . unchecked_shr( rhs) }
1651
- } else{
1651
+ } else {
1652
1652
0
1653
1653
}
1654
1654
}
You can’t perform that action at this time.
0 commit comments