Make clippy happy (#3350)

This commit is contained in:
Jonas Platte
2025-09-28 19:15:42 +02:00
parent abe98474e1
commit 01ecea0e33
8 changed files with 18 additions and 18 deletions
+5 -4
View File
@@ -775,10 +775,11 @@ fn impl_struct_by_extracting_all_at_once(
.chain(via_marker_type)
.collect::<Punctuated<Type, Token![,]>>();
let ident_generics = generic_ident
.is_some()
.then(|| quote! { <T> })
.unwrap_or_default();
let ident_generics = if generic_ident.is_some() {
quote! { <T> }
} else {
TokenStream::new()
};
let rejection_bound = rejection.as_ref().map(|rejection| {
match (tr, generic_ident.is_some()) {