diff --git a/src/cmd/new.rs b/src/cmd/new.rs index a2fbae4b3fecaad8990a06beb46a988f53b42c62..7b323504a69e86ddaf065f226d547443c2f6f219 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() {