mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-31 04:08:30 +00:00
elminate generic argument in ruma_wrapper::auth
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0e3d192ad2
commit
73718a1208
2 changed files with 4 additions and 7 deletions
|
@ -45,8 +45,9 @@ where
|
|||
type Rejection = Error;
|
||||
|
||||
async fn from_request(request: hyper::Request<axum::body::Body>, _state: &S) -> Result<Self, Self::Rejection> {
|
||||
let meta = T::METADATA;
|
||||
let mut request: Request = extract(request).await?;
|
||||
let auth: Auth = auth::auth::<T>(&mut request).await?;
|
||||
let auth: Auth = auth::auth(&mut request, &meta).await?;
|
||||
let body = make_body::<T>(&mut request, &auth)?;
|
||||
Ok(Ruma {
|
||||
body,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue