3Hren / msgpack-rust

MessagePack implementation for Rust / msgpack.org[Rust]
MIT License
1.17k stars 130 forks source link

Incorrect docs: DefaultConfig #323

Open e-ivkov opened 1 year ago

e-ivkov commented 1 year ago

https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L58

It seems it doesn't actually write enum variants by index, it uses idents as strings to prefix enum variant.

Impl: https://github.com/3Hren/msgpack-rust/blob/941441f484c325464c9746fdca9d11c1ca6a2d78/rmp-serde/src/config.rs#L87-L97