aboutsummaryrefslogtreecommitdiffstats
path: root/src/binary
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary')
-rw-r--r--src/binary/reader.rs11
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