(&self, f: &mut fmt::Formatter)
| 51 | |
| 52 | impl fmt::Display for Error { |
| 53 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 54 | match *self { |
| 55 | Error::Parse(ref x) => x.fmt(f), |
| 56 | Error::Translate(ref x) => x.fmt(f), |
| 57 | _ => unreachable!(), |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /// A helper type for formatting nice error messages. |
nothing calls this directly
no test coverage detected