Problems with Ron and json Value integers
trsh opened this issue · 6 comments
trsh commented
When using setup like
let db = FileDatabase::<HashMap<String, Value>, Ron>::from_path("test.ron", HashMap::new())
in the returned Value
let res = db.get(&self.uid.to_string());
all integers are converted to floats (ex 1 to 1.0)
trsh commented
This problem is not present with Yaml, so I switched for now.
niluxv commented
Probably caused by ron-rs/ron#100 (RON issue).
It should be fixed once rustbreak updates the version of RON, see issue #68.
TheNeikos commented
This should be fixed by now
niluxv commented
If this is indeed caused by ron-rs/ron#100 then I think we actually need to update ron
to version 0.6 to fix this (this version was released after I opened pull request #73).
niluxv commented
Ah, perfect! Okay, then this should indeed be fixed.