Clippy: Fix inconsistent struct member orders lint

This commit is contained in:
teor 2021-03-02 12:53:32 +10:00 committed by Deirdre Connolly
parent f2bdebee07
commit 895bb43ead
3 changed files with 4 additions and 4 deletions

View File

@ -85,8 +85,8 @@ where
let semaphore = Semaphore::new(bound); let semaphore = Semaphore::new(bound);
Batch { Batch {
tx, tx,
handle,
semaphore, semaphore,
handle,
} }
} }
@ -140,8 +140,8 @@ where
match self.tx.send(Message { match self.tx.send(Message {
request, request,
span,
tx, tx,
span,
_permit, _permit,
}) { }) {
Err(_) => ResponseFuture::failed(self.get_worker_error()), Err(_) => ResponseFuture::failed(self.get_worker_error()),

View File

@ -218,7 +218,7 @@ impl Service<Request> for Client {
// request. // request.
let span = tracing::Span::current(); 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) => { Err(e) => {
if e.is_disconnected() { if e.is_disconnected() {
let ClientRequest { tx, .. } = e.into_inner(); let ClientRequest { tx, .. } = e.into_inner();

View File

@ -51,7 +51,7 @@ impl CommandExt for Command {
.wrap_err("failed to execute process") .wrap_err("failed to execute process")
.with_section(command)?; .with_section(command)?;
Ok(TestStatus { status, cmd }) Ok(TestStatus { cmd, status })
} }
/// wrapper for `output` fn on `Command` that constructs informative error /// wrapper for `output` fn on `Command` that constructs informative error