Skip to content

Commit 2cf5bdf

Browse files
committed
Resolve clippy::precedence in Rust 1.85
1 parent 40fabb3 commit 2cf5bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yaml/encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ where
334334
// units form a valid surrogate pair.
335335
Some(Ok(unsafe {
336336
char::from_u32_unchecked(
337-
0x10000 + (u32::from(lead - 0xD800) << 10 | u32::from(trail - 0xDC00)),
337+
0x10000 + ((u32::from(lead - 0xD800) << 10) | u32::from(trail - 0xDC00)),
338338
)
339339
}))
340340
}

0 commit comments

Comments
 (0)