Skip to content

Commit

Permalink
Fix unused_mut warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Jun 27, 2024
1 parent 936b0b9 commit 906a298
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions libcrux-ml-kem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ mod types;
#[cfg(feature = "pre-verification")]
mod vector;


#[cfg(not(feature = "pre-verification"))]
mod kem;
// Variants
Expand All @@ -99,7 +98,6 @@ pub mod mlkem512;
#[cfg(all(feature = "mlkem768", feature = "pre-verification"))]
pub mod mlkem768;


// Variants
#[cfg(all(feature = "mlkem512", not(feature = "pre-verification")))]
pub mod mlkem512 {
Expand Down
2 changes: 1 addition & 1 deletion libcrux-ml-kem/tests/self.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod default {
}

fn modify_ciphertext<const LEN: usize>(
mut ciphertext: MlKemCiphertext<LEN>,
ciphertext: MlKemCiphertext<LEN>,
) -> MlKemCiphertext<LEN> {
let mut raw_ciphertext = [0u8; LEN];
raw_ciphertext.copy_from_slice(ciphertext.as_ref());
Expand Down

0 comments on commit 906a298

Please sign in to comment.