File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11[workspace .package ]
22edition = " 2021"
33license = " MIT"
4- rust-version = " 1.83 "
4+ rust-version = " 1.81 "
55authors = [" clabby" , " refcell" ]
66homepage = " https://github.com/anton-rs/kona"
77repository = " https://github.com/anton-rs/kona"
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7676 pkg-config
7777
7878# Install rust
79- ENV RUST_VERSION=1.83 .0
79+ ENV RUST_VERSION=1.81 .0
8080RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain ${RUST_VERSION} --component rust-src
8181ENV PATH="/root/.cargo/bin:${PATH}"
8282
Original file line number Diff line number Diff line change 1+ #![ allow( clippy:: unnecessary_map_or) ]
12//! The [`AttributesBuilder`] and it's default implementation.
23
34use crate :: {
@@ -214,7 +215,7 @@ async fn derive_deposits(
214215 for l in r. logs . iter ( ) {
215216 let curr_index = global_index;
216217 global_index += 1 ;
217- if l. data . topics ( ) . first ( ) . is_none_or ( |i| * i != DEPOSIT_EVENT_ABI_HASH ) {
218+ if l. data . topics ( ) . first ( ) . map_or ( true , |i| * i != DEPOSIT_EVENT_ABI_HASH ) {
218219 continue ;
219220 }
220221 if l. address != deposit_contract {
Original file line number Diff line number Diff line change 1+ #![ allow( clippy:: unnecessary_map_or) ]
12//! Contains the [BatchValidator] stage.
23
34use super :: NextBatchProvider ;
5556 /// ## Returns
5657 /// - `true` if the origin is behind the parent origin.
5758 fn origin_behind ( & self , parent : & L2BlockInfo ) -> bool {
58- self . prev . origin ( ) . is_none_or ( |origin| origin. number < parent. l1_origin . number )
59+ self . prev . origin ( ) . map_or ( true , |origin| origin. number < parent. l1_origin . number )
5960 }
6061
6162 /// Updates the [BatchValidator]'s view of the L1 origin blocks.
You can’t perform that action at this time.
0 commit comments