bcmyers / num-format

A Rust crate for producing string representations of numbers, formatted according to international standards
Apache License 2.0
122 stars 22 forks source link

[num-format] Fix `Buffer` failing to deserialize in binary formats #41

Open hinto-janai opened 1 year ago

hinto-janai commented 1 year ago

Fixes https://github.com/bcmyers/num-format/issues/40.

The culprit was deserialize_bytes() which was changed to deserialize_seq().

Previously working serde operations (JSON, TOML) seem to work fine, and now binary formats work as well.

A test for bincode was added as well.