Skip to content

Commit

Permalink
rust/pv: Fix 'elided_lifetimes_in_associated_constant' warning
Browse files Browse the repository at this point in the history
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 <rust-lang/rust#115010>

Closes: #162
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
  • Loading branch information
steffen-eiden authored and hoeppnerj committed Feb 2, 2024
1 parent 9b51b8b commit c70477f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/pv/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c70477f

Please sign in to comment.