Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Oct 1, 2021
1 parent 6d2ac41 commit fda88c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ethers-core/src/abi/human_readable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,16 @@ impl AbiParser {
"" => None,
input_params_args => Some(input_params_args),
};
let modifiers = match input_args_modifiers_iter
.next()
.ok_or_else(|| format_err!("Expected input args parentheses at `{}`", s))?
{
"" => None,
modifiers => Some(modifiers),
};

let inputs = if let Some(params) = input_args {
self
let inputs = self
.parse_params(params)?
.into_iter()
.map(|(input, struct_name)| {
Expand All @@ -302,7 +309,8 @@ impl AbiParser {
}
input
})
.collect()
.collect();
inputs
} else {
Vec::new()
};
Expand Down

0 comments on commit fda88c3

Please sign in to comment.