Skip to content

Commit 60efb11

Browse files
committed
address clippy 1.85 errors
1 parent 901cdb5 commit 60efb11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trace-normalization/src/utf8_helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ pub(crate) fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) ->
4040
// so the iterator must produce a value here.
4141
let z = *bytes.next()?;
4242
let y_z = utf8_acc_cont_byte((y & CONT_MASK) as u32, z);
43-
ch = init << 12 | y_z;
43+
ch = (init << 12) | y_z;
4444
if x >= 0xF0 {
4545
// [x y z w] case
4646
// use only the lower 3 bits of `init`
4747
// SAFETY: `bytes` produces an UTF-8-like string,
4848
// so the iterator must produce a value here.
4949
let w = *bytes.next()?;
50-
ch = (init & 7) << 18 | utf8_acc_cont_byte(y_z, w);
50+
ch = ((init & 7) << 18) | utf8_acc_cont_byte(y_z, w);
5151
}
5252
}
5353

0 commit comments

Comments
 (0)