diff --git a/src/commands/introducer.rs b/src/commands/introducer.rs index 90310c2..269a17a 100644 --- a/src/commands/introducer.rs +++ b/src/commands/introducer.rs @@ -17,7 +17,6 @@ pub async fn dispatch(cmd: IntroducerCommand, config: HuskConfigContainer) -> Re remove::dispatch(rm_cmd, config).await?; }, IntroducerSubcommand::List => { - println!("list"); let context = HuskContext::new(&config.into())?; for introducer in crypto::get_introducers( diff --git a/src/commands/introducer/add.rs b/src/commands/introducer/add.rs index 084d051..9f7d63a 100644 --- a/src/commands/introducer/add.rs +++ b/src/commands/introducer/add.rs @@ -16,11 +16,6 @@ use crate::types::husk_context::HuskContext; use crate::types::introducer::Introducer; pub async fn dispatch(cmd: IntroducerAddCommand, config: HuskConfigContainer) -> Result<()> { - println!("add"); - println!(" {:?}", cmd.cert); - println!(" {:?}", cmd.cert_file); - println!(" {:?}", cmd.domains); - let context = HuskContext::new(&config.into())?; let policy = &context.policy; let cert_store = &context.cert_store; diff --git a/src/commands/introducer/remove.rs b/src/commands/introducer/remove.rs index fc21717..3383680 100644 --- a/src/commands/introducer/remove.rs +++ b/src/commands/introducer/remove.rs @@ -13,10 +13,6 @@ use crate::types::husk_context::HuskContext; use crate::types::introducer::Introducer; pub async fn dispatch(cmd: IntroducerRemoveCommand, config: HuskConfigContainer) -> Result<()> { - println!("remove"); - println!(" {:?}", cmd.cert); - println!(" {:?}", cmd.demote); - let context = HuskContext::new(&config.into())?; let policy = &context.policy; let cert_store = &context.cert_store; diff --git a/src/types/introducer.rs b/src/types/introducer.rs index aa20538..b3f5251 100644 --- a/src/types/introducer.rs +++ b/src/types/introducer.rs @@ -81,7 +81,7 @@ impl Introducer { pub fn remove(context: &HuskContext, cert: &ValidCert, _demote: bool) -> Result<()> { - // Check if the local trust root certificate should be made an + // Check if the local trust root certificate is used as // introducer, which would be an error. if cert.fingerprint() == context.local_trust_root.fingerprint() { return Err(IntroducerError::UnsuitableCertificate.into());