Skip to content

Commit 882de01

Browse files
aballwaynicholasbishop
authored andcommitted
uguid: Fix error in a test
Add parens to fix "error: operator precedence can trip the unwary"
1 parent bc2cfd4 commit 882de01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uguid/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const fn parse_byte_from_ascii_char_pair(a: u8, b: u8) -> Option<u8> {
5858
return None;
5959
};
6060

61-
Some(a << 4 | b)
61+
Some((a << 4) | b)
6262
}
6363

6464
/// Parse a pair of hexadecimal ASCII characters at position `start` as

0 commit comments

Comments
 (0)