summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.rs b/src/config.rs
index 4f6cef0..958fb0f 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -130,12 +130,10 @@ pub struct Config {
pub password: String,
pub base_url: String,
pub build_profile: String,
- pub git_bin: String,
pub makepkg_bin: String,
pub pacman_bin: String,
pub repo_add_bin: String,
pub gpg_bin: String,
- pub build_user: String,
pub sandbox: Sandbox,
#[cfg(feature = "test-support")]
#[serde(default, skip_serializing_if = "TestHooks::is_empty")]
@@ -188,12 +186,10 @@ impl Default for Config {
password: String::new(),
base_url: "http://127.0.0.1:8484".into(),
build_profile: "extra-x86_64".into(),
- git_bin: "git".into(),
makepkg_bin: "makepkg".into(),
pacman_bin: "pacman".into(),
repo_add_bin: "repo-add".into(),
gpg_bin: "gpg".into(),
- build_user: String::new(),
sandbox: Sandbox::default(),
#[cfg(feature = "test-support")]
hooks: TestHooks::default(),
@@ -287,6 +283,8 @@ impl Config {
Ok(())
}
+ // Everything this assembles comes from the `test-support`-gated `hooks`
+ // field, so in a release build the argument and the vector are both unused.
#[cfg_attr(not(feature = "test-support"), allow(unused_variables))]
pub fn child_env_pairs(&self) -> Vec<(String, String)> {
#[cfg_attr(not(feature = "test-support"), allow(unused_mut))]