Skip to content

Commit

Permalink
lint: fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
  • Loading branch information
Xynnn007 committed Dec 2, 2024
1 parent c01a615 commit 6d1944f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions attestation-agent/attestation-agent/src/eventlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ pub enum LogEntry<'a> {
Init(HashAlgorithm),
}

impl<'a> LogEntry<'a> {
impl LogEntry<'_> {
/// Calculate the LogEntry's digest with the given [`HashAlgorithm`]
pub fn digest_with(&self, hash_alg: HashAlgorithm) -> Vec<u8> {
let log_entry = self.to_string();
hash_alg.digest(log_entry.as_bytes())
}
}

impl<'a> Display for LogEntry<'a> {
impl Display for LogEntry<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
LogEntry::Event {
Expand Down
1 change: 0 additions & 1 deletion attestation-agent/attestation-agent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ use crate::config::Config;
///
/// let _quote = aa.get_evidence(&[0;64]);
/// ```
/// `AttestationAPIs` defines the service APIs of attestation agent that need to make requests
/// to the Relying Party (Key Broker Service) in Confidential Containers.
///
Expand Down

0 comments on commit 6d1944f

Please sign in to comment.