diff options
| author | Edward Barnard | 2016-04-03 14:59:17 +0100 |
|---|---|---|
| committer | Edward Barnard | 2016-04-03 15:09:09 +0100 |
| commit | d7e30166bc55f81b8c3391915c201af7dca0ce44 (patch) | |
| tree | f13ea537a4a56aa6f318ff7c116196359f5fa27d /src/binary | |
| parent | 446f4ed641be02c5478ddfcb0b38590254f4a6e4 (diff) | |
| download | rust-plist-d7e30166bc55f81b8c3391915c201af7dca0ce44.tar.bz2 | |
Update dependencies and fix travis
Diffstat (limited to 'src/binary')
| -rw-r--r-- | src/binary/reader.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/binary/reader.rs b/src/binary/reader.rs index 3999d83..ffb0caf 100644 --- a/src/binary/reader.rs +++ b/src/binary/reader.rs @@ -1,19 +1,10 @@ -use byteorder::{BigEndian, Error as ByteorderError, ReadBytesExt}; +use byteorder::{BigEndian, ReadBytesExt}; use chrono::{TimeZone, UTC}; use std::io::{Cursor, Read, Seek, SeekFrom}; use std::string::{FromUtf8Error, FromUtf16Error}; use {Error, Result, PlistEvent, u64_to_usize}; -impl From<ByteorderError> for Error { - fn from(err: ByteorderError) -> Error { - match err { - ByteorderError::UnexpectedEOF => Error::UnexpectedEof, - ByteorderError::Io(err) => Error::Io(err), - } - } -} - impl From<FromUtf8Error> for Error { fn from(_: FromUtf8Error) -> Error { Error::InvalidData |
