mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Make clippy happy (#3350)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user