hjson-rust icon indicating copy to clipboard operation
hjson-rust copied to clipboard

don't crash when deserializing out of bound integers

Open soenkehahn opened this issue 5 years ago • 0 comments

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.

soenkehahn avatar Jun 27 '20 22:06 soenkehahn