Skip to content

Commit 7a3e3c0

Browse files
committed
Appease clippy
1 parent d6d2cac commit 7a3e3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/encoding/utf8.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ pub const fn next_code_point(bytes: &[u8], i: usize) -> (u32, usize) {
2727
let z = bytes[i + 2];
2828
let y_z = utf8_acc_cont_byte((y & CONT_MASK) as u32, z);
2929
if x < 0xF0 {
30-
(init << 12 | y_z, 3)
30+
((init << 12) | y_z, 3)
3131
} else {
3232
let w = bytes[i + 3];
33-
((init & 7) << 18 | utf8_acc_cont_byte(y_z, w), 4)
33+
(((init & 7) << 18) | utf8_acc_cont_byte(y_z, w), 4)
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)