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);
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()),

View File

@ -218,7 +218,7 @@ impl Service<Request> 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();

View File

@ -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