Eclipse-IoT / eclipsecon-2022-hackathon

Firmware, application and documentation for the hackathon
7 stars 7 forks source link

Suppress unused variable warning in gateway.rs #31

Closed danbev closed 1 year ago

danbev commented 1 year ago

Currently, the following compiler warnings is generated:

$ cargo build --release
   Compiling eclipsecon-gateway v0.1.0 (/eclipsecon-2022-hackathon/infra/gateway)
warning: unused variable: `i`
   --> gateway/src/gateway.rs:170:49
    |
170 | ...                   for i in 0..3 {
    |                           ^ help: if this is intentional, prefix it with an underscore: `_i`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: `eclipsecon-gateway` (lib) generated 1 warning