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

@@ -55,14 +55,7 @@ pub fn root(
);
let static_files = static_files(config.http.web_root.clone());
let filter = health
.or(views)
.unify()
.or(static_files)
.unify()
.boxed()
.or(oauth2)
.boxed();
let filter = health.or(views).unify().or(static_files).unify().or(oauth2);
filter.with(warp::log(module_path!())).boxed()
}