Skip to content

Commit 79ba40b

Browse files
committed
f msrv
1 parent 55c2050 commit 79ba40b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-block-sync/src/init.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ where
186186
}
187187
let results = MultiResultFuturePoller::new(fetch_block_futures).await.into_iter();
188188

189-
let mut fetched_blocks = [const { None }; MAX_BLOCKS_AT_ONCE];
189+
const NO_BLOCK: Option<(u32, crate::poll::ValidatedBlock)> = None;
190+
let mut fetched_blocks = [NO_BLOCK; MAX_BLOCKS_AT_ONCE];
190191
for ((header, block_res), result) in results.into_iter().zip(fetched_blocks.iter_mut()) {
191192
*result = Some((header.height, block_res?));
192193
}

0 commit comments

Comments
 (0)