TheNeikos/rustbreak

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.

Probably caused by ron-rs/ron#100 (RON issue).
It should be fixed once rustbreak updates the version of RON, see issue #68.

This should be fixed by now

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 I have also merged #76 which brings everything to the latest versions

Ah, perfect! Okay, then this should indeed be fixed.