mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
macros: upgrade syn to v3 (#8304)
This commit is contained in:
@@ -326,7 +326,7 @@ fn contains_impl_trait(ty: &syn::Type) -> bool {
|
||||
_ => false,
|
||||
}),
|
||||
syn::PathArguments::Parenthesized(args) => {
|
||||
args.inputs.iter().any(contains_impl_trait)
|
||||
args.inputs.iter().any(|arg| contains_impl_trait(&arg.ty))
|
||||
|| matches!(&args.output, syn::ReturnType::Type(_, t) if contains_impl_trait(t))
|
||||
}
|
||||
syn::PathArguments::None => false,
|
||||
|
||||
Reference in New Issue
Block a user