Skip to content

Commit

Permalink
Fix clippy::unnecessary_operation throughout stacks core
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Jan 14, 2025
1 parent 11823df commit 5b4b547
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions stackslib/src/chainstate/stacks/boot/contract_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2524,8 +2524,7 @@ fn test_vote_withdrawal() {
"vote-proposal",
&symbols_from_values(vec![Value::UInt(0), Value::UInt(10)]),
)
.unwrap()
.0;
.unwrap();

// Assert that the number of votes is correct
assert_eq!(
Expand All @@ -2551,8 +2550,7 @@ fn test_vote_withdrawal() {
"vote-proposal",
&symbols_from_values(vec![Value::UInt(0), Value::UInt(5)]),
)
.unwrap()
.0;
.unwrap();

// Assert that the number of votes is correct
assert_eq!(
Expand Down Expand Up @@ -2753,8 +2751,7 @@ fn test_vote_fail() {
"vote-proposal",
&symbols_from_values(vec![Value::UInt(0), Value::UInt(USTX_PER_HOLDER)]),
)
.unwrap()
.0;
.unwrap();
}

// Assert confirmation returns true
Expand Down Expand Up @@ -2953,8 +2950,7 @@ fn test_vote_confirm() {
"vote-proposal",
&symbols_from_values(vec![Value::UInt(0), Value::UInt(USTX_PER_HOLDER)]),
)
.unwrap()
.0;
.unwrap();
}

// Assert confirmation returns true
Expand Down Expand Up @@ -3092,8 +3088,7 @@ fn test_vote_too_many_confirms() {
"withdraw-votes",
&symbols_from_values(vec![Value::UInt(i), Value::UInt(USTX_PER_HOLDER)]),
)
.unwrap()
.0;
.unwrap();
}
}
});
Expand Down

0 comments on commit 5b4b547

Please sign in to comment.