We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4890b51 commit 087efaeCopy full SHA for 087efae
tests/util/server/src/npm.rs
@@ -202,7 +202,7 @@ fn append_dir_all<W: std::io::Write>(
202
let mut stack = vec![(src_path.to_path_buf(), true, false)];
203
let mut entries = Vec::new();
204
while let Some((src, is_dir, is_symlink)) = stack.pop() {
205
- let dest = path.join(src.strip_prefix(&src_path).unwrap());
+ let dest = path.join(src.strip_prefix(src_path).unwrap());
206
// In case of a symlink pointing to a directory, is_dir is false, but src.is_dir() will return true
207
if is_dir || (is_symlink && follow && src.is_dir()) {
208
for entry in fs::read_dir(&src)? {
0 commit comments