Skip to content

Commit a2f1c3f

Browse files
committed
Address formatting issues
1 parent 5b1c801 commit a2f1c3f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/libcollections/bit.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,13 @@ impl BitVec {
695695
let mut cur = self.storage.iter().skip(w).peekable();
696696
loop {
697697
match (cur.next(), cur.peek()) {
698-
(Some(x), Some(y)) => { other.storage.push((*x >> b) + (**y << (u32::BITS - b))) },
699-
(Some(x), None) => { other.storage.push((*x >> b)); break; },
698+
(Some(x), Some(y)) => {
699+
other.storage.push((*x >> b) + (**y << (u32::BITS - b)))
700+
},
701+
(Some(x), None) => {
702+
other.storage.push((*x >> b));
703+
break;
704+
},
700705
(None, Some(_)) => unreachable!(),
701706
(None, None) => unreachable!(),
702707
}

src/libcollectionstest/bit/vec.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ fn test_bit_vec_split_off() {
717717
assert!(b.eq_vec(&[true, true, true, true, false, false, true, true]));
718718

719719
// Don't split at block boundary
720-
let mut a = BitVec::from_bytes(&[0b10100000, 0b00010010, 0b10010010, 0b00110011, 0b01101011, 0b10101101]);
720+
let mut a = BitVec::from_bytes(&[0b10100000, 0b00010010, 0b10010010, 0b00110011,
721+
0b01101011, 0b10101101]);
721722

722723
let b = a.split_off(13);
723724

0 commit comments

Comments
 (0)