Skip to content

Commit

Permalink
Fix clippy::needless-borrow (use-ink#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi authored Feb 14, 2022
1 parent 38b3ac7 commit d7f80f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d7f80f2

Please sign in to comment.