From aa8109a791c74ed32d6325cd5320a6c5fcaea41e Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 20 Jul 2022 13:01:34 +1000 Subject: [PATCH] Use struct field short form Clippy emits two warnings of form: warning: redundant field names in struct initialization Remove the redundant field names and use struct short initialization form. --- src/util/psbt/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/psbt/mod.rs b/src/util/psbt/mod.rs index aa03f8ee..a2049145 100644 --- a/src/util/psbt/mod.rs +++ b/src/util/psbt/mod.rs @@ -579,8 +579,8 @@ mod tests { }], outputs: vec![Output { bip32_derivation: keypaths, - proprietary: proprietary, - unknown: unknown, + proprietary, + unknown, ..Default::default() }], };