Skip to content

Update Tree History #12

Update Tree History

Update Tree History #12

GitHub Actions / clippy succeeded Oct 27, 2023 in 0s

clippy

3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 3
Note 0
Help 0

Versions

  • rustc 1.74.0-nightly (4e78abb43 2023-08-28)
  • cargo 1.74.0-nightly (925280f02 2023-08-25)
  • clippy 0.1.73 (4e78abb 2023-08-28)

Annotations

Check warning on line 86 in crates/tree_availability/src/world_tree/tree_data.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `unwrap` on `root` after checking its variant with `is_none`

warning: called `unwrap` on `root` after checking its variant with `is_none`
  --> crates/tree_availability/src/world_tree/tree_data.rs:86:24
   |
79 |         if root.is_none() {
   |         ----------------- help: try: `if let Some(..) = root`
...
86 |             let root = root.unwrap();
   |                        ^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
   = note: `#[warn(clippy::unnecessary_unwrap)]` on by default

Check warning on line 1 in crates/tree_availability/src/world_tree/tree_updater.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `Ordering`

warning: unused import: `Ordering`
 --> crates/tree_availability/src/world_tree/tree_updater.rs:1:48
  |
1 | use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
  |                                                ^^^^^^^^

Check warning on line 2 in crates/tree_availability/src/world_tree/abi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `ethers::types::Selector`

warning: unused import: `ethers::types::Selector`
 --> crates/tree_availability/src/world_tree/abi.rs:2:5
  |
2 | use ethers::types::Selector;
  |     ^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default