From ce5e0301cfb7b68d0f991e0b77b6cd450ed25137 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Mon, 14 Feb 2022 07:55:22 +0100 Subject: [PATCH] Fix `clippy::needless-borrow` --- src/cmd/new.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/new.rs b/src/cmd/new.rs index a2fbae4b..7b323504 100644 --- a/src/cmd/new.rs +++ b/src/cmd/new.rs @@ -68,7 +68,7 @@ where let outpath = out_dir.join(file.name()); - if (&*file.name()).ends_with('/') { + if (*file.name()).ends_with('/') { fs::create_dir_all(&outpath)?; } else { if let Some(p) = outpath.parent() { -- GitLab