Fix panic displaying BTHome V2 reading with packet ID. #1423
GitHub Actions / clippy
succeeded
May 15, 2024 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.77.2 (25ef9e3d8 2024-04-09)
- cargo 1.77.2 (e52e36006 2024-03-26)
- clippy 0.1.77 (25ef9e3 2024-04-09)
Annotations
Check warning on line 76 in applehat/src/ui.rs
github-actions / clippy
accessing first element with `nodes.get(0)`
warning: accessing first element with `nodes.get(0)`
--> applehat/src/ui.rs:76:52
|
76 | if let Some((device_id, node_id, _)) = nodes.get(0) {
| ^^^^^^^^^^^^ help: try: `nodes.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
Loading