Skip to content

Commit e2415d3

Browse files
authored
Merge pull request #5696 from stacks-network/fix/clippy-ci-unnecessary-literal-unwrap
Fix clippy::unnecessary_literal_unwrap throughout stacks core
2 parents 13de1f9 + 5ebb3b1 commit e2415d3

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)