Remove unnecessary is_empty check

This commit is contained in:
Gustavo
2024-03-14 09:44:00 -03:00
parent 3eb3afc130
commit c6f126e9fb
+1 -5
View File
@@ -338,11 +338,7 @@ fn generate_impl_block_header(
quote! { #bounds }
},
|bounds| {
if !bounds.is_empty() {
quote! { where #(#bounds),* }
} else {
quote!()
}
quote! { where #(#bounds),* }
},
);