From c70477f8c68635f35c816f97a03cf2853208f8d5 Mon Sep 17 00:00:00 2001 From: Steffen Eiden Date: Fri, 6 Oct 2023 11:29:17 +0200 Subject: [PATCH] rust/pv: Fix 'elided_lifetimes_in_associated_constant' warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes "warning: `&` without an explicit lifetime name cannot be used here". This warning will become a hard error in "the future". For more information, see issue #115010 Closes: https://github.com/ibm-s390-linux/s390-tools/issues/162 Reviewed-by: Marc Hartmayer Signed-off-by: Steffen Eiden Signed-off-by: Jan Höppner --- rust/pv/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/pv/src/error.rs b/rust/pv/src/error.rs index f2bd963f..44ec7ca2 100644 --- a/rust/pv/src/error.rs +++ b/rust/pv/src/error.rs @@ -46,8 +46,8 @@ pub enum Error { // used in macros #[doc(hidden)] impl Error { - pub const CRL: &str = "CRL"; - pub const CERT: &str = "certificate"; + pub const CRL: &'static str = "CRL"; + pub const CERT: &'static str = "certificate"; } /// Error cases for verifying host-key documents