From 7896649757f2d83028f1cda39416bd6ac08521d2 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sun, 21 Jan 2024 23:35:47 +0900 Subject: [PATCH 1/2] Apply rustfmt --- src/request/builder.rs | 5 ++++- tests/tools/tls.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/request/builder.rs b/src/request/builder.rs index 055ce05..9047a57 100644 --- a/src/request/builder.rs +++ b/src/request/builder.rs @@ -135,7 +135,10 @@ impl RequestBuilder { }; 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()) + ), ) } diff --git a/tests/tools/tls.rs b/tests/tools/tls.rs index 7486682..2ba58a6 100644 --- a/tests/tools/tls.rs +++ b/tests/tools/tls.rs @@ -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}; From ab2cde1b6aa08fe88844ff6071a3b74a2c636a44 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sun, 21 Jan 2024 23:36:29 +0900 Subject: [PATCH 2/2] Add ci to check style with rustfmt --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73ba06f..468de89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}