dont debug secrets
This commit is contained in:
parent
f935c8d418
commit
2072a38066
1 changed files with 10 additions and 1 deletions
|
@ -39,13 +39,22 @@ impl Default for Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct RepoConfig {
|
pub struct RepoConfig {
|
||||||
pub url: String,
|
pub url: String,
|
||||||
pub path: PathBuf,
|
pub path: PathBuf,
|
||||||
pub secret: Option<SecretRule>,
|
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 {
|
fn default_header_name() -> String {
|
||||||
"authorization".into()
|
"authorization".into()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue