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

Commit

Permalink
chore: clippy (#2534)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Aug 2, 2023
1 parent 49be9dc commit 5145992
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ethers-contract/ethers-contract-derive/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ pub fn derive_abi_inputs_from_fields(
fields
.iter()
.map(|f| {
let name =
f.ident.as_ref().map(|name| name.to_string()).unwrap_or_else(|| "".to_string());
let name = f.ident.as_ref().map(|name| name.to_string()).unwrap_or_default();
find_parameter_type(&f.ty).map(|ty| (name, ty))
})
.collect()
Expand Down

0 comments on commit 5145992

Please sign in to comment.