Skip to content

Commit 5b4b547

Browse files
committed
Fix clippy::unnecessary_operation throughout stacks core
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 11823df commit 5b4b547

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

stackslib/src/chainstate/stacks/boot/contract_tests.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,8 +2524,7 @@ fn test_vote_withdrawal() {
25242524
"vote-proposal",
25252525
&symbols_from_values(vec![Value::UInt(0), Value::UInt(10)]),
25262526
)
2527-
.unwrap()
2528-
.0;
2527+
.unwrap();
25292528

25302529
// Assert that the number of votes is correct
25312530
assert_eq!(
@@ -2551,8 +2550,7 @@ fn test_vote_withdrawal() {
25512550
"vote-proposal",
25522551
&symbols_from_values(vec![Value::UInt(0), Value::UInt(5)]),
25532552
)
2554-
.unwrap()
2555-
.0;
2553+
.unwrap();
25562554

25572555
// Assert that the number of votes is correct
25582556
assert_eq!(
@@ -2753,8 +2751,7 @@ fn test_vote_fail() {
27532751
"vote-proposal",
27542752
&symbols_from_values(vec![Value::UInt(0), Value::UInt(USTX_PER_HOLDER)]),
27552753
)
2756-
.unwrap()
2757-
.0;
2754+
.unwrap();
27582755
}
27592756

27602757
// Assert confirmation returns true
@@ -2953,8 +2950,7 @@ fn test_vote_confirm() {
29532950
"vote-proposal",
29542951
&symbols_from_values(vec![Value::UInt(0), Value::UInt(USTX_PER_HOLDER)]),
29552952
)
2956-
.unwrap()
2957-
.0;
2953+
.unwrap();
29582954
}
29592955

29602956
// Assert confirmation returns true
@@ -3092,8 +3088,7 @@ fn test_vote_too_many_confirms() {
30923088
"withdraw-votes",
30933089
&symbols_from_values(vec![Value::UInt(i), Value::UInt(USTX_PER_HOLDER)]),
30943090
)
3095-
.unwrap()
3096-
.0;
3091+
.unwrap();
30973092
}
30983093
}
30993094
});

0 commit comments

Comments
 (0)