remove superfluous associated types

This commit is contained in:
Jan Winkelmann (keks)
2025-02-21 14:59:55 +01:00
parent 44e46895aa
commit b94ddd980d
3 changed files with 0 additions and 6 deletions

View File

@@ -9,8 +9,6 @@ pub trait KeyedHash<const KEY_LEN: usize, const HASH_LEN: usize> {
}
pub trait KeyedHashInstance<const KEY_LEN: usize, const HASH_LEN: usize> {
type KeyType;
type OutputType;
type Error;
fn keyed_hash(

View File

@@ -21,8 +21,6 @@ where
L: KeyedHash<KEY_LEN, HASH_LEN, Error = Error>,
R: KeyedHash<KEY_LEN, HASH_LEN, Error = Error>,
{
type KeyType = [u8; KEY_LEN];
type OutputType = [u8; HASH_LEN];
type Error = Error;
fn keyed_hash(

View File

@@ -53,8 +53,6 @@ impl<
Static: KeyedHash<KEY_LEN, HASH_LEN, Error = anyhow::Error>,
> KeyedHashInstance<KEY_LEN, HASH_LEN> for InferKeyedHash<Static, KEY_LEN, HASH_LEN>
{
type KeyType = [u8; KEY_LEN];
type OutputType = [u8; HASH_LEN];
type Error = anyhow::Error;
fn keyed_hash(&self, key: &[u8; KEY_LEN], data: &[u8], out: &mut [u8; HASH_LEN]) -> Result<()> {