dont debug secrets

This commit is contained in:
slonkazoid 2024-12-28 18:07:56 +03:00
parent f935c8d418
commit 2072a38066
Signed by: slonk
SSH key fingerprint: SHA256:tbZfJX4IOvZ0LGWOWu5Ijo8jfMPi78TU7x1VoEeCIjM

View file

@ -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<SecretRule>,
}
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()
}