Skip to content

Commit

Permalink
Fix clippy lints on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZySacX committed May 13, 2023
1 parent 4eb7adf commit 75898d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shamir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -259,23 +259,23 @@ 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")
}

#[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")
}

#[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,
Expand Down

0 comments on commit 75898d0

Please sign in to comment.