From 4558b0445e0f81afa084fd3c18a52a342bf31fc5 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sat, 25 Mar 2023 03:26:47 +0100 Subject: [PATCH] chore: clippy --- ethers-core/src/types/chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-core/src/types/chain.rs b/ethers-core/src/types/chain.rs index fd23c83b..76bc50f3 100644 --- a/ethers-core/src/types/chain.rs +++ b/ethers-core/src/types/chain.rs @@ -621,7 +621,7 @@ mod tests { fn serde_to_string_match() { for chain in Chain::iter() { let chain_serde = serde_json::to_string(&chain).unwrap(); - let chain_string = format!("\"{}\"", chain.to_string()); + let chain_string = format!("\"{}\"", chain); assert_eq!(chain_serde, chain_string); } }