mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 20:55:03 +00:00
Apply cargo fmt (#1146)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
1 parent
b413e5e84e
commit
91a56fd580
18 files changed
+157
-74
No files matched your search
@@ -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