From 6196d26cede282b13ea35a8d20483c0818d88175 Mon Sep 17 00:00:00 2001 From: Pavlo Khrystenko <45178695+pkhry@users.noreply.github.com> Date: Wed, 5 Jun 2024 17:45:09 +0200 Subject: [PATCH] Codegen: add #[codec(dumb_trait_bound)] (#1630) closes #1603 --- codegen/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index a981557e8b..728926262b 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -342,10 +342,11 @@ fn default_derives(crate_path: &syn::Path) -> DerivesRegistry { parse_quote!(Debug), ]; - let attributes: [syn::Attribute; 3] = [ + let attributes: [syn::Attribute; 4] = [ parse_quote!(#[encode_as_type(crate_path = #encode_crate_path)]), parse_quote!(#[decode_as_type(crate_path = #decode_crate_path)]), parse_quote!(#[codec(crate = #crate_path::ext::codec)]), + parse_quote!(#[codec(dumb_trait_bound)]), ]; let mut derives_registry = DerivesRegistry::new();