Skip to content

Commit

Permalink
Merge pull request rust-lang#18 from o01eg/patch-1
Browse files Browse the repository at this point in the history
Upgrade to rustc 1.0.0-dev (68d694156 2015-03-20)
  • Loading branch information
alexcrichton committed Mar 21, 2015
2 parents f336c68 + 51c6ee3 commit 3fdbfac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 3fdbfac

Please sign in to comment.