From fb2fc57715e5a818bbb41fcfc0718454f6a0dcf5 Mon Sep 17 00:00:00 2001 From: Andrey Golovizin Date: Tue, 29 Jun 2021 23:15:30 +0200 Subject: [PATCH] Rename list() to list_endpoints() --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 365884c..00d0cb5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,14 +82,14 @@ fn main() -> Result<(), anyhow::Error> { env_logger::init(); let opts = Opts::parse(); match &opts.command { - Command::Endpoints => list(&opts)?, + Command::Endpoints => list_endpoints(&opts)?, Command::Config(get_config_opts) => get_config(&opts, &get_config_opts)?, Command::Check => check(&opts)?, } Ok(()) } -fn list(opts: &Opts) -> Result<(), anyhow::Error> { +fn list_endpoints(opts: &Opts) -> Result<(), anyhow::Error> { let locations: Locations = get_locations()?; if opts.json { println!("{}", serde_json::to_string(&locations)?);