summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs9
1 files changed, 2 insertions, 7 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.