rust: Apply suggested fixes from clippy

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2025-12-01 15:28:38 +01:00
parent 2a99007a6e
commit c403208332
11 changed files with 23 additions and 20 deletions
+1 -2
View File
@@ -134,7 +134,6 @@ pub fn host_key_check<'a, 'b>(
#[cfg(test)]
mod test {
use std::path::PathBuf;
use super::*;
@@ -169,7 +168,7 @@ mod test {
let res = contains_phkh(&hash, &HexSlice::from(&hash[0].1), HkCheck::Image, true);
assert!(matches!(
res,
CheckState::Data(s) if s.hash.unwrap() == PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/assets/host.pem.crt"))
CheckState::Data(s) if s.hash.unwrap() == Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/assets/host.pem.crt"))
))
}
}