[INFO] cloning repository https://github.com/lucasdietrich/caniot-rust-controller [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasdietrich/caniot-rust-controller" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasdietrich%2Fcaniot-rust-controller", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasdietrich%2Fcaniot-rust-controller'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 530b4c33722f6303e989021cdc7a3e8b97847266 [INFO] checking lucasdietrich/caniot-rust-controller against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasdietrich%2Fcaniot-rust-controller" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lucasdietrich/caniot-rust-controller [INFO] finished tweaking git repo https://github.com/lucasdietrich/caniot-rust-controller [INFO] tweaked toml for git repo https://github.com/lucasdietrich/caniot-rust-controller written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucasdietrich/caniot-rust-controller on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lucasdietrich/caniot-rust-controller already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/lucasdietrich/zephyr-linux-ble-copro.git` [INFO] [stderr] Updating git repository `https://github.com/socketcan-rs/socketcan-rs.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded byte_conv v0.1.1 [INFO] [stderr] Downloaded ref-cast-impl v1.0.20 [INFO] [stderr] Downloaded as-any v0.3.1 [INFO] [stderr] Downloaded ref-cast v1.0.20 [INFO] [stderr] Downloaded toml v0.8.0 [INFO] [stderr] Downloaded cron v0.15.0 [INFO] [stderr] Downloaded num-derive v0.4.0 [INFO] [stderr] Downloaded toml_edit v0.20.0 [INFO] [stderr] Downloaded tonic-web v0.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 020974e19e99a6f5013dcd7ca4b355cd9ae7987feb0f338eb86152889a02345d [INFO] running `Command { std: "docker" "start" "-a" "020974e19e99a6f5013dcd7ca4b355cd9ae7987feb0f338eb86152889a02345d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "020974e19e99a6f5013dcd7ca4b355cd9ae7987feb0f338eb86152889a02345d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "020974e19e99a6f5013dcd7ca4b355cd9ae7987feb0f338eb86152889a02345d", kill_on_drop: false }` [INFO] [stdout] 020974e19e99a6f5013dcd7ca4b355cd9ae7987feb0f338eb86152889a02345d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e78a51b734664e416142a317e611f20b37c218e803b8b9ef90285da5161786d [INFO] running `Command { std: "docker" "start" "-a" "6e78a51b734664e416142a317e611f20b37c218e803b8b9ef90285da5161786d", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking futures-core v0.3.28 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Checking value-bag v1.8.1 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking slab v0.4.9 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Compiling zerocopy v0.7.34 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling ref-cast v1.0.20 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking parking v2.1.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling ref-cast-impl v1.0.20 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling prettyplease v0.2.15 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-executor v0.3.28 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking httparse v1.8.0 [INFO] [stderr] Compiling prost-derive v0.12.4 [INFO] [stderr] Checking typenum v1.17.0 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.10 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Compiling home v0.5.5 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling prost v0.12.4 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling prost-types v0.12.4 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Compiling sqlx-sqlite v0.8.2 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling neli-proc-macros v0.1.3 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Compiling prost-build v0.12.1 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Checking serde_spanned v0.6.3 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking winnow v0.5.15 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling clap_derive v4.5.8 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling caniot-controller v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking time-core v0.1.4 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling num-derive v0.4.0 [INFO] [stderr] Checking aho-corasick v1.0.5 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking iana-time-zone v0.1.58 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking memoffset v0.7.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking embedded-can v0.4.1 [INFO] [stderr] Checking clap_builder v4.5.8 [INFO] [stderr] Checking tower-http v0.4.4 [INFO] [stderr] Checking async-std v1.12.0 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking toml_edit v0.20.0 [INFO] [stderr] Checking neli v0.6.4 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking ubyte v0.10.3 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking byte_conv v0.1.1 [INFO] [stderr] Checking winnow v0.6.24 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking toml v0.8.0 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking cron v0.15.0 [INFO] [stderr] Checking sqlx v0.8.2 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking clap v4.5.8 [INFO] [stderr] Checking socketcan v2.0.0 (https://github.com/socketcan-rs/socketcan-rs.git?rev=c3004f0d7c600cd3964cd8655fd26f670d7c87e7#c3004f0d) [INFO] [stderr] Checking ble-copro-stream-server v0.1.0 (https://github.com/lucasdietrich/zephyr-linux-ble-copro.git?rev=9f462c90b3b7cfb2229270d4bae113665be7a40c#9f462c90) [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Checking tonic-web v0.11.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking as-any v0.3.1 [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/bus/iface.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Socket` [INFO] [stdout] --> src/bus/can.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use socketcan::{CanDataFrame, CanFilter, CanFrame, Socket, SocketOptions}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caniot` [INFO] [stdout] --> src/ha/attic.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | if let Some(caniot) = shared [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caniot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ble` [INFO] [stdout] --> src/ha/attic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(ble) = shared [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ble` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diff` [INFO] [stdout] --> src/ha/attic.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let diff = Instant::now().duration_since(instant); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/grpcserver/legacy/legacy.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LegacyCaniotController { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 15 | pub shared: SharedHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegacyCaniotController` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DeviceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dev` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Dev { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ha/ha.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Ha { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 25 | shared: Arc, [INFO] [stdout] 26 | config: HaConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/attributes.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Attribute` [INFO] [stdout] 7 | pub enum Attribute { [INFO] [stdout] | --------- `Attribute` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Xps` [INFO] [stdout] 144 | pub enum Xps { [INFO] [stdout] | --- `Xps` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:194:50 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TS` [INFO] [stdout] 195 | pub enum TS { [INFO] [stdout] | -- `TS` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TSP` [INFO] [stdout] 204 | pub enum TSP { [INFO] [stdout] | --- `TSP` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/error.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [INFO] [stdout] 7 | pub enum ErrorCode { [INFO] [stdout] | --------- `ErrorCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Type` [INFO] [stdout] 13 | pub enum Type { [INFO] [stdout] | ---- `Type` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Action` [INFO] [stdout] 19 | pub enum Action { [INFO] [stdout] | ------ `Action` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] 25 | pub enum Direction { [INFO] [stdout] | --------- `Direction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Endpoint` [INFO] [stdout] 31 | pub enum Endpoint { [INFO] [stdout] | -------- `Endpoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/controller/caniot_device/jobs.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database/db.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> examples/dt.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_local` [INFO] [stdout] --> examples/dt.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let time_local = local.time(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_local` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/bus/iface.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `command::BoardClassCommand` [INFO] [stdout] --> src/caniot/classes/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use command::BoardClassCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AlarmDetectionTimeRangeConfig` [INFO] [stdout] --> src/controller/caniot_nodes_controllers/alarms/mod.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | pub use config::{AlarmConfig, AlarmDetectionTimeRangeConfig, AlarmPartialConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp_severity` [INFO] [stdout] --> src/controller/core/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub use alert::{cmp_severity, DeviceAlert, DeviceAlertType}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Socket` [INFO] [stdout] --> src/bus/can.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use socketcan::{CanDataFrame, CanFilter, CanFrame, Socket, SocketOptions}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/bus/iface.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/bus/iface.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caniot` [INFO] [stdout] --> src/ha/attic.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | if let Some(caniot) = shared [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caniot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ble` [INFO] [stdout] --> src/ha/attic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(ble) = shared [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ble` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diff` [INFO] [stdout] --> src/ha/attic.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let diff = Instant::now().duration_since(instant); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_response` is never used [INFO] [stdout] --> src/caniot/classes/traits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait ClassTelemetryTrait: AsPayload { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] 26 | fn to_response(self) -> caniot::ResponseData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_raw_vec` and `try_from_raw` are never used [INFO] [stdout] --> src/caniot/payloads.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait AsPayload: [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 131 | fn to_raw_vec(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn try_from_raw(data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorData` is never constructed [INFO] [stdout] --> src/caniot/protocol/response.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct ErrorData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AlertSeverity` is never used [INFO] [stdout] --> src/controller/caniot_controller/alerts.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum AlertSeverity { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AlertType` is never used [INFO] [stdout] --> src/controller/caniot_controller/alerts.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AlertType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alert` is never constructed [INFO] [stdout] --> src/controller/caniot_controller/alerts.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Alert { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `desired_duration` is never read [INFO] [stdout] --> src/controller/caniot_nodes_controllers/alarms/outdoor.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct NightLightsContext { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | pub desired_duration: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NightLightsContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlarmDetectionTimeRangeConfig` is never constructed [INFO] [stdout] --> src/controller/caniot_nodes_controllers/alarms/config.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct AlarmDetectionTimeRangeConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `GetActive`, `Activate`, `Deactivate`, and `SetActive` are never constructed [INFO] [stdout] --> src/controller/caniot_nodes_controllers/demo.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum DemoAction { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 90 | GetActive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 91 | Activate, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | Deactivate, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | SetActive(bool), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DemoAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/controller/caniot_nodes_controllers/demo.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | Active(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DemoActionResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 98 - Active(bool), [INFO] [stdout] 98 + Active(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status_telemetry_req_sent` is never read [INFO] [stdout] --> src/controller/caniot_nodes_controllers/heaters/heaters.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct HeatersController { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub status_telemetry_req_sent: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeatersController` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CaniotControllerName` and `BleMac` are never constructed [INFO] [stdout] --> src/controller/core/device_filtering.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum FilterCriteria { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 33 | CaniotId(caniot::DeviceId), [INFO] [stdout] 34 | CaniotControllerName(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | BleMac(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FilterCriteria` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ByTag` is never constructed [INFO] [stdout] --> src/controller/core/device_filtering.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum DeviceFilter { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 43 | ByTag(String), // Devices having a specific tag [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceFilter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceStatsEntry` is never constructed [INFO] [stdout] --> src/controller/handle.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct DeviceStatsEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SettingValue` is never used [INFO] [stdout] --> src/database/setting.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum SettingValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SettingAction` is never constructed [INFO] [stdout] --> src/database/setting.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SettingAction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `write`, `delete`, `is_write`, and `is_delete` are never used [INFO] [stdout] --> src/database/setting.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl SettingAction { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | pub fn write(name: &'static str, value: SettingValue) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn delete(name: &'static str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn is_write(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_delete(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `local_to_prost_timestamp` is never used [INFO] [stdout] --> src/grpcserver/helper.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn local_to_prost_timestamp(dt: &DateTime) -> Timestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/grpcserver/legacy/legacy.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LegacyCaniotController { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 15 | pub shared: SharedHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegacyCaniotController` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DeviceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dev` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Dev { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ha/ha.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Ha { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 25 | shared: Arc, [INFO] [stdout] 26 | config: HaConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FirmwareStatus` is never used [INFO] [stdout] --> src/internal/firmware.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FirmwareStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Settings` is never constructed [INFO] [stdout] --> src/internal/settings.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Settings { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rt` is never read [INFO] [stdout] --> src/shared.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Shared { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 18 | /// The Tokio runtime [INFO] [stdout] 19 | pub rt: Arc, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shared` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerStats` is never constructed [INFO] [stdout] --> src/shared.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ServerStats {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shortcuts_sorted` is never used [INFO] [stdout] --> src/ui.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl UiConfig { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 41 | pub fn shortcuts_sorted(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_expirable` is never used [INFO] [stdout] --> src/utils/expirable.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ExpirableTrait [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | fn is_expirable(&self, now: &Self::Instant) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_changed` and `is_unchanged` are never used [INFO] [stdout] --> src/utils/monitorable_state.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait MonitorableResultTrait { [INFO] [stdout] | ---------------------- methods in this trait [INFO] [stdout] 89 | fn has_changed(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn is_unchanged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Controller` is never constructed [INFO] [stdout] --> src/utils/prometheus.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum DeviceLabel { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 66 | Name(String), [INFO] [stdout] 67 | Controller(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceLabel` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeRange` is never constructed [INFO] [stdout] --> src/utils/time_range.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TimeRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `contains`, `contains_utc`, and `contains_local` are never used [INFO] [stdout] --> src/utils/time_range.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TimeRange { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(lower_bound: NaiveTime, upper_bound: NaiveTime) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn contains(&self, time: &NaiveTime) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn contains_utc(&self, utc: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn contains_local(&self, local: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/attributes.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Attribute` [INFO] [stdout] 7 | pub enum Attribute { [INFO] [stdout] | --------- `Attribute` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Xps` [INFO] [stdout] 144 | pub enum Xps { [INFO] [stdout] | --- `Xps` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:194:50 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TS` [INFO] [stdout] 195 | pub enum TS { [INFO] [stdout] | -- `TS` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TSP` [INFO] [stdout] 204 | pub enum TSP { [INFO] [stdout] | --- `TSP` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/error.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [INFO] [stdout] 7 | pub enum ErrorCode { [INFO] [stdout] | --------- `ErrorCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Type` [INFO] [stdout] 13 | pub enum Type { [INFO] [stdout] | ---- `Type` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Action` [INFO] [stdout] 19 | pub enum Action { [INFO] [stdout] | ------ `Action` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] 25 | pub enum Direction { [INFO] [stdout] | --------- `Direction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Endpoint` [INFO] [stdout] 31 | pub enum Endpoint { [INFO] [stdout] | -------- `Endpoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/controller/caniot_device/jobs.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database/db.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Socket` [INFO] [stdout] --> src/bus/can.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use socketcan::{CanDataFrame, CanFilter, CanFrame, Socket, SocketOptions}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Socket` [INFO] [stdout] --> src/bus/can.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use socketcan::{CanDataFrame, CanFilter, CanFrame, Socket, SocketOptions}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caniot` [INFO] [stdout] --> src/ha/attic.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | if let Some(caniot) = shared [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caniot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ble` [INFO] [stdout] --> src/ha/attic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(ble) = shared [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ble` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diff` [INFO] [stdout] --> src/ha/attic.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let diff = Instant::now().duration_since(instant); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/grpcserver/legacy/legacy.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LegacyCaniotController { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 15 | pub shared: SharedHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegacyCaniotController` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DeviceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dev` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Dev { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ha/ha.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Ha { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 25 | shared: Arc, [INFO] [stdout] 26 | config: HaConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/attributes.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Attribute` [INFO] [stdout] 7 | pub enum Attribute { [INFO] [stdout] | --------- `Attribute` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Xps` [INFO] [stdout] 144 | pub enum Xps { [INFO] [stdout] | --- `Xps` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:194:50 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TS` [INFO] [stdout] 195 | pub enum TS { [INFO] [stdout] | -- `TS` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TSP` [INFO] [stdout] 204 | pub enum TSP { [INFO] [stdout] | --- `TSP` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/error.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [INFO] [stdout] 7 | pub enum ErrorCode { [INFO] [stdout] | --------- `ErrorCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Type` [INFO] [stdout] 13 | pub enum Type { [INFO] [stdout] | ---- `Type` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Action` [INFO] [stdout] 19 | pub enum Action { [INFO] [stdout] | ------ `Action` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] 25 | pub enum Direction { [INFO] [stdout] | --------- `Direction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Endpoint` [INFO] [stdout] 31 | pub enum Endpoint { [INFO] [stdout] | -------- `Endpoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/controller/caniot_device/jobs.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database/db.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caniot` [INFO] [stdout] --> src/ha/attic.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | if let Some(caniot) = shared [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caniot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ble` [INFO] [stdout] --> src/ha/attic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(ble) = shared [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ble` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diff` [INFO] [stdout] --> src/ha/attic.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let diff = Instant::now().duration_since(instant); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1s` [INFO] [stdout] --> src/utils/expirable_test.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let now_1s = now + Duration::seconds(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1m` [INFO] [stdout] --> src/utils/expirable_test.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let now_1m = now + Duration::minutes(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1h` [INFO] [stdout] --> src/utils/expirable_test.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let now_1h = now + Duration::hours(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1j` [INFO] [stdout] --> src/utils/expirable_test.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let now_1j = now + Duration::days(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/grpcserver/legacy/legacy.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LegacyCaniotController { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 15 | pub shared: SharedHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegacyCaniotController` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DeviceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dev` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Dev { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ha/ha.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Ha { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 25 | shared: Arc, [INFO] [stdout] 26 | config: HaConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChronoExpirable` is never constructed [INFO] [stdout] --> src/utils/expirable_test.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct ChronoExpirable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StdExpirable` is never constructed [INFO] [stdout] --> src/utils/expirable_test.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct StdExpirable { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/attributes.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Attribute` [INFO] [stdout] 7 | pub enum Attribute { [INFO] [stdout] | --------- `Attribute` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Xps` [INFO] [stdout] 144 | pub enum Xps { [INFO] [stdout] | --- `Xps` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:194:50 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TS` [INFO] [stdout] 195 | pub enum TS { [INFO] [stdout] | -- `TS` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TSP` [INFO] [stdout] 204 | pub enum TSP { [INFO] [stdout] | --- `TSP` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/error.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [INFO] [stdout] 7 | pub enum ErrorCode { [INFO] [stdout] | --------- `ErrorCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Type` [INFO] [stdout] 13 | pub enum Type { [INFO] [stdout] | ---- `Type` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Action` [INFO] [stdout] 19 | pub enum Action { [INFO] [stdout] | ------ `Action` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] 25 | pub enum Direction { [INFO] [stdout] | --------- `Direction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Endpoint` [INFO] [stdout] 31 | pub enum Endpoint { [INFO] [stdout] | -------- `Endpoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/controller/caniot_device/jobs.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database/db.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/bus/iface.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `command::BoardClassCommand` [INFO] [stdout] --> src/caniot/classes/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use command::BoardClassCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AlarmDetectionTimeRangeConfig` [INFO] [stdout] --> src/controller/caniot_nodes_controllers/alarms/mod.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | pub use config::{AlarmConfig, AlarmDetectionTimeRangeConfig, AlarmPartialConfig}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp_severity` [INFO] [stdout] --> src/controller/core/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub use alert::{cmp_severity, DeviceAlert, DeviceAlertType}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Socket` [INFO] [stdout] --> src/bus/can.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use socketcan::{CanDataFrame, CanFilter, CanFrame, Socket, SocketOptions}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caniot` [INFO] [stdout] --> src/ha/attic.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | if let Some(caniot) = shared [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caniot` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ble` [INFO] [stdout] --> src/ha/attic.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | if let Some(ble) = shared [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ble` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `diff` [INFO] [stdout] --> src/ha/attic.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let diff = Instant::now().duration_since(instant); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1s` [INFO] [stdout] --> src/utils/expirable_test.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let now_1s = now + Duration::seconds(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1m` [INFO] [stdout] --> src/utils/expirable_test.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let now_1m = now + Duration::minutes(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1h` [INFO] [stdout] --> src/utils/expirable_test.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let now_1h = now + Duration::hours(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_1j` [INFO] [stdout] --> src/utils/expirable_test.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let now_1j = now + Duration::days(1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_1j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_response` is never used [INFO] [stdout] --> src/caniot/classes/traits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub trait ClassTelemetryTrait: AsPayload { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] 26 | fn to_response(self) -> caniot::ResponseData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorData` is never constructed [INFO] [stdout] --> src/caniot/protocol/response.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct ErrorData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AlertSeverity` is never used [INFO] [stdout] --> src/controller/caniot_controller/alerts.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum AlertSeverity { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AlertType` is never used [INFO] [stdout] --> src/controller/caniot_controller/alerts.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum AlertType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Alert` is never constructed [INFO] [stdout] --> src/controller/caniot_controller/alerts.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Alert { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `desired_duration` is never read [INFO] [stdout] --> src/controller/caniot_nodes_controllers/alarms/outdoor.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct NightLightsContext { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 67 | pub desired_duration: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NightLightsContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlarmDetectionTimeRangeConfig` is never constructed [INFO] [stdout] --> src/controller/caniot_nodes_controllers/alarms/config.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct AlarmDetectionTimeRangeConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `GetActive`, `Activate`, `Deactivate`, and `SetActive` are never constructed [INFO] [stdout] --> src/controller/caniot_nodes_controllers/demo.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum DemoAction { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 90 | GetActive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 91 | Activate, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | Deactivate, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | SetActive(bool), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DemoAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/controller/caniot_nodes_controllers/demo.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | Active(bool), [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DemoActionResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 98 - Active(bool), [INFO] [stdout] 98 + Active(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status_telemetry_req_sent` is never read [INFO] [stdout] --> src/controller/caniot_nodes_controllers/heaters/heaters.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct HeatersController { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub status_telemetry_req_sent: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeatersController` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `CaniotControllerName` and `BleMac` are never constructed [INFO] [stdout] --> src/controller/core/device_filtering.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum FilterCriteria { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 33 | CaniotId(caniot::DeviceId), [INFO] [stdout] 34 | CaniotControllerName(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | BleMac(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FilterCriteria` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ByTag` is never constructed [INFO] [stdout] --> src/controller/core/device_filtering.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub enum DeviceFilter { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 43 | ByTag(String), // Devices having a specific tag [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceFilter` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceStatsEntry` is never constructed [INFO] [stdout] --> src/controller/handle.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct DeviceStatsEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SettingValue` is never used [INFO] [stdout] --> src/database/setting.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum SettingValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SettingAction` is never constructed [INFO] [stdout] --> src/database/setting.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SettingAction { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `write`, `delete`, `is_write`, and `is_delete` are never used [INFO] [stdout] --> src/database/setting.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl SettingAction { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | pub fn write(name: &'static str, value: SettingValue) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn delete(name: &'static str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn is_write(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_delete(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `local_to_prost_timestamp` is never used [INFO] [stdout] --> src/grpcserver/helper.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn local_to_prost_timestamp(dt: &DateTime) -> Timestamp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shared` is never read [INFO] [stdout] --> src/grpcserver/legacy/legacy.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LegacyCaniotController { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 15 | pub shared: SharedHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegacyCaniotController` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceResponse` is never constructed [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct DeviceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dev` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/caniot-controller-2fd53137b9c8ac5b/out/legacy.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Dev { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ha/ha.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Ha { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 25 | shared: Arc, [INFO] [stdout] 26 | config: HaConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FirmwareStatus` is never used [INFO] [stdout] --> src/internal/firmware.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum FirmwareStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Settings` is never constructed [INFO] [stdout] --> src/internal/settings.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Settings { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `rt` is never read [INFO] [stdout] --> src/shared.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Shared { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 18 | /// The Tokio runtime [INFO] [stdout] 19 | pub rt: Arc, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shared` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerStats` is never constructed [INFO] [stdout] --> src/shared.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ServerStats {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shortcuts_sorted` is never used [INFO] [stdout] --> src/ui.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl UiConfig { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 41 | pub fn shortcuts_sorted(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `has_changed` and `is_unchanged` are never used [INFO] [stdout] --> src/utils/monitorable_state.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub trait MonitorableResultTrait { [INFO] [stdout] | ---------------------- methods in this trait [INFO] [stdout] 89 | fn has_changed(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn is_unchanged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Controller` is never constructed [INFO] [stdout] --> src/utils/prometheus.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum DeviceLabel { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 66 | Name(String), [INFO] [stdout] 67 | Controller(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DeviceLabel` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains_utc` is never used [INFO] [stdout] --> src/utils/time_range.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TimeRange { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn contains_utc(&self, utc: &DateTime) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChronoExpirable` is never constructed [INFO] [stdout] --> src/utils/expirable_test.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct ChronoExpirable { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StdExpirable` is never constructed [INFO] [stdout] --> src/utils/expirable_test.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct StdExpirable { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/attributes.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Attribute` [INFO] [stdout] 7 | pub enum Attribute { [INFO] [stdout] | --------- `Attribute` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:143:50 [INFO] [stdout] | [INFO] [stdout] 143 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Xps` [INFO] [stdout] 144 | pub enum Xps { [INFO] [stdout] | --- `Xps` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:194:50 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TS` [INFO] [stdout] 195 | pub enum TS { [INFO] [stdout] | -- `TS` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_TSP` [INFO] [stdout] 204 | pub enum TSP { [INFO] [stdout] | --- `TSP` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:50 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/datatypes.rs:212:65 [INFO] [stdout] | [INFO] [stdout] 212 | #[derive(Debug, Default, Clone, Copy, PartialEq, FromPrimitive, ToPrimitive)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_ToPrimitive_FOR_HeatingMode` [INFO] [stdout] 213 | pub enum HeatingMode { [INFO] [stdout] | ----------- `HeatingMode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/error.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_ErrorCode` [INFO] [stdout] 7 | pub enum ErrorCode { [INFO] [stdout] | --------- `ErrorCode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:12:45 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Type` [INFO] [stdout] 13 | pub enum Type { [INFO] [stdout] | ---- `Type` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:18:45 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Action` [INFO] [stdout] 19 | pub enum Action { [INFO] [stdout] | ------ `Action` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Direction` [INFO] [stdout] 25 | pub enum Direction { [INFO] [stdout] | --------- `Direction` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/caniot/protocol/types.rs:30:45 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Serialize)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Endpoint` [INFO] [stdout] 31 | pub enum Endpoint { [INFO] [stdout] | -------- `Endpoint` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/controller/caniot_device/jobs.rs:246:31 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 246 | pub fn monitor_ready_jobs(&mut self, now: &DateTime) -> JobsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/database/db.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_settings_store(&self) -> SettingsStore<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 40s [INFO] running `Command { std: "docker" "inspect" "6e78a51b734664e416142a317e611f20b37c218e803b8b9ef90285da5161786d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e78a51b734664e416142a317e611f20b37c218e803b8b9ef90285da5161786d", kill_on_drop: false }` [INFO] [stdout] 6e78a51b734664e416142a317e611f20b37c218e803b8b9ef90285da5161786d