Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Sep 1, 2024
1 parent c975464 commit a7a659f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hss/reference_impl_private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<H: HashChain> From<[u8; MAX_SEED_LEN]> for Seed<H> {
fn from(data: [u8; MAX_SEED_LEN]) -> Self {
Seed {
data: ArrayVecZeroize(ArrayVec::from_array_len(data, MAX_SEED_LEN)),
phantom: PhantomData::default(),
phantom: PhantomData,
}
}
}
Expand All @@ -51,7 +51,7 @@ impl<H: HashChain> TryFrom<ArrayVec<[u8; MAX_SEED_LEN]>> for Seed<H> {
if value.len() == H::OUTPUT_SIZE as usize {
Ok(Seed {
data: ArrayVecZeroize(value),
phantom: PhantomData::default(),
phantom: PhantomData,
})
} else {
Err("Can only construct seed from data of the HashChain output length")
Expand Down
2 changes: 1 addition & 1 deletion src/lm_ots/verify.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{marker::PhantomData, usize};
use core::marker::PhantomData;

use tinyvec::ArrayVec;

Expand Down

0 comments on commit a7a659f

Please sign in to comment.