提交 89842423 编写于 作者: A Andrea Canciani

Fix `make tidy` and name what is being computed

上级 79dfa259
......@@ -470,7 +470,8 @@ fn next(&mut self) -> Option<char> {
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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册