mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-24 01:38:29 +02:00
updated dependencies application wide
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use axum::{
|
||||
async_trait,
|
||||
extract::{FromRequestParts, Request},
|
||||
http::request::Parts,
|
||||
middleware::Next,
|
||||
@@ -15,7 +14,6 @@ use super::response_middleware::TemplateResponse;
|
||||
pub struct RequireUser(pub User);
|
||||
|
||||
// Implement FromRequestParts for RequireUser
|
||||
#[async_trait]
|
||||
impl<S> FromRequestParts<S> for RequireUser
|
||||
where
|
||||
S: Send + Sync,
|
||||
|
||||
@@ -101,8 +101,8 @@ impl IntoResponse for TemplateResponse {
|
||||
pub async fn with_template_response<S>(
|
||||
State(state): State<S>,
|
||||
HxRequest(is_htmx): HxRequest,
|
||||
response: Response,
|
||||
) -> Response
|
||||
response: Response<axum::body::Body>,
|
||||
) -> Response<axum::body::Body>
|
||||
where
|
||||
S: ProvidesTemplateEngine + Clone + Send + Sync + 'static,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user