Fixing warnings

This commit is contained in:
Tomasz Drwięga
2016-04-21 15:56:35 +02:00
parent 3c665f7640
commit c47d08e308
9 changed files with 21 additions and 12 deletions

View File

@@ -495,6 +495,8 @@ fn populate_big_types() {
#[test]
fn raw_bytes_from_tuple() {
type Tup = (Vec<u16>, u16);
let tup = (vec![1u16, 1u16, 1u16, 1u16], 10u16);
let bytes = vec![
// map
@@ -507,8 +509,6 @@ fn raw_bytes_from_tuple() {
// 10u16
10u8, 0u8];
type Tup = (Vec<u16>, u16);
let tup_from = Tup::from_bytes(&bytes).unwrap();
assert_eq!(tup, tup_from);