We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using version 2.0.0-rc.2, the following code:
2.0.0-rc.2
fn main() { let array: [u8; 3] = [11, 12, 13]; let stdcfg = bincode::config::standard(); assert_eq!( bincode::encode_to_vec(&array, stdcfg).unwrap(), bincode::serde::encode_to_vec(&array, stdcfg).unwrap(), ); }
Fails with:
thread 'main' panicked at 'assertion failed: `(left == right)` left: `[3, 11, 12, 13]`, right: `[11, 12, 13]`', src/main.rs:6:5
This means bincode::encode_to_vec isn't compatible with bincode::serde::encode_to_vec. This is highly surprising.
bincode::encode_to_vec
bincode::serde::encode_to_vec
See also: How can bincode distinguish between tuples and (fixed size) arrays? on URLO.
The text was updated successfully, but these errors were encountered:
That definitely seems like a bug, thanks for reporting
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Using version
2.0.0-rc.2
, the following code:Fails with:
This means
bincode::encode_to_vec
isn't compatible withbincode::serde::encode_to_vec
. This is highly surprising.See also: How can bincode distinguish between tuples and (fixed size) arrays? on URLO.
The text was updated successfully, but these errors were encountered: