We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e3f8a commit 3db3f88Copy full SHA for 3db3f88
tower-http/src/cors/allow_origin.rs
@@ -87,7 +87,7 @@ impl AllowOrigin {
87
pub fn async_predicate<F, Fut>(f: F) -> Self
88
where
89
F: FnOnce(HeaderValue, &RequestParts) -> Fut + Send + Sync + 'static + Clone,
90
- Fut: Future<Output = bool> + Send + Sync + 'static,
+ Fut: Future<Output = bool> + Send + 'static,
91
{
92
Self(OriginInner::AsyncPredicate(Arc::new(move |v, p| {
93
Box::pin((f.clone())(v, p))
0 commit comments