aboutsummaryrefslogtreecommitdiff
path: root/examples/extract.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/extract.rs')
-rw-r--r--examples/extract.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/extract.rs b/examples/extract.rs
index 05c5a4a..7b8860c 100644
--- a/examples/extract.rs
+++ b/examples/extract.rs
@@ -30,7 +30,7 @@ fn real_main() -> i32 {
}
}
- if (&*file.name()).ends_with('/') {
+ if (*file.name()).ends_with('/') {
println!("File {} extracted to \"{}\"", i, outpath.display());
fs::create_dir_all(&outpath).unwrap();
} else {
@@ -59,5 +59,6 @@ fn real_main() -> i32 {
}
}
}
- return 0;
+
+ 0
}