diff --git a/Cargo.toml b/Cargo.toml index 71b089e..99e0ac4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chainerror" -version = "0.4.1" +version = "0.4.2" authors = ["Harald Hoyer "] edition = "2018" license = "MIT/Apache-2.0" diff --git a/src/lib.rs b/src/lib.rs index faa60d5..3a51d1e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -266,7 +266,7 @@ impl ChainError { ~~~ **/ pub fn find_cause(&self) -> Option<&U> { - self.iter().filter_map(Error::downcast_ref::()).next() + self.iter().filter_map(Error::downcast_ref::).next() } /** find the first error cause of type ChainError, if any exists @@ -286,7 +286,7 @@ impl ChainError { **/ pub fn find_chain_cause(&self) -> Option<&ChainError> { self.iter() - .filter_map(Error::downcast_ref::>()) + .filter_map(Error::downcast_ref::>) .next() }