diff --git a/src/boxed.rs b/src/boxed.rs index 2bcbefe..55caac3 100644 --- a/src/boxed.rs +++ b/src/boxed.rs @@ -25,9 +25,9 @@ where { /// Creates a new `BoxPredicate`, a wrapper around a dynamically-dispatched /// `Predicate` type with useful trait impls. - pub fn new>(inner: P) -> BoxPredicate + pub fn new

(inner: P) -> BoxPredicate where - P: Send + Sync + 'static, + P: Predicate + Send + Sync + 'static, { BoxPredicate(Box::new(inner)) }