hjson-rust
hjson-rust copied to clipboard
don't crash when deserializing out of bound integers
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.