fix lints
All checks were successful
Backend Actions / build (push) Successful in 34s
Backend Actions / check (push) Successful in 1m15s
Backend Actions / test (push) Successful in 2m30s

This commit is contained in:
2025-07-22 00:34:23 +01:00
parent 5fe2d7ba79
commit d700822dc8
4 changed files with 8 additions and 4 deletions

View File

@ -49,7 +49,7 @@ fn admin(tx: mpsc::Sender<bool>) -> Router {
if let Ok(secret) = std::env::var("ADMIN_SECRET") {
println!("ADMIN_SECRET: {secret}");
match req.headers().get("Authorization") {
Some(key) if secret == key.to_owned() => (),
Some(key) if secret == *key => (),
_ => {
return Response::builder()
.status(StatusCode::UNAUTHORIZED)