From d03c747cfef277fda5823e08784c94c30c7f3964 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 19 Mar 2023 13:30:53 +0100 Subject: fix: allow trait generic param bounds --- macros/src/expectation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macros/src/expectation.rs') diff --git a/macros/src/expectation.rs b/macros/src/expectation.rs index d35ef97..7d8f1a7 100644 --- a/macros/src/expectation.rs +++ b/macros/src/expectation.rs @@ -208,7 +208,7 @@ impl ToTokens for Expectation vis: Visibility::new_pub_crate(), struct_token: ::default(), ident: self.ident.clone(), - generics: generics.clone().without_where_clause(), + generics: generics.clone().strip_where_clause_and_bounds(), fields: Fields::Named(FieldsNamed { brace_token: Brace::default(), named: [Field { -- cgit v1.2.3-18-g5258