Skip to content

Commit

Permalink
Silence clippy output about expected panics.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Sep 9, 2024
1 parent 54c8ae2 commit 05fa48e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qos_crypto/src/shamir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ fn gf256_interpolate(xs: &[u8], ys: &[u8]) -> u8 {
/// Examples:
/// n=1 k=1 should be possible but triggers `SharingMinThreshold` in new impl
/// n=2 k=1 should be possible but triggers `SharingMinThreshold` in new impl
///
/// # Panics
/// This function will panic if more than 255 shares are requested, as the
/// `u8::try_from` conversion will fail.
#[must_use]
#[allow(clippy::expect_used)]
pub fn deprecated_insecure_shares_generate(
secret: &[u8],
n: usize,
Expand Down

0 comments on commit 05fa48e

Please sign in to comment.