Skip to content

Commit 4501395

Browse files
committed
Upgrade to byteorder 0.5
1 parent 1ea695b commit 4501395

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ path = "tests/test.rs"
2222

2323
[dependencies]
2424
bufstream = "0.1"
25-
byteorder = ">= 0.3, < 0.5"
25+
byteorder = "0.5"
2626
log = "0.3"
2727
phf = "0.7"
2828
hex = "0.1"

src/error/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Error types.
22
3-
use byteorder;
43
use std::error;
54
use std::convert::From;
65
use std::fmt;
@@ -227,12 +226,6 @@ impl From<DbError> for ConnectError {
227226
}
228227
}
229228

230-
impl From<byteorder::Error> for ConnectError {
231-
fn from(err: byteorder::Error) -> ConnectError {
232-
ConnectError::Io(From::from(err))
233-
}
234-
}
235-
236229
/// Represents the position of an error in a query.
237230
#[derive(Clone, PartialEq, Eq, Debug)]
238231
pub enum ErrorPosition {
@@ -299,12 +292,6 @@ impl From<io::Error> for Error {
299292
}
300293
}
301294

302-
impl From<byteorder::Error> for Error {
303-
fn from(err: byteorder::Error) -> Error {
304-
Error::Io(From::from(err))
305-
}
306-
}
307-
308295
impl From<Error> for io::Error {
309296
fn from(err: Error) -> io::Error {
310297
io::Error::new(io::ErrorKind::Other, err)

0 commit comments

Comments
 (0)