Skip to content

Commit fd8fa74

Browse files
committed
Remove redundant as u32
Ord::max already returns a u32, casting to u32 is redundant. Remove `as u32` on the u32 value.
1 parent b2b7c22 commit fd8fa74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration_test/tests/mining.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn submit_empty_block(node: &Node, bt: &mtype::GetBlockTemplate) {
134134
version: block::Version::default(),
135135
prev_blockhash: bt.previous_block_hash,
136136
merkle_root: TxMerkleNode::all_zeros(),
137-
time: Ord::max(bt.min_time, std::time::UNIX_EPOCH.elapsed().expect("elapsed").as_secs() as u32) as u32,
137+
time: Ord::max(bt.min_time, std::time::UNIX_EPOCH.elapsed().expect("elapsed").as_secs() as u32),
138138
bits: bt.bits,
139139
nonce: 0,
140140
},

0 commit comments

Comments
 (0)