Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: fix lint error due to Rust 1.83.0 (stable) update #828

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading