Skip to content

Commit 0f2ce08

Browse files
committed
Merge branch 'dep-update'
2 parents eb6520c + 8b10383 commit 0f2ce08

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ keywords = ["protocol", "tcp", "udp", "connection", "encoding"]
1414
default = []
1515

1616
[dependencies]
17-
byteorder = "0.5"
17+
byteorder = "1.0"
1818
flate2 = { version = "0.2", features = ["zlib"], default-features = false }
19-
uuid = { version = "0.3", optional = true }
19+
uuid = { version = "0.5", optional = true }
2020

2121
[dev-dependencies]
2222
stainless = "0.1"

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#![feature(question_mark)]
21
#![feature(try_from)]
3-
#![feature(plugin)]
42

3+
#![cfg_attr(test, feature(plugin))]
54
#![cfg_attr(test, plugin(stainless))]
65

76
//! Simple packet-based protocol definitions in Rust.

src/primitives/numerics.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ use std::num::TryFromIntError;
66

77
use byteorder::{ReadBytesExt, WriteBytesExt};
88

9-
pub trait Integer : Parcel + TryFrom<u8, Err=TryFromIntError> + TryFrom<i8, Err=TryFromIntError> +
10-
TryFrom<u16, Err=TryFromIntError> + TryFrom<i16, Err=TryFromIntError> +
11-
TryFrom<u32, Err=TryFromIntError> + TryFrom<i32, Err=TryFromIntError> +
12-
TryFrom<u64, Err=TryFromIntError> + TryFrom<i64, Err=TryFromIntError> +
13-
TryFrom<usize, Err=TryFromIntError> + TryFrom<isize, Err=TryFromIntError> +
14-
TryInto<u8, Err=TryFromIntError> + TryInto<i8, Err=TryFromIntError> +
15-
TryInto<u16, Err=TryFromIntError> + TryInto<i16, Err=TryFromIntError> +
16-
TryInto<u32, Err=TryFromIntError> + TryInto<i32, Err=TryFromIntError> +
17-
TryInto<u64, Err=TryFromIntError> + TryInto<i64, Err=TryFromIntError> +
18-
TryInto<usize, Err=TryFromIntError> + TryInto<isize, Err=TryFromIntError>
9+
pub trait Integer : Parcel + TryFrom<u8, Error=TryFromIntError> + TryFrom<i8, Error=TryFromIntError> +
10+
TryFrom<u16, Error=TryFromIntError> + TryFrom<i16, Error=TryFromIntError> +
11+
TryFrom<u32, Error=TryFromIntError> + TryFrom<i32, Error=TryFromIntError> +
12+
TryFrom<u64, Error=TryFromIntError> + TryFrom<i64, Error=TryFromIntError> +
13+
TryFrom<usize, Error=TryFromIntError> + TryFrom<isize, Error=TryFromIntError> +
14+
TryInto<u8, Error=TryFromIntError> + TryInto<i8, Error=TryFromIntError> +
15+
TryInto<u16, Error=TryFromIntError> + TryInto<i16, Error=TryFromIntError> +
16+
TryInto<u32, Error=TryFromIntError> + TryInto<i32, Error=TryFromIntError> +
17+
TryInto<u64, Error=TryFromIntError> + TryInto<i64, Error=TryFromIntError> +
18+
TryInto<usize, Error=TryFromIntError> + TryInto<isize, Error=TryFromIntError>
1919
{
2020

2121
}

src/wire/middleware/pipeline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use std;
55
/// A middleware pipeline.
66
pub trait Pipeline : std::fmt::Debug
77
{
8-
fn encode_data(&mut self, mut data: Vec<u8>) -> Result<Vec<u8>, Error>;
9-
fn decode_data(&mut self, mut data: Vec<u8>) -> Result<Vec<u8>, Error>;
8+
fn encode_data(&mut self, data: Vec<u8>) -> Result<Vec<u8>, Error>;
9+
fn decode_data(&mut self, data: Vec<u8>) -> Result<Vec<u8>, Error>;
1010
}
1111

1212
/// Creates an instance of the default middleware.

0 commit comments

Comments
 (0)