From 5e6286a49332a3520dad2aba4a7cad696dacad04 Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Mon, 21 Jun 2021 11:54:56 +0200 Subject: [PATCH] Fix clippy warnings on `1.53` Fix `clippy::inconsistent_struct_constructor`: the constructor field order was inconsistent with the struct declaration. --- src/blockchain/compact_filters/peer.rs | 4 ++-- src/wallet/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blockchain/compact_filters/peer.rs b/src/blockchain/compact_filters/peer.rs index 8ef33229..683e25db 100644 --- a/src/blockchain/compact_filters/peer.rs +++ b/src/blockchain/compact_filters/peer.rs @@ -227,12 +227,12 @@ impl Peer { Ok(Peer { writer, - reader_thread, responses, + reader_thread, connected, mempool, - network, version, + network, }) } diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index 6127b5fd..499c9a1b 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -277,7 +277,7 @@ where self.descriptor .as_derived(index, &self.secp) .address(self.network) - .map(|address| AddressInfo { address, index }) + .map(|address| AddressInfo { index, address }) .map_err(|_| Error::ScriptDoesntHaveAddressForm) } @@ -289,7 +289,7 @@ where self.descriptor .as_derived(index, &self.secp) .address(self.network) - .map(|address| AddressInfo { address, index }) + .map(|address| AddressInfo { index, address }) .map_err(|_| Error::ScriptDoesntHaveAddressForm) }