diff --git a/complex/src/lib.rs b/complex/src/lib.rs index 62ff99a..a4e2887 100644 --- a/complex/src/lib.rs +++ b/complex/src/lib.rs @@ -743,7 +743,7 @@ impl fmt::Binary for Complex where } impl FromStr for Complex where - T: FromStr + Num + PartialOrd + Clone, T::Err: Error + T: FromStr + Num + Clone { type Err = ParseComplexError; @@ -861,15 +861,13 @@ impl serde::Deserialize for Complex where } #[derive(Debug, PartialEq)] -pub struct ParseComplexError where - E: Error +pub struct ParseComplexError { kind: ComplexErrorKind, } #[derive(Debug, PartialEq)] -enum ComplexErrorKind where - E: Error +enum ComplexErrorKind { ParseError(E), ExprError