diff options
Diffstat (limited to 'src/filter.rs')
-rw-r--r-- | src/filter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.rs b/src/filter.rs index 33d1511..5c33160 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -297,7 +297,7 @@ pub trait Filter<N> { /// assert_eq!(a.filter(&7), Ok(true)); /// assert_eq!(a.filter(&9), Ok(true)); /// ``` - fn into_failable(self) -> IntoFailable<Self, ()> + fn into_failable(self) -> IntoFailable<Self> where Self: Sized { IntoFailable::new(self) @@ -316,7 +316,7 @@ pub trait Filter<N> { /// assert_eq!(b.filter(&3), Ok(false)); /// assert_eq!(a.filter(&7), true); /// assert_eq!(b.filter(&7), Ok(true)); - fn as_failable<'a>(&'a self) -> AsFailable<'a, Self, ()> + fn as_failable<'a>(&'a self) -> AsFailable<'a, Self> where Self: 'a { AsFailable::new(self) |