diff options
author | HampusM <hampus@hampusmat.com> | 2023-03-19 13:30:53 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-03-19 13:30:53 +0100 |
commit | d03c747cfef277fda5823e08784c94c30c7f3964 (patch) | |
tree | 99620a5d44ed4c1874f69578cddfdc1420c11d6e /macros/src/expectation.rs | |
parent | 21911153355b4bf9612c38f5ac92562aec02ffd9 (diff) |
fix: allow trait generic param bounds
Diffstat (limited to 'macros/src/expectation.rs')
-rw-r--r-- | macros/src/expectation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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: <Token![struct]>::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 { |