From 2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 27 May 2025 18:40:53 +0200 Subject: clippy --- src/modules/auth/cookie.rs | 2 +- src/modules/auth/openid.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/auth') diff --git a/src/modules/auth/cookie.rs b/src/modules/auth/cookie.rs index 4c4d96d..c0935f7 100644 --- a/src/modules/auth/cookie.rs +++ b/src/modules/auth/cookie.rs @@ -199,7 +199,7 @@ fn apply_login_success_headers( ); r.headers_mut().append( SET_COOKIE, - HeaderValue::from_str(&format!("gnix_auth={}{}", auth, cookie_opts)).unwrap(), + HeaderValue::from_str(&format!("gnix_auth={auth}{cookie_opts}")).unwrap(), ); } diff --git a/src/modules/auth/openid.rs b/src/modules/auth/openid.rs index bad9c0c..9ea268c 100644 --- a/src/modules/auth/openid.rs +++ b/src/modules/auth/openid.rs @@ -200,7 +200,7 @@ impl Node for OpenIDAuth { ); resp.headers_mut().insert( LOCATION, - HeaderValue::from_str(&return_path).map_err(|_| ServiceError::InvalidHeader)?, + HeaderValue::from_str(return_path).map_err(|_| ServiceError::InvalidHeader)?, ); Ok(resp) } else if request.method() == Method::GET && request.uri().path() == "/favicon.ico" { @@ -318,7 +318,7 @@ async fn token_request( .map_err(|_| ServiceError::CustomStatic("token request handshake failed"))?; tokio::task::spawn(async move { if let Err(err) = conn.await { - println!("Connection failed: {:?}", err); + println!("Connection failed: {err:?}"); } }); -- cgit v1.2.3-70-g09d2