(err: byteorder::Error)
| 35 | |
| 36 | impl From<byteorder::Error> for WriteError { |
| 37 | fn from(err: byteorder::Error) -> WriteError { |
| 38 | match err { |
| 39 | byteorder::Error::UnexpectedEOF => { |
| 40 | WriteError(io::Error::new(io::ErrorKind::Other, "unexpected EOF")) |
| 41 | }, |
| 42 | byteorder::Error::Io(err) => WriteError(err), |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// Represents an error that can occur when attempting to write marker into the write. |
nothing calls this directly
no test coverage detected