Skip to content

refactor: refactor chain reorgs handling #104

refactor: refactor chain reorgs handling

refactor: refactor chain reorgs handling #104

Triggered via pull request June 18, 2024 17:10
Status Failure
Total duration 1m 47s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
fields `old_head_block`, `new_head_block`, `slot`, and `depth` are never read: src/clients/beacon/types.rs#L91
error: fields `old_head_block`, `new_head_block`, `slot`, and `depth` are never read --> src/clients/beacon/types.rs:91:9 | 90 | pub struct ChainReorgEventData { | ------------------- fields in this struct 91 | pub old_head_block: H256, | ^^^^^^^^^^^^^^ 92 | pub new_head_block: H256, | ^^^^^^^^^^^^^^ 93 | #[serde(deserialize_with = "deserialize_number")] 94 | pub slot: u32, | ^^^^ 95 | #[serde(deserialize_with = "deserialize_number")] 96 | pub depth: u32, | ^^^^^ | = note: `ChainReorgEventData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]`
fields `root` and `slot` are never read: src/slots_processor/mod.rs#L29
error: fields `root` and `slot` are never read --> src/slots_processor/mod.rs:29:9 | 28 | pub struct BlockData { | --------- fields in this struct 29 | pub root: H256, | ^^^^ 30 | pub slot: u32, | ^^^^ | = note: `BlockData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
you seem to be trying to use `&Box<T>`. Consider using just `&T`: src/context.rs#L20
error: you seem to be trying to use `&Box<T>`. Consider using just `&T` --> src/context.rs:20:32 | 20 | fn beacon_client(&self) -> &Box<dyn CommonBeaconClient>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn CommonBeaconClient` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box = note: `-D clippy::borrowed-box` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::borrowed_box)]`
you seem to be trying to use `&Box<T>`. Consider using just `&T`: src/context.rs#L21
error: you seem to be trying to use `&Box<T>`. Consider using just `&T` --> src/context.rs:21:34 | 21 | fn blobscan_client(&self) -> &Box<dyn CommonBlobscanClient>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn CommonBlobscanClient` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
lint
Clippy has exited with exit code 101