Skip to content

Commit

Permalink
Fix make tidy and name what is being computed
Browse files Browse the repository at this point in the history
  • Loading branch information
ranma42 committed Jan 28, 2016
1 parent 79dfa25 commit 8984242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libcore/char.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 8984242

Please sign in to comment.