Skip to content

Commit 3db3f88

Browse files
committed
remove unnecessary sync constraint from async_predicate
1 parent a1e3f8a commit 3db3f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tower-http/src/cors/allow_origin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl AllowOrigin {
8787
pub fn async_predicate<F, Fut>(f: F) -> Self
8888
where
8989
F: FnOnce(HeaderValue, &RequestParts) -> Fut + Send + Sync + 'static + Clone,
90-
Fut: Future<Output = bool> + Send + Sync + 'static,
90+
Fut: Future<Output = bool> + Send + 'static,
9191
{
9292
Self(OriginInner::AsyncPredicate(Arc::new(move |v, p| {
9393
Box::pin((f.clone())(v, p))

0 commit comments

Comments
 (0)