Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
refactor: drop custom Debug implementation of AdapterConfig
Lars Wirzenius committed 1 year ago
commit 2e37eb04f4800797d28b8b5d23ba30d7c32863dc
parent e55a7de242448000b97b91b8b287758c2c57bf10
1 file changed +1 -17
modified src/config.rs
@@ -2,7 +2,6 @@

use std::{
    collections::HashMap,
-
    fmt,
    path::{Path, PathBuf},
    time::Duration,
};
@@ -86,22 +85,7 @@ impl Config {
    }
}

-
impl fmt::Debug for AdapterConfig {
-
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-
        write!(
-
            f,
-
            "Adapter {{ \n command: {:#?}, \n env: {:#?}, \n sensitive_env: {:#?} }}",
-
            self.command,
-
            self.env,
-
            self.sensitive_env
-
                .keys()
-
                .map(|k| (k.to_string(), "***".to_string()))
-
                .collect::<HashMap<String, String>>()
-
        )
-
    }
-
}
-

-
#[derive(Serialize, Deserialize)]
+
#[derive(Debug, Serialize, Deserialize)]
pub struct AdapterConfig {
    pub command: PathBuf,
    pub env: HashMap<String, String>,