Skip to content

Commit 8984242

Browse files
committed
Fix make tidy and name what is being computed
1 parent 79dfa25 commit 8984242

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/char.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ impl Iterator for EscapeUnicode {
470470
Some('{')
471471
}
472472
EscapeUnicodeState::Value => {
473-
let c = from_digit(((self.c as u32) >> (self.hex_digit_idx * 4)) & 0xf, 16).unwrap();
473+
let hex_digit = ((self.c as u32) >> (self.hex_digit_idx * 4)) & 0xf;
474+
let c = from_digit(hex_digit, 16).unwrap();
474475
if self.hex_digit_idx == 0 {
475476
self.state = EscapeUnicodeState::RightBrace;
476477
} else {

0 commit comments

Comments
 (0)