diff options
Diffstat (limited to 'vendor/zip/examples/file_info.rs')
-rw-r--r-- | vendor/zip/examples/file_info.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/zip/examples/file_info.rs b/vendor/zip/examples/file_info.rs index 64969b66c..6a2adc58e 100644 --- a/vendor/zip/examples/file_info.rs +++ b/vendor/zip/examples/file_info.rs @@ -12,7 +12,7 @@ fn real_main() -> i32 { return 1; } let fname = std::path::Path::new(&*args[1]); - let file = fs::File::open(&fname).unwrap(); + let file = fs::File::open(fname).unwrap(); let reader = BufReader::new(file); let mut archive = zip::ZipArchive::new(reader).unwrap(); @@ -30,7 +30,7 @@ fn real_main() -> i32 { { let comment = file.comment(); if !comment.is_empty() { - println!("Entry {} comment: {}", i, comment); + println!("Entry {i} comment: {comment}"); } } |