From 80225095fe224285215b83406950d53835e4dcf9 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 20 Nov 2021 09:54:46 +0100 Subject: support where clauses for trait generics --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index abeab4c..b655778 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -338,10 +338,10 @@ fn generate_blanket_impl( eq_token: None, default: None, })); - let (_, type_gen, _where) = dyn_trait.generics.split_for_impl(); + let (_, type_gen, where_clause) = dyn_trait.generics.split_for_impl(); let dyn_trait_name = &dyn_trait.ident; quote! { - impl #blanket_generics #dyn_trait_name #type_gen for #some_ident { + impl #blanket_generics #dyn_trait_name #type_gen for #some_ident #where_clause { #(#method_impls)* } } -- cgit v1.2.3