Skip to content

Commit

Permalink
Addressing cargo fmt concerns
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Prinz <[email protected]>
  • Loading branch information
taprinz authored and jyao1 committed Mar 14, 2024
1 parent 7cb007c commit ab6f6e4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion spdmlib/src/crypto/crypto_null/aead_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::crypto::SpdmAead;
use crate::error::{SpdmResult};
use crate::error::SpdmResult;

use crate::protocol::{SpdmAeadAlgo, SpdmAeadIvStruct, SpdmAeadKeyStruct};

Expand Down
4 changes: 2 additions & 2 deletions spdmlib/src/crypto/crypto_null/asym_verify_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::crypto::{SpdmAsymVerify};
use crate::error::{SpdmResult};
use crate::crypto::SpdmAsymVerify;
use crate::error::SpdmResult;
use crate::protocol::{SpdmBaseAsymAlgo, SpdmBaseHashAlgo, SpdmSignatureStruct};

pub static DEFAULT: SpdmAsymVerify = SpdmAsymVerify {
Expand Down
2 changes: 1 addition & 1 deletion spdmlib/src/crypto/crypto_null/cert_operation_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::crypto::SpdmCertOperation;
use crate::error::{SpdmResult};
use crate::error::SpdmResult;

pub static DEFAULT: SpdmCertOperation = SpdmCertOperation {
get_cert_from_cert_chain_cb: get_cert_from_cert_chain,
Expand Down
2 changes: 1 addition & 1 deletion spdmlib/src/crypto/crypto_null/hkdf_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use crate::crypto::SpdmHkdf;
use crate::protocol::{
SpdmBaseHashAlgo, SpdmHkdfInputKeyingMaterial, SpdmHkdfOutputKeyingMaterial,
SpdmHkdfPseudoRandomKey
SpdmHkdfPseudoRandomKey,
};

pub static DEFAULT: SpdmHkdf = SpdmHkdf {
Expand Down
2 changes: 1 addition & 1 deletion spdmlib/src/crypto/crypto_null/hmac_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::crypto::SpdmHmac;
use crate::error::{SpdmResult};
use crate::error::SpdmResult;
use crate::protocol::{SpdmBaseHashAlgo, SpdmDigestStruct};

pub static DEFAULT: SpdmHmac = SpdmHmac {
Expand Down
2 changes: 1 addition & 1 deletion spdmlib/src/crypto/crypto_null/rand_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::crypto::SpdmCryptoRandom;
use crate::error::{SpdmResult};
use crate::error::SpdmResult;

pub static DEFAULT: SpdmCryptoRandom = SpdmCryptoRandom {
get_random_cb: get_random,
Expand Down
2 changes: 1 addition & 1 deletion spdmlib/src/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub mod hmac {

#[cfg(not(any(feature = "spdm-ring")))]
use super::crypto_null::hmac_impl::DEFAULT;

#[cfg(feature = "spdm-ring")]
use super::spdm_ring::hmac_impl::DEFAULT;

Expand Down

0 comments on commit ab6f6e4

Please sign in to comment.