aboutsummaryrefslogtreecommitdiff
path: root/src/modules/auth/openid.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-05-27 18:40:53 +0200
committermetamuffin <metamuffin@disroot.org>2025-05-27 18:40:53 +0200
commit2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0 (patch)
tree557d8990914a7bc7c8bf59dc68185d44e54d262d /src/modules/auth/openid.rs
parent520f93f4fb6959d602b9e45d6bb47a06dcf60219 (diff)
downloadgnix-2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0.tar
gnix-2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0.tar.bz2
gnix-2eed0cc2a319bfab52b88abc39f2a4f237e4d0e0.tar.zst
clippy
Diffstat (limited to 'src/modules/auth/openid.rs')
-rw-r--r--src/modules/auth/openid.rs4
1 files changed, 2 insertions, 2 deletions
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:?}");
}
});