summaryrefslogtreecommitdiffstats
path: root/tests/common/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/mod.rs')
-rw-r--r--tests/common/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 5489cfa..4884a19 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -425,11 +425,12 @@ fn copy_tree(from: &Path, to: &Path) {
std::fs::create_dir_all(to).unwrap();
for entry in std::fs::read_dir(from).unwrap() {
let entry = entry.unwrap();
+ let path = entry.path();
let target = to.join(entry.file_name());
if entry.file_type().unwrap().is_dir() {
- copy_tree(&entry.path(), &target);
+ copy_tree(&path, &target);
} else {
- std::fs::copy(&entry.path(), &target).unwrap();
+ std::fs::copy(&path, &target).unwrap();
}
}
}