Skip to content

Commit adf148a

Browse files
Fix double extjson deserialization (#386) (#395) (#397)
Co-authored-by: mitchrmiller <[email protected]>
1 parent 3108a18 commit adf148a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/de/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl<'de> Visitor<'de> for BsonVisitor {
361361
"Infinity" => Bson::Double(std::f64::INFINITY),
362362
"-Infinity" => Bson::Double(std::f64::NEG_INFINITY),
363363
"NaN" => Bson::Double(std::f64::NAN),
364-
_ => Bson::Int64(string.parse().map_err(|_| {
364+
_ => Bson::Double(string.parse().map_err(|_| {
365365
V::Error::invalid_value(
366366
Unexpected::Str(&string),
367367
&"64-bit signed integer as a string",

0 commit comments

Comments
 (0)