Skip to content

Commit

Permalink
Fix clippy nits
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Mar 2, 2024
1 parent 0b263e8 commit b3ba815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ml-kem/src/kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ where
&self,
m: &B32,
) -> Result<(EncodedCiphertext<P>, SharedKey), Self::Error> {
Ok(self.encapsulate_deterministic_inner(&m))
Ok(self.encapsulate_deterministic_inner(m))
}
}

Expand Down
6 changes: 5 additions & 1 deletion ml-kem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ pub trait EncapsulateDeterministic<EK, SS> {
/// Encapsulation error
type Error: Debug;

/// Encapsulates a fresh shared secret
/// Encapsulates a fresh shared secret.
///
/// # Errors
///
/// Will vary depending on the underlying implementation.
fn encapsulate_deterministic(&self, m: &B32) -> Result<(EK, SS), Self::Error>;
}

Expand Down

0 comments on commit b3ba815

Please sign in to comment.