From c8aece8f7bacf0226239bacad223a365b3e019a6 Mon Sep 17 00:00:00 2001 From: Lireer Date: Sun, 30 Jan 2022 15:32:40 +0100 Subject: [PATCH] fix nightly clippy warnings in examples --- examples/extract.rs | 2 +- examples/file_info.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/extract.rs b/examples/extract.rs index b02eb4cd..7b8860ca 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 { diff --git a/examples/file_info.rs b/examples/file_info.rs index 824278df..64969b66 100644 --- a/examples/file_info.rs +++ b/examples/file_info.rs @@ -34,7 +34,7 @@ fn real_main() -> i32 { } } - if (&*file.name()).ends_with('/') { + if (*file.name()).ends_with('/') { println!( "Entry {} is a directory with name \"{}\"", i,