summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-19 20:37:35 +0000
committeraur-build <aur-build@localhost>2026-11-19 20:37:35 +0000
commit8a612ab7a62cf7ee48f45795b8b6760d2cabe76f (patch)
tree37ac1d70cd885cbde6013c42c5c8c76e3d6ceed9
parented70a288033248b707c0a01acfecf320e260cfbe (diff)
downloadaur-build-8a612ab7a62cf7ee48f45795b8b6760d2cabe76f.tar.gz
aur-build-8a612ab7a62cf7ee48f45795b8b6760d2cabe76f.zip
fix: what clippy -D warnings was holding
Sandbox::default was a hand-written derivable_impl, and copy_tree borrowed an owned PathBuf.
-rw-r--r--src/config.rs9
-rw-r--r--tests/common/mod.rs5
-rw-r--r--tools/suite-cost.md1
3 files changed, 6 insertions, 9 deletions
diff --git a/src/config.rs b/src/config.rs
index e4a7e6d..cd00b7f 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -4,9 +4,10 @@ use serde::{Deserialize, Serialize};
pub const DEFAULT_SANDBOX_IMAGE: &str = "aur-build-sandbox:latest";
-#[derive(Clone, Serialize, Deserialize)]
+#[derive(Clone, Default, Serialize, Deserialize)]
#[serde(tag = "kind", rename_all = "kebab-case", deny_unknown_fields)]
pub enum Sandbox {
+ #[default]
Loopback,
Remote {
listen: String,
@@ -28,12 +29,6 @@ pub enum Sandbox {
},
}
-impl Default for Sandbox {
- fn default() -> Self {
- Sandbox::Loopback
- }
-}
-
impl std::fmt::Debug for Sandbox {
// Hand-written so the rendezvous token and cluster bearer cannot ride into
// a log line, a panic message, or an audit payload.
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();
}
}
}
diff --git a/tools/suite-cost.md b/tools/suite-cost.md
index 4a60a37..1175bbe 100644
--- a/tools/suite-cost.md
+++ b/tools/suite-cost.md
@@ -3,3 +3,4 @@
| 2026-11-19 19:30 | baseline | 170.9 | 58.7 | 267 | 0 | 7017 | 4477 | 1090 | 22542 |
| 2026-11-19 19:26 | baseline (no census) | 137.9 | 35.0 | 267 | 0 | - | - | - | - |
| 2026-11-19 19:50 | seam | 129.0 | 31.8 | 272 | 0 | - | - | - | - |
+| 2026-11-19 20:27 | deterministic-waits | 129.4 | 32.4 | 272 | 0 | - | - | - | - |