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

chore: clippy #2534

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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