Skip to content

Commit

Permalink
Update to rust master
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 31, 2014
1 parent d497f69 commit 67be375
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/gz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,20 @@ impl Builder {
}
None => {}
}
*header.get_mut(0) = 0x1f;
*header.get_mut(1) = 0x8b;
*header.get_mut(2) = 8;
*header.get_mut(3) = flg;
*header.get_mut(4) = (mtime >> 0) as u8;
*header.get_mut(5) = (mtime >> 8) as u8;
*header.get_mut(6) = (mtime >> 16) as u8;
*header.get_mut(7) = (mtime >> 24) as u8;
*header.get_mut(8) = match lvl {
header[0] = 0x1f;
header[1] = 0x8b;
header[2] = 8;
header[3] = flg;
header[4] = (mtime >> 0) as u8;
header[5] = (mtime >> 8) as u8;
header[6] = (mtime >> 16) as u8;
header[7] = (mtime >> 24) as u8;
header[8] = match lvl {
BestCompression => 2,
BestSpeed => 4,
_ => 0,
};
*header.get_mut(9) = match os::consts::SYSNAME {
header[9] = match os::consts::SYSNAME {
"linux" => 3,
"macos" => 7,
"win32" => 0,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//! These provide convenience methods for creating a decoder/encoder out of an
//! already existing stream to chain construction.
#![deny(missing_doc)]
#![deny(missing_docs)]
#![feature(unsafe_destructor)]

extern crate libc;
Expand Down

0 comments on commit 67be375

Please sign in to comment.