1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Bump axum to 0.6.0

This commit is contained in:
Quentin Gliech
2022-11-29 09:19:06 +01:00
parent b8489936ba
commit dfcca89d30
7 changed files with 33 additions and 28 deletions

View File

@@ -19,10 +19,7 @@ use std::{
};
use anyhow::Context;
use axum::{
body::HttpBody, error_handling::HandleErrorLayer, extract::FromRef, Extension, Router,
RouterService,
};
use axum::{body::HttpBody, error_handling::HandleErrorLayer, extract::FromRef, Extension, Router};
use hyper::StatusCode;
use listenfd::ListenFd;
use mas_config::{HttpBindConfig, HttpResource, HttpTlsConfig, UnixOrTcp};
@@ -36,7 +33,7 @@ use tower::Layer;
use tower_http::services::ServeDir;
#[allow(clippy::trait_duplication_in_bounds)]
pub fn build_router<B>(state: AppState, resources: &[HttpResource]) -> RouterService<B>
pub fn build_router<B>(state: AppState, resources: &[HttpResource]) -> Router<(), B>
where
B: HttpBody + Send + 'static,
<B as HttpBody>::Data: Into<axum::body::Bytes> + Send,