mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust: Fix cargo clippy and cargo doc findings
Fix the new `cargo clippy` and `cargo doc` findings that were triggered with the recent policy addition. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
2155b83c1f
commit
667a8d714b
@@ -122,6 +122,7 @@ pub struct PerformAttOpt {
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "s390x")]
|
||||
#[derive(Debug)]
|
||||
pub struct PerformAttOptComb<'a> {
|
||||
pub input: &'a str,
|
||||
pub output: &'a str,
|
||||
|
||||
@@ -50,7 +50,7 @@ impl<'a> VerifyOutput<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Display for VerifyOutput<'a> {
|
||||
impl Display for VerifyOutput<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
writeln!(f, "Config UID:")?;
|
||||
writeln!(f, "{:#}", self.cuid)?;
|
||||
|
||||
@@ -16,7 +16,7 @@ use utils::{print_cli_error, print_error, print_version, PvLogger};
|
||||
use crate::cmd::*;
|
||||
|
||||
static LOGGER: PvLogger = PvLogger;
|
||||
const FEATURES: &[&[&str]] = &[cmd::CMD_FN, cmd::UV_CMD_FN];
|
||||
const FEATURES: &[&[&str]] = &[CMD_FN, UV_CMD_FN];
|
||||
const EXIT_CODE_ATTESTATION_FAIL: u8 = 2;
|
||||
const EXIT_CODE_LOGGER_FAIL: u8 = 3;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user