We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a00ca3 commit f735956Copy full SHA for f735956
crates/ast_node/src/encoding/decode.rs
@@ -27,7 +27,7 @@ pub fn expand(DeriveInput { ident, data, .. }: DeriveInput) -> syn::ItemImpl {
27
(Some(with_type), false) => syn::parse_quote!(<#with_type<#ty> as cbor4ii::core::dec::Decode<'_>>::decode(reader)?.0),
28
(None, false) => syn::parse_quote!(<#ty as cbor4ii::core::dec::Decode<'_>>::decode(reader)?),
29
(None, true) => syn::parse_quote!(<#ty as Default>::default()),
30
- (Some(_), true) => panic!("unsupported with and ignore")
+ (Some(_), true) => panic!("Cannot use both #[encoding(with)] and #[encoding(ignore)] attributes on the same field")
31
};
32
33
syn::parse_quote!{
0 commit comments