Skip to content

Commit fc92d18

Browse files
authored
Merge pull request #5702 from stacks-network/fix/clippy-ci-unnecessary-operation
Fix clippy::unnecessary_operation throughout stacks core
2 parents 80d9385 + fa7fb2c commit fc92d18

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
@@ -2523,8 +2523,7 @@ fn test_vote_withdrawal() {
25232523
"vote-proposal",
25242524
&symbols_from_values(vec![Value::UInt(0), Value::UInt(10)]),
25252525
)
2526-
.unwrap()
2527-
.0;
2526+
.unwrap();
25282527

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

25562554
// Assert that the number of votes is correct
25572555
assert_eq!(
@@ -2752,8 +2750,7 @@ fn test_vote_fail() {
27522750
"vote-proposal",
27532751
&symbols_from_values(vec![Value::UInt(0), Value::UInt(USTX_PER_HOLDER)]),
27542752
)
2755-
.unwrap()
2756-
.0;
2753+
.unwrap();
27572754
}
27582755

27592756
// Assert confirmation returns true
@@ -2952,8 +2949,7 @@ fn test_vote_confirm() {
29522949
"vote-proposal",
29532950
&symbols_from_values(vec![Value::UInt(0), Value::UInt(USTX_PER_HOLDER)]),
29542951
)
2955-
.unwrap()
2956-
.0;
2952+
.unwrap();
29572953
}
29582954

29592955
// Assert confirmation returns true
@@ -3091,8 +3087,7 @@ fn test_vote_too_many_confirms() {
30913087
"withdraw-votes",
30923088
&symbols_from_values(vec![Value::UInt(i), Value::UInt(USTX_PER_HOLDER)]),
30933089
)
3094-
.unwrap()
3095-
.0;
3090+
.unwrap();
30963091
}
30973092
}
30983093
});

0 commit comments

Comments
 (0)