From 8a612ab7a62cf7ee48f45795b8b6760d2cabe76f Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 20:37:35 +0000 Subject: fix: what clippy -D warnings was holding Sandbox::default was a hand-written derivable_impl, and copy_tree borrowed an owned PathBuf. --- tests/common/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/common') 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(); } } } -- cgit v1.2.3