From 39a96aa4a7ed525c80682a516ddaf51ca58b48a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 18 Dec 2022 22:30:35 +0100 Subject: [PATCH] Remove useless references --- acmed/src/main.rs | 4 ++-- tacd/src/main.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/acmed/src/main.rs b/acmed/src/main.rs index cf8db0f..2a30bf3 100644 --- a/acmed/src/main.rs +++ b/acmed/src/main.rs @@ -61,7 +61,7 @@ fn main() { let default_log_level = DEFAULT_LOG_LEVEL.to_string().to_lowercase(); let matches = Command::new(APP_NAME) .version(APP_VERSION) - .long_version(&full_version) + .long_version(full_version) .arg( Arg::new("config") .short('c') @@ -78,7 +78,7 @@ fn main() { .num_args(1) .value_name("LEVEL") .value_parser(["error", "warn", "info", "debug", "trace"]) - .default_value(&default_log_level), + .default_value(default_log_level), ) .arg( Arg::new("to-syslog") diff --git a/tacd/src/main.rs b/tacd/src/main.rs index 8c2a0f2..05e631c 100644 --- a/tacd/src/main.rs +++ b/tacd/src/main.rs @@ -86,7 +86,7 @@ fn main() { let default_log_level = DEFAULT_LOG_LEVEL.to_string().to_lowercase(); let matches = Command::new(APP_NAME) .version(APP_VERSION) - .long_version(&full_version) + .long_version(full_version) .arg( Arg::new("listen") .long("listen") @@ -137,7 +137,7 @@ fn main() { .num_args(1) .value_name("STRING") .value_parser(PossibleValuesParser::new(KeyType::list_possible_values())) - .default_value(&default_crt_key_type), + .default_value(default_crt_key_type), ) .arg( Arg::new("crt-digest") @@ -146,7 +146,7 @@ fn main() { .num_args(1) .value_name("STRING") .value_parser(PossibleValuesParser::new(HashFunction::list_possible_values())) - .default_value(&default_crt_digest), + .default_value(default_crt_digest), ) .arg( Arg::new("log-level") @@ -155,7 +155,7 @@ fn main() { .num_args(1) .value_name("LEVEL") .value_parser(["error", "warn", "info", "debug", "trace"]) - .default_value(&default_log_level), + .default_value(default_log_level), ) .arg( Arg::new("to-syslog")