hjson / hjson-rust

Hjson for Rust
https://hjson.github.io/
MIT License
102 stars 33 forks source link

don't crash when deserializing out of bound integers #17

Closed soenkehahn closed 2 months ago

soenkehahn commented 4 years ago

Before this PR de::from_str would panic when trying to parse out of bound integers. Now it returns an error. (It would be nicer if it would parse the numbers successfully, e.g. as floats or big integers. But returning an error is definitely better than panicking.)

Please let me know if I broke any coding conventions.

trobro commented 2 months ago

Seems to be fixed by #27.