Skip to content

Commit

Permalink
Apply rustfmt (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jan 21, 2024
1 parent 168bfa6 commit e25c9f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
with:
toolchain: stable
- run: rustup component add clippy
- run: cargo fmt --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 4 additions & 1 deletion src/request/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ impl<B> RequestBuilder<B> {
};
self.header(
http::header::AUTHORIZATION,
format!("Basic {}", base64::engine::general_purpose::STANDARD.encode(auth.as_bytes())),
format!(
"Basic {}",
base64::engine::general_purpose::STANDARD.encode(auth.as_bytes())
),
)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/tools/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::io::{self, BufReader, Cursor, Read};
use std::path::PathBuf;
use std::pin::Pin;
use std::sync::Arc;
use std::task::{Context, Poll, ready};
use std::task::{ready, Context, Poll};

use hyper::server::accept::Accept;
use hyper::server::conn::{AddrIncoming, AddrStream};
Expand Down

0 comments on commit e25c9f2

Please sign in to comment.