diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-10-03 10:26:05 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-10-03 10:26:05 +0200 |
commit | e668b6818c61f8f9f51821d6cda79a160d1fce75 (patch) | |
tree | 12d2c298db1c1ae368334f629fb9355c29fe4abb /src/failable/ops/or.rs | |
parent | bdc2c062c2632fd6e0f9be4113b239f1cf84f0b9 (diff) |
Lessen restriction for Result second type param
Before we had the restriction that the Err(_) part of the Result must be
an Error, but as Result itself does not have such a bound, we remove
ours as well.
Diffstat (limited to 'src/failable/ops/or.rs')
-rw-r--r-- | src/failable/ops/or.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/failable/ops/or.rs b/src/failable/ops/or.rs index 2a35aee..311e5dd 100644 --- a/src/failable/ops/or.rs +++ b/src/failable/ops/or.rs @@ -10,7 +10,6 @@ //! shouldn't be necessary. //! -use std::error::Error; use failable::filter::FailableFilter; #[must_use = "filters are lazy and do nothing unless consumed"] @@ -26,8 +25,7 @@ impl<T, U> FailableOr<T, U> { } impl<N, E, T, U> FailableFilter<N, E> for FailableOr<T, U> - where E: Error, - T: FailableFilter<N, E>, + where T: FailableFilter<N, E>, U: FailableFilter<N, E> { fn filter(&self, e: &N) -> Result<bool, E> { |