update byteorder to 1.1 from 0.3
This commit is contained in:
parent
cdff7f15c3
commit
8f7bd858fb
|
@ -22,7 +22,7 @@ path = "src/lib.rs"
|
||||||
broken_consensus_code = []
|
broken_consensus_code = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
byteorder = "0.3"
|
byteorder = "1.1"
|
||||||
num = "0.1"
|
num = "0.1"
|
||||||
rand = "0.3"
|
rand = "0.3"
|
||||||
rust-crypto = "0.2"
|
rust-crypto = "0.2"
|
||||||
|
|
|
@ -27,7 +27,6 @@ pub mod misc;
|
||||||
pub mod patricia_tree;
|
pub mod patricia_tree;
|
||||||
pub mod uint;
|
pub mod uint;
|
||||||
|
|
||||||
use byteorder;
|
|
||||||
use std::{error, fmt, io};
|
use std::{error, fmt, io};
|
||||||
|
|
||||||
/// A trait which allows numbers to act as fixed-size bit arrays
|
/// A trait which allows numbers to act as fixed-size bit arrays
|
||||||
|
@ -50,8 +49,8 @@ pub trait BitArray {
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// An I/O error
|
/// An I/O error
|
||||||
Io(io::Error),
|
Io(io::Error),
|
||||||
/// Order from the `byteorder` crate
|
/// Error from the `byteorder` crate
|
||||||
ByteOrder(byteorder::Error),
|
ByteOrder(io::Error),
|
||||||
/// Network magic was not what we expected
|
/// Network magic was not what we expected
|
||||||
BadNetworkMagic(u32, u32),
|
BadNetworkMagic(u32, u32),
|
||||||
/// Network message was unrecognized
|
/// Network message was unrecognized
|
||||||
|
|
Loading…
Reference in New Issue