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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user