Skip to content

Commit f3d9607

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

File tree

1 file changed

+2
-3
lines changed
  • stackslib/src/chainstate/stacks/index/test

1 file changed

+2
-3
lines changed

stackslib/src/chainstate/stacks/index/test/marf.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,11 +1882,10 @@ fn marf_insert_flush_to_different_block() {
18821882
];
18831883
let next_block_header = if (i + 1) % 256 == 0 {
18841884
// next block
1885-
Some(BlockHeaderHash::from_bytes(&[
1885+
BlockHeaderHash::from_bytes(&[
18861886
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
18871887
2, 2, i0 as u8, i1 as u8,
1888-
]))
1889-
.unwrap()
1888+
])
18901889
} else {
18911890
None
18921891
};

0 commit comments

Comments
 (0)