From 242c6406035c44967d7e127dd8cbd728b67289c6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Jun 2022 14:26:23 +1000 Subject: [PATCH] Remove redundant field names Clippy emits: warning: redundant field names in struct initialization As suggested, remove redundant field names in struct initialization. --- src/util/address.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/address.rs b/src/util/address.rs index cfb1ff7e..0d9b4f1e 100644 --- a/src/util/address.rs +++ b/src/util/address.rs @@ -1086,7 +1086,7 @@ mod tests { let addr = Address { payload: Payload::WitnessProgram { version: WitnessVersion::V13, - program: program, + program, }, network: Network::Bitcoin, };