diff --git a/src/config.rs b/src/config.rs index 199d6cb..0cdf6c4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -39,13 +39,22 @@ impl Default for Config { } } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize)] pub struct RepoConfig { pub url: String, pub path: PathBuf, pub secret: Option, } +impl std::fmt::Debug for RepoConfig { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("RepoConfig") + .field("url", &self.url) + .field("path", &self.path) + .finish() + } +} + fn default_header_name() -> String { "authorization".into() }