Fix make tidy and name what is being computed

This commit is contained in:
Andrea Canciani 2016-01-28 15:18:42 +01:00
parent 79dfa25900
commit 8984242373

View file

@ -470,7 +470,8 @@ impl Iterator for EscapeUnicode {
Some('{')
}
EscapeUnicodeState::Value => {
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;
let c = from_digit(hex_digit, 16).unwrap();
if self.hex_digit_idx == 0 {
self.state = EscapeUnicodeState::RightBrace;
} else {