mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 09:37:55 +00:00
Apply cargo fmt (#1146)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -187,11 +187,21 @@ impl TypeSubstitutes {
|
||||
src_path: &syn::Path,
|
||||
target_path: &syn::Path,
|
||||
) -> Result<TypeParamMapping, TypeSubstitutionError> {
|
||||
let Some(syn::PathSegment { arguments: src_path_args, .. }) = src_path.segments.last() else {
|
||||
let Some(syn::PathSegment {
|
||||
arguments: src_path_args,
|
||||
..
|
||||
}) = src_path.segments.last()
|
||||
else {
|
||||
return Err(TypeSubstitutionError::EmptySubstitutePath(src_path.span()));
|
||||
};
|
||||
let Some(syn::PathSegment { arguments: target_path_args, .. }) = target_path.segments.last() else {
|
||||
return Err(TypeSubstitutionError::EmptySubstitutePath(target_path.span()));
|
||||
let Some(syn::PathSegment {
|
||||
arguments: target_path_args,
|
||||
..
|
||||
}) = target_path.segments.last()
|
||||
else {
|
||||
return Err(TypeSubstitutionError::EmptySubstitutePath(
|
||||
target_path.span(),
|
||||
));
|
||||
};
|
||||
|
||||
// Get hold of the generic args for the "from" type, erroring if they aren't valid.
|
||||
|
||||
Reference in New Issue
Block a user