We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
make tidy
1 parent 79dfa25 commit 8984242Copy full SHA for 8984242
src/libcore/char.rs
@@ -470,7 +470,8 @@ impl Iterator for EscapeUnicode {
470
Some('{')
471
}
472
EscapeUnicodeState::Value => {
473
- let c = from_digit(((self.c as u32) >> (self.hex_digit_idx * 4)) & 0xf, 16).unwrap();
+ let hex_digit = ((self.c as u32) >> (self.hex_digit_idx * 4)) & 0xf;
474
+ let c = from_digit(hex_digit, 16).unwrap();
475
if self.hex_digit_idx == 0 {
476
self.state = EscapeUnicodeState::RightBrace;
477
} else {
0 commit comments