Skip to content

Commit e25c9f2

Browse files
authored
Apply rustfmt (#157)
1 parent 168bfa6 commit e25c9f2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
with:
3232
toolchain: stable
3333
- run: rustup component add clippy
34+
- run: cargo fmt --check
3435
- uses: actions-rs/clippy-check@v1
3536
with:
3637
token: ${{ secrets.GITHUB_TOKEN }}

src/request/builder.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ impl<B> RequestBuilder<B> {
135135
};
136136
self.header(
137137
http::header::AUTHORIZATION,
138-
format!("Basic {}", base64::engine::general_purpose::STANDARD.encode(auth.as_bytes())),
138+
format!(
139+
"Basic {}",
140+
base64::engine::general_purpose::STANDARD.encode(auth.as_bytes())
141+
),
139142
)
140143
}
141144

tests/tools/tls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::io::{self, BufReader, Cursor, Read};
77
use std::path::PathBuf;
88
use std::pin::Pin;
99
use std::sync::Arc;
10-
use std::task::{Context, Poll, ready};
10+
use std::task::{ready, Context, Poll};
1111

1212
use hyper::server::accept::Accept;
1313
use hyper::server::conn::{AddrIncoming, AddrStream};

0 commit comments

Comments
 (0)