Skip to content

Commit 087efae

Browse files
committed
appease clippy
1 parent 4890b51 commit 087efae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/util/server/src/npm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn append_dir_all<W: std::io::Write>(
202202
let mut stack = vec![(src_path.to_path_buf(), true, false)];
203203
let mut entries = Vec::new();
204204
while let Some((src, is_dir, is_symlink)) = stack.pop() {
205-
let dest = path.join(src.strip_prefix(&src_path).unwrap());
205+
let dest = path.join(src.strip_prefix(src_path).unwrap());
206206
// In case of a symlink pointing to a directory, is_dir is false, but src.is_dir() will return true
207207
if is_dir || (is_symlink && follow && src.is_dir()) {
208208
for entry in fs::read_dir(&src)? {

0 commit comments

Comments
 (0)