Skip to content

Commit

Permalink
lint: fix nightly lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Feb 19, 2024
1 parent 84432a2 commit 4be5d24
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion attestation-service/attestation-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{

use anyhow::{anyhow, Result};
use serde::Deserialize;
use std::convert::TryFrom;
use std::fs::File;
use std::path::{Path, PathBuf};

Expand Down
2 changes: 1 addition & 1 deletion attestation-service/verifier/src/cca/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

use super::*;
use anyhow::{anyhow, Context, Result};
use anyhow::anyhow;
use async_trait::async_trait;
use base64::Engine;
use core::result::Result::Ok;
Expand Down
1 change: 0 additions & 1 deletion attestation-service/verifier/src/csv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// SPDX-License-Identifier: Apache-2.0
//

use anyhow::{Context, Result};
use log::{debug, warn};
extern crate serde;
use self::serde::{Deserialize, Serialize};
Expand Down
1 change: 0 additions & 1 deletion attestation-service/verifier/src/sample/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use anyhow::{Context, Result};
use log::debug;
extern crate serde;
use self::serde::{Deserialize, Serialize};
Expand Down
3 changes: 1 addition & 2 deletions attestation-service/verifier/src/snp/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{anyhow, Context, Result};
use anyhow::anyhow;
use base64::Engine;
use log::debug;
extern crate serde;
Expand Down Expand Up @@ -255,7 +255,6 @@ pub(crate) fn parse_tee_evidence(report: &AttestationReport) -> TeeEvidenceParse
mod tests {
use super::*;
use openssl::nid::Nid;
use sev::firmware::host::CertTableEntry;

#[test]
fn check_milan_certificates() {
Expand Down
2 changes: 0 additions & 2 deletions attestation-service/verifier/src/tdx/eventlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ use anyhow::*;
use byteorder::{LittleEndian, ReadBytesExt};
use core::mem::size_of;
use eventlog_rs::Eventlog;
use std::convert::{TryFrom, TryInto};
use std::string::ToString;
use strum::{Display, EnumString};

#[derive(Debug, Clone, EnumString, Display)]
Expand Down
3 changes: 1 addition & 2 deletions attestation-service/verifier/src/tdx/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{anyhow, Context, Result};
use anyhow::anyhow;
use log::{debug, warn};

use crate::tdx::claims::generate_parsed_claim;
Expand Down Expand Up @@ -105,7 +105,6 @@ async fn verify_evidence(

#[cfg(test)]
mod tests {
use crate::tdx::claims::generate_parsed_claim;

use super::*;
use std::fs;
Expand Down
1 change: 0 additions & 1 deletion attestation-service/verifier/src/tdx/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use qvl::{
tee_qv_get_collateral, tee_supp_data_descriptor_t, tee_verify_quote,
};
use scroll::Pread;
use std::convert::TryInto;
use std::mem;
use std::time::{Duration, SystemTime};

Expand Down
1 change: 0 additions & 1 deletion kbs/src/api/src/policy_engine/opa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ impl PolicyEngineInterface for Opa {
mod tests {
use super::*;
use base64::engine::general_purpose::URL_SAFE_NO_PAD;
use base64::Engine;
use serde_json::json;

fn dummy_input(product_id: &str, svn: u64) -> String {
Expand Down

0 comments on commit 4be5d24

Please sign in to comment.