Fix clippy warnings

This commit is contained in:
Andrey Golovizin 2022-02-16 22:47:21 +01:00
parent bebcb4318f
commit cf7c07dfa6

View file

@ -116,7 +116,7 @@ fn main() -> Result<(), anyhow::Error> {
let opts = Opts::parse();
match &opts.command {
Command::Endpoints => list_endpoints(&opts)?,
Command::Config(get_config_opts) => get_config(&opts, &get_config_opts)?,
Command::Config(get_config_opts) => get_config(&opts, get_config_opts)?,
Command::Check => check(&opts)?,
}
Ok(())
@ -160,7 +160,7 @@ fn get_config(_opts: &Opts, config_opts: &ConfigOpts) -> Result<(), anyhow::Erro
.into_json()?;
debug!("config = {:?}", &config);
write_config(&mut std::io::stdout().lock(), &config_opts, &config, &keys)
write_config(&mut std::io::stdout().lock(), config_opts, &config, &keys)
}
fn write_config(