mirror of
https://github.com/xazukx/ts-rs.git
synced 2026-11-26 23:50:24 +00:00
Remove unnecessary is_empty check
This commit is contained in:
+1
-5
@@ -338,11 +338,7 @@ fn generate_impl_block_header(
|
||||
quote! { #bounds }
|
||||
},
|
||||
|bounds| {
|
||||
if !bounds.is_empty() {
|
||||
quote! { where #(#bounds),* }
|
||||
} else {
|
||||
quote!()
|
||||
}
|
||||
quote! { where #(#bounds),* }
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user