1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Remove unnecessary boxing of warp filters

This was needed because of a compiler regression. Now that we're using
Rust 1.58 there is no benefit to boxing them
This commit is contained in:
Quentin Gliech
2022-01-18 12:07:29 +01:00
parent 1b35f96f29
commit 0c2950a160
3 changed files with 14 additions and 18 deletions

View File

@@ -53,18 +53,13 @@ pub fn filter(
let filter = discovery
.or(keys)
.unify()
.boxed()
.or(userinfo)
.unify()
.boxed()
.or(token)
.unify()
.boxed()
.or(introspection)
.unify()
.boxed()
.with(cors().allow_methods([Method::POST, Method::GET]))
.boxed();
.with(cors().allow_methods([Method::POST, Method::GET]));
filter.or(authorization).boxed()
}