You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Looks like rmp_serde::to_vec works not properly for rmpv::Value with map inside it. I'm expected that result is encoded message pack vector, but result is a map. For example:
#[test]fnserialize_value_as_map(){let value = rmpv::Value::Map(vec![(rmpv::Value::from("a"), rmpv::Value::from(1)),(rmpv::Value::from("b"), rmpv::Value::from(2)),]);let encoded = rmp_serde::to_vec(&value).unwrap();assert_eq!(vec![130,161,97,1,161,98,2], encoded);}
The text was updated successfully, but these errors were encountered:
Hi!
Looks like rmp_serde::to_vec works not properly for rmpv::Value with map inside it. I'm expected that result is encoded message pack vector, but result is a map. For example:
The text was updated successfully, but these errors were encountered: