PRO-382: tree-availability-service and state-bridge-service-docs #20
GitHub Actions / clippy
succeeded
Oct 31, 2023 in 0s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
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 108 in crates/tree_availability/src/world_tree/tree_data.rs
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:108:24
|
101 | if root.is_none() {
| ----------------- help: try: `if let Some(..) = root`
...
108 | 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
github-actions / clippy
unused import: `AtomicBool`
warning: unused import: `AtomicBool`
--> crates/tree_availability/src/world_tree/tree_updater.rs:1:25
|
1 | use std::sync::atomic::{AtomicBool, AtomicU64};
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Loading