confy icon indicating copy to clipboard operation
confy copied to clipboard

Confy corrupts config files

Open satarsa opened this issue 4 years ago • 3 comments

I use confy to store float values in toml. It was working fine until recently (a month ago?) instead of storing something like value = 0.0 it is stored like value = --0.0 and of course after restart confy returns an error on this value. I understand that this is probably a bug in the toml crate (?) which has likely got a minor update which breaks confy, but I am not sure how to report the issue there.

satarsa avatar Aug 28 '21 11:08 satarsa

I found that it happens only if f64 is -0.0 (i.e 0b10000....), if it helps.

satarsa avatar Aug 28 '21 11:08 satarsa

Fixed in https://github.com/alexcrichton/toml-rs/pull/426 (not released to crates.io)

AlyoshaVasilieva avatar Dec 16 '21 22:12 AlyoshaVasilieva

Now released: https://github.com/alexcrichton/toml-rs/releases/tag/0.5.9

AlyoshaVasilieva avatar Apr 18 '22 23:04 AlyoshaVasilieva

Now released: https://github.com/alexcrichton/toml-rs/releases/tag/0.5.9

Yep, thanks, can be closed, I guess.

satarsa avatar Oct 27 '22 13:10 satarsa