fix clippy issues (#503)

This commit is contained in:
Conrado Gouvea 2023-08-28 16:25:43 -03:00 committed by GitHub
parent f3fd9102a3
commit 877e7c3830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 1 deletions

View File

@ -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).

View File

@ -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).

View File

@ -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).

View File

@ -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).

View File

@ -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).

View File

@ -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",