Skip to content

pages build and deployment #352

pages build and deployment

pages build and deployment #352

GitHub Actions / clippy succeeded Dec 30, 2024 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.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check warning on line 76 in applehat/src/ui.rs

See this annotation in the file changed.

@github-actions 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

Check warning on line 301 in homie-controller/src/values.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

direct implementation of `ToString`

warning: direct implementation of `ToString`
   --> homie-controller/src/values.rs:297:1
    |
297 | / impl ToString for EnumValue {
298 | |     fn to_string(&self) -> String {
299 | |         self.0.to_string()
300 | |     }
301 | | }
    | |_^
    |
    = help: prefer implementing `Display` instead
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
    = note: `#[warn(clippy::to_string_trait_impl)]` on by default