refactor(backend): use async fn syntax per clippy lint

This commit is contained in:
2026-05-30 00:44:04 +03:00
parent 882b28c883
commit b561389175

View File

@@ -39,11 +39,10 @@ pub async fn mw_ctx_resolver(
impl<S: Send + Sync> FromRequestParts<S> for Ctx { impl<S: Send + Sync> FromRequestParts<S> for Ctx {
type Rejection = LoftError; type Rejection = LoftError;
fn from_request_parts( async fn from_request_parts(
parts: &mut axum::http::request::Parts, parts: &mut axum::http::request::Parts,
_: &S, _: &S,
) -> impl Future<Output = Result<Self, Self::Rejection>> + Send { ) -> Result<Self, Self::Rejection> {
async move {
parts parts
.extensions .extensions
.get::<Result<Ctx, LoftError>>() .get::<Result<Ctx, LoftError>>()
@@ -51,4 +50,3 @@ impl<S: Send + Sync> FromRequestParts<S> for Ctx {
.clone() .clone()
} }
} }
}