Skip to content

Commit 151c844

Browse files
committed
use From based cast for u32->u64
1 parent 8d2bb0d commit 151c844

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testnet/stacks-node/src/nakamoto_node/signer_coordinator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl SignerCoordinator {
334334
return false;
335335
}
336336
// number or rejections changed?
337-
if status.total_reject_weight as u64 != rejections {
337+
if u64::from(status.total_reject_weight) != rejections {
338338
return false;
339339
}
340340
// enough signatures?
@@ -388,8 +388,8 @@ impl SignerCoordinator {
388388
}
389389
};
390390

391-
if rejections != block_status.total_reject_weight as u64 {
392-
rejections = block_status.total_reject_weight as u64;
391+
if rejections != u64::from(block_status.total_reject_weight) {
392+
rejections = u64::from(block_status.total_reject_weight);
393393
let (rejections_step, new_rejections_timeout) = self
394394
.block_rejection_timeout_steps
395395
.range((Included(0), Included(rejections)))

0 commit comments

Comments
 (0)