From a7a659fdc292df86cec01f6fff343bf3977e8470 Mon Sep 17 00:00:00 2001 From: Alexander Wagner Date: Sun, 1 Sep 2024 13:15:44 +0200 Subject: [PATCH] Make clippy happy --- src/hss/reference_impl_private_key.rs | 4 ++-- src/lm_ots/verify.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hss/reference_impl_private_key.rs b/src/hss/reference_impl_private_key.rs index f72d9851..6956b8bb 100644 --- a/src/hss/reference_impl_private_key.rs +++ b/src/hss/reference_impl_private_key.rs @@ -39,7 +39,7 @@ impl From<[u8; MAX_SEED_LEN]> for Seed { fn from(data: [u8; MAX_SEED_LEN]) -> Self { Seed { data: ArrayVecZeroize(ArrayVec::from_array_len(data, MAX_SEED_LEN)), - phantom: PhantomData::default(), + phantom: PhantomData, } } } @@ -51,7 +51,7 @@ impl TryFrom> for Seed { 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") diff --git a/src/lm_ots/verify.rs b/src/lm_ots/verify.rs index c74002ae..b53e610f 100644 --- a/src/lm_ots/verify.rs +++ b/src/lm_ots/verify.rs @@ -1,4 +1,4 @@ -use core::{marker::PhantomData, usize}; +use core::marker::PhantomData; use tinyvec::ArrayVec;