chore: Update/upgrade dependencies

There was a potential vulnerability in tracing-subscriber, so I took
this as an opportunity to update/upgrade all dependencies
This commit is contained in:
2025-09-04 01:43:40 +02:00
parent f3b1854beb
commit 77d7881a57
6 changed files with 112 additions and 205 deletions

View File

@@ -97,9 +97,18 @@ async fn app() -> anyhow::Result<()> {
.collect();
// Level 1 of the stack gives us the location that called this function
let stack = lua.inspect_stack(1).unwrap();
let file = stack.source().short_src.unwrap_or("?".into());
let line = stack.curr_line();
let (file, line) = lua
.inspect_stack(1, |debug| {
(
debug
.source()
.short_src
.unwrap_or("???".into())
.into_owned(),
debug.current_line().unwrap_or(0),
)
})
.unwrap();
// The target is overridden to make it possible to filter for logs originating from the
// config

View File

@@ -1,6 +1,5 @@
use std::result;
use axum::async_trait;
use axum::extract::{FromRef, FromRequestParts};
use axum::http::StatusCode;
use axum::http::request::Parts;
@@ -79,7 +78,6 @@ pub struct User {
pub preferred_username: String,
}
#[async_trait]
impl<S> FromRequestParts<S> for User
where
String: FromRef<S>,
@@ -116,7 +114,7 @@ where
.await
.map_err(|err| ApiError::new(StatusCode::INTERNAL_SERVER_ERROR, err.into()))?;
return Ok(user);
Ok(user)
} else {
let err: ApiErrorJson = res
.json()