diff --git a/complex/src/lib.rs b/complex/src/lib.rs index a4e2887..bb30c8c 100644 --- a/complex/src/lib.rs +++ b/complex/src/lib.rs @@ -748,7 +748,7 @@ impl FromStr for Complex where type Err = ParseComplexError; /// Parses `a +/- bi`; `ai +/- b`; `a`; or `bi` where `a` and `b` are of type `T` - fn from_str(s: &str) -> Result, ParseComplexError> + fn from_str(s: &str) -> Result { let imag = match s.rfind('j') { None => 'i',