File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
[workspace .package ]
2
2
edition = " 2021"
3
3
license = " MIT"
4
- rust-version = " 1.83 "
4
+ rust-version = " 1.81 "
5
5
authors = [" clabby" , " refcell" ]
6
6
homepage = " https://github.com/anton-rs/kona"
7
7
repository = " 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 \
76
76
pkg-config
77
77
78
78
# Install rust
79
- ENV RUST_VERSION=1.83 .0
79
+ ENV RUST_VERSION=1.81 .0
80
80
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain ${RUST_VERSION} --component rust-src
81
81
ENV PATH="/root/.cargo/bin:${PATH}"
82
82
Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: unnecessary_map_or) ]
1
2
//! The [`AttributesBuilder`] and it's default implementation.
2
3
3
4
use crate :: {
@@ -214,7 +215,7 @@ async fn derive_deposits(
214
215
for l in r. logs . iter ( ) {
215
216
let curr_index = global_index;
216
217
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 ) {
218
219
continue ;
219
220
}
220
221
if l. address != deposit_contract {
Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: unnecessary_map_or) ]
1
2
//! Contains the [BatchValidator] stage.
2
3
3
4
use super :: NextBatchProvider ;
55
56
/// ## Returns
56
57
/// - `true` if the origin is behind the parent origin.
57
58
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 )
59
60
}
60
61
61
62
/// Updates the [BatchValidator]'s view of the L1 origin blocks.
You can’t perform that action at this time.
0 commit comments