Skip to content

Commit

Permalink
Merge pull request #64 from tailhook/fix_examples
Browse files Browse the repository at this point in the history
Fix `entry.header().path()` to `entry.path()` in examples
  • Loading branch information
alexcrichton committed May 4, 2016
2 parents 4b0b804 + 40efd16 commit 5490f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/extract_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {
let mut arch = Archive::new(stdin());
for file in arch.entries().unwrap() {
let mut f = file.unwrap();
if f.header().path().unwrap() == filename {
if f.path().unwrap() == filename {
copy(&mut f, &mut stdout()).unwrap();
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ fn main() {
let mut arch = Archive::new(stdin());
for file in arch.entries().unwrap() {
let f= file.unwrap();
println!("{}", f.header().path().unwrap().display());
println!("{}", f.path().unwrap().display());
}
}

0 comments on commit 5490f30

Please sign in to comment.