From 5145992e4b03fdaebcc4d35aa7ee44504ca82b5a Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:08:12 +0200 Subject: [PATCH] chore: clippy (#2534) --- ethers-contract/ethers-contract-derive/src/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethers-contract/ethers-contract-derive/src/utils.rs b/ethers-contract/ethers-contract-derive/src/utils.rs index dfb49513e..65eb2ad71 100644 --- a/ethers-contract/ethers-contract-derive/src/utils.rs +++ b/ethers-contract/ethers-contract-derive/src/utils.rs @@ -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()