Skip to content

Commit

Permalink
Fix clippy nit
Browse files Browse the repository at this point in the history
Signed-off-by: Jiale Zhang <[email protected]>
  • Loading branch information
jialez0 committed Feb 5, 2025
1 parent 5eb0a3b commit 1dfe937
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deps/verifier/src/tdx/eventlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl CcEventLog {
// Defined in TCG PC Client Platform Firmware Profile Specification section
// 'UEFI_PLATFORM_FIRMWARE_BLOB Structure Definition'
let entity_name = entity.to_string();
event_desc_prefix = vec![entity_name.as_bytes().len() as u8];
event_desc_prefix = vec![entity_name.len() as u8];
event_desc_prefix.extend_from_slice(entity_name.as_bytes());
}
MeasuredEntity::TdvfKernel => {
Expand Down
2 changes: 1 addition & 1 deletion kbs/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl SessionStatus {
impl_member!(timeout, OffsetDateTime);

pub fn is_expired(&self) -> bool {
return *self.timeout() < OffsetDateTime::now_utc();
*self.timeout() < OffsetDateTime::now_utc()
}

pub fn attest(&mut self, attestation_claims: String, token: String) {
Expand Down
2 changes: 1 addition & 1 deletion rvps/src/extractors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use super::{Message, ReferenceValue};
/// reference value (degest, s.t. hash value and name of the artifact)
/// from the provenance. If the verification fails, no reference value
/// will be extracted.
///
/// `Extractors` defines the interfaces of Extractors.
pub trait Extractors {
/// Process the message, e.g. verifying
Expand Down

0 comments on commit 1dfe937

Please sign in to comment.