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 Feb 20, 2015
1 parent 9e8b4b4 commit 6430b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ impl Builder {

/// Configure the `filename` field in the gzip header.
pub fn filename(mut self, filename: &[u8]) -> Builder {
self.filename = Some(CString::from_slice(filename));
self.filename = Some(CString::new(filename).unwrap());
self
}

/// Configure the `comment` field in the gzip header.
pub fn comment(mut self, comment: &[u8]) -> Builder {
self.comment = Some(CString::from_slice(comment));
self.comment = Some(CString::new(comment).unwrap());
self
}

Expand Down

0 comments on commit 6430b38

Please sign in to comment.