(&self, f: &mut fmt::Formatter)
| 14 | |
| 15 | impl fmt::Display for DoubleError { |
| 16 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 17 | match *self { |
| 18 | DoubleError::EmptyVec => |
| 19 | write!(f, "please use a vector with at least one element"), |
| 20 | // This is a wrapper, so defer to the underlying types' implementation of `fmt`. |
| 21 | DoubleError::Parse(ref e) => e.fmt(f), |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | impl error::Error for DoubleError { |
nothing calls this directly
no outgoing calls
no test coverage detected