diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-15 08:32:46 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 |
commit | 301e8ab009a48c7f44547cbb2242fdf280f04438 (patch) | |
tree | fb52190a1968786a92c83b8246058f7d76b6aa6a /src | |
parent | e0434737b20b32a8d7238a134c3662fa9075eb6d (diff) |
chore: rename variable
Diffstat (limited to 'src')
-rw-r--r-- | src/tokenizer/machine.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenizer/machine.rs b/src/tokenizer/machine.rs index 9aaac73..28b101d 100644 --- a/src/tokenizer/machine.rs +++ b/src/tokenizer/machine.rs @@ -1799,9 +1799,9 @@ where } } State::NamedCharacterReference => { - let c = slf.read_char()?; + let first_char = slf.read_char()?; - let char_ref = match c { + let char_ref = match first_char { Some(x) => try_read_character_reference(x, |x| slf.try_read_string(x, true))? .map(|char_ref| (x, char_ref)), @@ -1835,7 +1835,7 @@ where Ok(ControlToken::Continue) } } else { - slf.unread_char(c); + slf.unread_char(first_char); slf.flush_code_points_consumed_as_character_reference(); slf.state = State::AmbiguousAmpersand; Ok(ControlToken::Continue) |