Skip to content

Commit 0a7be2b

Browse files
committed
remove unnecessary cast
1 parent afb2d40 commit 0a7be2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chain/src/txhashset/txhashset.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ impl<'a> Extension<'a> {
13631363
/// Once the PIBD set is downloaded, we need to ensure that the respective leaf sets
13641364
/// match the bitmap (particularly in the case of outputs being spent after a PIBD catch-up)
13651365
pub fn update_leaf_sets(&mut self, bitmap: &Bitmap) -> Result<(), Error> {
1366-
let flipped = bitmap.flip(0u32..bitmap.maximum().unwrap() as u32 + 1);
1366+
let flipped = bitmap.flip(0u32..bitmap.maximum().unwrap() + 1);
13671367
for spent_pmmr_index in flipped.iter() {
13681368
let pos0 = pmmr::insertion_to_pmmr_index(spent_pmmr_index.into());
13691369
self.output_pmmr.remove_from_leaf_set(pos0);

0 commit comments

Comments
 (0)