From 9e21d1d02ab4e3089fdbb9e78a2bf4c8a76cd8e6 Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Mon, 2 Dec 2024 17:08:27 +0800 Subject: [PATCH 1/2] AA: fix needless-lifetimes lint error This check item starts from Rust 1.83.0 Signed-off-by: Xynnn007 --- attestation-agent/attestation-agent/src/eventlog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attestation-agent/attestation-agent/src/eventlog.rs b/attestation-agent/attestation-agent/src/eventlog.rs index 1b836ab14..4b165f622 100644 --- a/attestation-agent/attestation-agent/src/eventlog.rs +++ b/attestation-agent/attestation-agent/src/eventlog.rs @@ -73,7 +73,7 @@ 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 { let log_entry = self.to_string(); @@ -81,7 +81,7 @@ impl<'a> LogEntry<'a> { } } -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 { From 806d97bc4e95f374196d3861d8355fc872a51848 Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Mon, 2 Dec 2024 17:09:17 +0800 Subject: [PATCH 2/2] AA: fix empty-line-after-outer-attr lint error This check starts from Rust 1.83.0 Signed-off-by: Xynnn007 --- attestation-agent/attestation-agent/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/attestation-agent/attestation-agent/src/lib.rs b/attestation-agent/attestation-agent/src/lib.rs index c41b7ca69..a9e114648 100644 --- a/attestation-agent/attestation-agent/src/lib.rs +++ b/attestation-agent/attestation-agent/src/lib.rs @@ -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. ///