From 8f7bd858fb791ccd3c23a28c22dc95b1310b49e3 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Mon, 17 Jul 2017 15:57:35 +0000 Subject: [PATCH] update byteorder to 1.1 from 0.3 --- Cargo.toml | 2 +- src/util/mod.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3f0696d9..ef1a7cad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ path = "src/lib.rs" broken_consensus_code = [] [dependencies] -byteorder = "0.3" +byteorder = "1.1" num = "0.1" rand = "0.3" rust-crypto = "0.2" diff --git a/src/util/mod.rs b/src/util/mod.rs index ae29601a..45cc5668 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -27,7 +27,6 @@ pub mod misc; pub mod patricia_tree; pub mod uint; -use byteorder; use std::{error, fmt, io}; /// A trait which allows numbers to act as fixed-size bit arrays @@ -50,8 +49,8 @@ pub trait BitArray { pub enum Error { /// An I/O error Io(io::Error), - /// Order from the `byteorder` crate - ByteOrder(byteorder::Error), + /// Error from the `byteorder` crate + ByteOrder(io::Error), /// Network magic was not what we expected BadNetworkMagic(u32, u32), /// Network message was unrecognized