From 51c6ee3c30ba463f516d6964812cde3f0044145f Mon Sep 17 00:00:00 2001 From: O01eg Date: Sat, 21 Mar 2015 11:26:41 +0300 Subject: [PATCH] Upgrade to rustc 1.0.0-dev (68d694156 2015-03-20) Fixed test for array type of strings. --- src/gz.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gz.rs b/src/gz.rs index 68d6dd3ef..697192143 100644 --- a/src/gz.rs +++ b/src/gz.rs @@ -524,9 +524,9 @@ mod tests { .extra(vec![0, 1, 2, 3]) .read(&r[..], Default); let mut d = DecoderReader::new(e).unwrap(); - assert_eq!(d.header().filename(), Some(b"foo.rs")); - assert_eq!(d.header().comment(), Some(b"bar")); - assert_eq!(d.header().extra(), Some(b"\x00\x01\x02\x03")); + assert_eq!(d.header().filename(), Some(&b"foo.rs"[..])); + assert_eq!(d.header().comment(), Some(&b"bar"[..])); + assert_eq!(d.header().extra(), Some(&b"\x00\x01\x02\x03"[..])); let mut res = Vec::new(); d.read_to_end(&mut res).unwrap(); assert_eq!(res, vec![0, 2, 4, 6]);