Skip to content

Commit 53e6ce4

Browse files
committed
Restore compatiblity with older rustc after PR 786
1 parent c38fc65 commit 53e6ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/de.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ impl<'de, R: Read<'de>> Deserializer<R> {
899899
fn scan_number(&mut self, buf: &mut String) -> Result<()> {
900900
match tri!(self.peek_or_null()) {
901901
b'.' => self.scan_decimal(buf),
902-
c @ (b'e' | b'E') => self.scan_exponent(c as char, buf),
902+
e @ b'e' | e @ b'E' => self.scan_exponent(e as char, buf),
903903
_ => Ok(()),
904904
}
905905
}
@@ -924,7 +924,7 @@ impl<'de, R: Read<'de>> Deserializer<R> {
924924
}
925925

926926
match tri!(self.peek_or_null()) {
927-
c @ (b'e' | b'E') => self.scan_exponent(c as char, buf),
927+
e @ b'e' | e @ b'E' => self.scan_exponent(e as char, buf),
928928
_ => Ok(()),
929929
}
930930
}

0 commit comments

Comments
 (0)