Skip to content

Commit

Permalink
test(kyberlib): 🐛 address the warning about the unused result of type…
Browse files Browse the repository at this point in the history
… `Box<dyn Any + Send>`
  • Loading branch information
sebastienrousseau committed May 9, 2024
1 parent d3a926b commit c3989cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ mod tests {
vec![0u8; KYBER_PUBLIC_KEY_BYTES - 1].into_boxed_slice();

// Call Kex::new() with the invalid public key and expect a panic
std::panic::catch_unwind(|| {
Kex::new(invalid_pk);
let _ = std::panic::catch_unwind(|| {
let _ = Kex::new(invalid_pk);
})
.unwrap_err();
}
Expand Down

0 comments on commit c3989cc

Please sign in to comment.