You've already forked authentication-service
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user