From 75898d0b831f9631987a74dc129b085ba4f50220 Mon Sep 17 00:00:00 2001 From: Jason Ozias Date: Fri, 12 May 2023 22:08:07 -0400 Subject: [PATCH] Fix clippy lints on stable --- src/shamir/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shamir/mod.rs b/src/shamir/mod.rs index 32e31c2..a2909d5 100644 --- a/src/shamir/mod.rs +++ b/src/shamir/mod.rs @@ -248,7 +248,7 @@ mod test { #[test] fn max_secret() -> Result<()> { let mut config = SsssConfig::default(); - let _ = config.set_max_secret_size(3); + _ = config.set_max_secret_size(3); let result = gen_shares(&config, "abcd".as_bytes()); check_err_result( result, @@ -259,7 +259,7 @@ mod test { #[test] fn zero_parts() -> Result<()> { let mut config = SsssConfig::default(); - let _ = config.set_num_shares(0); + _ = config.set_num_shares(0); let result = gen_shares(&config, "a".as_bytes()); check_err_result(result, "The number of shares must be greater than 0") } @@ -267,7 +267,7 @@ mod test { #[test] fn zero_threshold() -> Result<()> { let mut config = SsssConfig::default(); - let _ = config.set_threshold(0); + _ = config.set_threshold(0); let result = gen_shares(&config, "a".as_bytes()); check_err_result(result, "The threshold must be greater than 0") } @@ -275,7 +275,7 @@ mod test { #[test] fn threshold_greater_than_parts() -> Result<()> { let mut config = SsssConfig::default(); - let _ = config.set_threshold(6); + _ = config.set_threshold(6); let result = gen_shares(&config, "a".as_bytes()); check_err_result( result,