From 895bb43ead55808d35633e582a9cf7ba9e1d80a1 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 2 Mar 2021 12:53:32 +1000 Subject: [PATCH] Clippy: Fix inconsistent struct member orders lint --- tower-batch/src/service.rs | 4 ++-- zebra-network/src/peer/client.rs | 2 +- zebra-test/src/command.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tower-batch/src/service.rs b/tower-batch/src/service.rs index 65b128a76..bbe1e582c 100644 --- a/tower-batch/src/service.rs +++ b/tower-batch/src/service.rs @@ -85,8 +85,8 @@ where let semaphore = Semaphore::new(bound); Batch { tx, - handle, semaphore, + handle, } } @@ -140,8 +140,8 @@ where match self.tx.send(Message { request, - span, tx, + span, _permit, }) { Err(_) => ResponseFuture::failed(self.get_worker_error()), diff --git a/zebra-network/src/peer/client.rs b/zebra-network/src/peer/client.rs index d3a5640e7..264fa26c6 100644 --- a/zebra-network/src/peer/client.rs +++ b/zebra-network/src/peer/client.rs @@ -218,7 +218,7 @@ impl Service for Client { // request. let span = tracing::Span::current(); - match self.server_tx.try_send(ClientRequest { request, span, tx }) { + match self.server_tx.try_send(ClientRequest { request, tx, span }) { Err(e) => { if e.is_disconnected() { let ClientRequest { tx, .. } = e.into_inner(); diff --git a/zebra-test/src/command.rs b/zebra-test/src/command.rs index 119272f4f..bf5d36259 100644 --- a/zebra-test/src/command.rs +++ b/zebra-test/src/command.rs @@ -51,7 +51,7 @@ impl CommandExt for Command { .wrap_err("failed to execute process") .with_section(command)?; - Ok(TestStatus { status, cmd }) + Ok(TestStatus { cmd, status }) } /// wrapper for `output` fn on `Command` that constructs informative error