feat: bincode_1_3 by default

This commit is contained in:
Vincent Herlemont
2023-10-29 09:43:41 +01:00
parent f07922cdb4
commit 2f68d495c1
5 changed files with 33 additions and 3 deletions
@@ -7,7 +7,6 @@ pub(crate) fn generate_native_model_decode_body(attrs: &ModelAttributes) -> Toke
let with = attrs.with.clone().expect("`with` is required");
let gen = quote! {
fn native_model_decode_body(data: Vec<u8>, id: u32) -> std::result::Result<Self, native_model::DecodeBodyError> {
println!("id: {}, {}", id, #id);
if id != #id {
return Err(native_model::DecodeBodyError::MismatchedModelId);
}