Skip to content

pages build and deployment #307

pages build and deployment

pages build and deployment #307

GitHub Actions / clippy succeeded Jul 31, 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.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

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