From 6ebd7fc11b1c3d5b718e7343b80c47760e49f4e0 Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Fri, 9 May 2025 12:25:56 +0100 Subject: [PATCH] refactor: Rename chosen_method to auth_method inside fill_config_template --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index fc8e500..3f2d043 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,8 +77,8 @@ fn read_config_template() -> Result { fn fill_config_template(config_template: String, args: SetupArgs) -> String { let mut filled = formatx!(config_template, args.api_url, args.rest_url, args.username).unwrap(); - let chosen_method: AuthMethod = args.auth_phrase.into(); - match chosen_method { + let auth_method: AuthMethod = args.auth_phrase.into(); + match auth_method { AuthMethod::Password(password) => { filled.push_str(format!("password = \"{}\"", password).as_str()); },