Skip to content

Commit

Permalink
fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Aug 28, 2023
1 parent f3fd910 commit 85e2cd3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions frost-ed25519/tests/common_traits_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use frost_ed25519::SigningKey;
use helpers::samples;
use rand::thread_rng;

#[allow(clippy::unnecessary_literal_unwrap)]
fn check_common_traits_for_type<T: Clone + Eq + PartialEq + std::fmt::Debug>(v: T) {
// Make sure can be debug-printed. This also catches if the Debug does not
// have an endless recursion (a popular mistake).
Expand Down
1 change: 1 addition & 0 deletions frost-ed448/tests/common_traits_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use frost_ed448::SigningKey;
use helpers::samples;
use rand::thread_rng;

#[allow(clippy::unnecessary_literal_unwrap)]
fn check_common_traits_for_type<T: Clone + Eq + PartialEq + std::fmt::Debug>(v: T) {
// Make sure can be debug-printed. This also catches if the Debug does not
// have an endless recursion (a popular mistake).
Expand Down
1 change: 1 addition & 0 deletions frost-p256/tests/common_traits_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use frost_p256::SigningKey;
use helpers::samples;
use rand::thread_rng;

#[allow(clippy::unnecessary_literal_unwrap)]
fn check_common_traits_for_type<T: Clone + Eq + PartialEq + std::fmt::Debug>(v: T) {
// Make sure can be debug-printed. This also catches if the Debug does not
// have an endless recursion (a popular mistake).
Expand Down
1 change: 1 addition & 0 deletions frost-ristretto255/tests/common_traits_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use frost_ristretto255::SigningKey;
use helpers::samples;
use rand::thread_rng;

#[allow(clippy::unnecessary_literal_unwrap)]
fn check_common_traits_for_type<T: Clone + Eq + PartialEq + std::fmt::Debug>(v: T) {
// Make sure can be debug-printed. This also catches if the Debug does not
// have an endless recursion (a popular mistake).
Expand Down
1 change: 1 addition & 0 deletions frost-secp256k1/tests/common_traits_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use frost_secp256k1::SigningKey;
use helpers::samples;
use rand::thread_rng;

#[allow(clippy::unnecessary_literal_unwrap)]
fn check_common_traits_for_type<T: Clone + Eq + PartialEq + std::fmt::Debug>(v: T) {
// Make sure can be debug-printed. This also catches if the Debug does not
// have an endless recursion (a popular mistake).
Expand Down
2 changes: 1 addition & 1 deletion gencode/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ fn main() -> ExitCode {
// ristretto255 as the canonical base.

let original_folder = "frost-ristretto255";
let mut original_strings: Vec<String> = vec![
let mut original_strings: Vec<String> = [
"Ristretto255Sha512",
"Ristretto group",
"Ristretto",
Expand Down

0 comments on commit 85e2cd3

Please sign in to comment.