Skip to content

Commit

Permalink
chore(lib): Implement fixes recommended by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
448-OG committed Jan 5, 2024
1 parent 304395b commit 1389fc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/encrypted_mem.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//! This module contains types and methods used to create a sealing key that stretches across multiple
//! memory pages ensuring impossible key recovery if certain attacks are used to try and recover the key.
//! These attacks are specified in the crate documentation.
//!
//!
//!
///
#[cfg(all(feature = "symm_asymm", feature = "random"))]
use crate::{CsprngArray, ZeroizeBytes};
use ascon_aead::Ascon128a;
Expand Down Expand Up @@ -84,7 +83,7 @@ impl fmt::Debug for EncryptedMem {
"ciphertext",
&blake3::hash(self.ciphertext.expose_borrowed()),
)
.field("nonce", &blake3::hash(&self.nonce.as_ref()))
.field("nonce", &blake3::hash(self.nonce.as_ref()))
.finish()
}
}
Expand Down
1 change: 0 additions & 1 deletion src/zeroizable_arrays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ impl<const N: usize> ZeroizeOnDrop for ZeroizeArray<N> {}
///
/// pub struct ZeroizeBytesArray<const N: usize>(BytesMut);
/// ```
///
#[derive(BorshSerialize, BorshDeserialize)]
pub struct ZeroizeBytesArray<const N: usize>(BytesMut);

Expand Down

0 comments on commit 1389fc6

Please sign in to comment.