Skip to content

PRO-382: tree-availability-service and state-bridge-service-docs #42

PRO-382: tree-availability-service and state-bridge-service-docs

PRO-382: tree-availability-service and state-bridge-service-docs #42

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

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
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 112 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:112:24
    |
105 |         if root.is_none() {
    |         ----------------- help: try: `if let Some(..) = root`
...
112 |             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