From 7038ea9fd3871c5f1852f3c459ca6a460a6f85b9 Mon Sep 17 00:00:00 2001 From: Stuart Stock Date: Thu, 13 Jun 2024 14:37:53 -0500 Subject: [PATCH] Correct coercion from String to &str --- src/bin/roughenough-client.rs | 2 +- src/bin/roughenough-kms.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/roughenough-client.rs b/src/bin/roughenough-client.rs index 570d08f..c428f81 100644 --- a/src/bin/roughenough-client.rs +++ b/src/bin/roughenough-client.rs @@ -308,7 +308,7 @@ impl ResponseHandler { fn main() { let matches = App::new("roughenough client") - .version(roughenough_version().as_ref()) + .version(&*roughenough_version()) .arg(Arg::with_name("host") .required(true) .help("The Roughtime server to connect to.") diff --git a/src/bin/roughenough-kms.rs b/src/bin/roughenough-kms.rs index 7e7d7c8..04e8cf2 100644 --- a/src/bin/roughenough-kms.rs +++ b/src/bin/roughenough-kms.rs @@ -114,7 +114,7 @@ pub fn main() { } let matches = App::new("roughenough-kms") - .version(roughenough_version().as_ref()) + .version(&*roughenough_version()) .long_about("Encrypt and decrypt Roughenough long-term server seeds using a KMS") .arg( Arg::with_name("KEY_ID")