| 6 | |
| 7 | #[derive(Debug)] |
| 8 | enum DoubleError { |
| 9 | EmptyVec, |
| 10 | // We will defer to the parse error implementation for their error. |
| 11 | // Supplying extra info requires adding more data to the type. |
| 12 | Parse(ParseIntError), |
| 13 | } |
| 14 | |
| 15 | impl fmt::Display for DoubleError { |
| 16 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected