We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e16730f commit f3df680Copy full SHA for f3df680
src/de.rs
@@ -1028,22 +1028,18 @@ impl<'de, R: Read<'de>> Deserializer<R> {
1028
self.eat_char();
1029
buf.push('e');
1030
1031
- let has_sign = match tri!(self.peek_or_null()) {
+ match tri!(self.peek_or_null()) {
1032
b'+' => {
1033
1034
buf.push('+');
1035
- true
1036
}
1037
b'-' => {
1038
1039
buf.push('-');
1040
1041
1042
- _ => false,
1043
- };
1044
-
1045
- if !has_sign {
1046
- buf.push('+');
+ _ => {
+ buf.push('+');
+ }
1047
1048
1049
// Make sure a digit follows the exponent place.
0 commit comments