From c6f126e9fbf8b5da995d985b57bc4828418ef68d Mon Sep 17 00:00:00 2001 From: Gustavo Date: Thu, 14 Mar 2024 09:44:00 -0300 Subject: [PATCH] Remove unnecessary `is_empty` check --- macros/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 090ab7d..1b9c8d0 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -338,11 +338,7 @@ fn generate_impl_block_header( quote! { #bounds } }, |bounds| { - if !bounds.is_empty() { - quote! { where #(#bounds),* } - } else { - quote!() - } + quote! { where #(#bounds),* } }, );