[INFO] cloning repository https://github.com/atilag/zigbee-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/atilag/zigbee-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fatilag%2Fzigbee-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fatilag%2Fzigbee-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e1e2467f1bbf828407287bf3363a012f00033b4 [INFO] building atilag/zigbee-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fatilag%2Fzigbee-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/atilag/zigbee-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/atilag/zigbee-rs [INFO] finished tweaking git repo https://github.com/atilag/zigbee-rs [INFO] tweaked toml for git repo https://github.com/atilag/zigbee-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/atilag/zigbee-rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serial v0.3.4 [INFO] [stderr] Downloaded libc v0.2.17 [INFO] [stderr] Downloaded miow v0.1.3 [INFO] [stderr] Downloaded ioctl-rs v0.1.5 [INFO] [stderr] Downloaded mio v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 921b0397c0b4264047fb91d673e8be17ce884b1fc235e240b5e3423ce0d050b6 [INFO] running `Command { std: "docker" "start" "-a" "921b0397c0b4264047fb91d673e8be17ce884b1fc235e240b5e3423ce0d050b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "921b0397c0b4264047fb91d673e8be17ce884b1fc235e240b5e3423ce0d050b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "921b0397c0b4264047fb91d673e8be17ce884b1fc235e240b5e3423ce0d050b6", kill_on_drop: false }` [INFO] [stdout] 921b0397c0b4264047fb91d673e8be17ce884b1fc235e240b5e3423ce0d050b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3a80c434186ff1db84d5ec49267df95fd4e7ed8d9ee8d13750df90a8f8a1419 [INFO] running `Command { std: "docker" "start" "-a" "a3a80c434186ff1db84d5ec49267df95fd4e7ed8d9ee8d13750df90a8f8a1419", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.17 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling cfg-if v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling log v0.3.6 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling lazycell v0.4.0 [INFO] [stderr] Compiling slab v0.3.0 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling lazy_static v0.1.16 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling net2 v0.2.26 [INFO] [stderr] Compiling termios v0.2.2 [INFO] [stderr] Compiling ioctl-rs v0.1.5 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling serial v0.3.4 [INFO] [stderr] Compiling nix v0.7.0 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling env_logger v0.3.5 [INFO] [stderr] Compiling mio v0.6.1 [INFO] [stderr] Compiling zigbee v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[macro_use] extern crate lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::*` [INFO] [stdout] --> src/zigbee_modem.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::io::*` [INFO] [stdout] --> src/zigbee_modem.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::unix::io::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serial::SerialPort` [INFO] [stdout] --> src/zigbee_modem.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serial::SerialPort; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/zigbee_modem.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Weak` [INFO] [stdout] --> src/zigbee_modem.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::rc::Weak; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zigbee_modem::ZigbeeModem` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use zigbee_modem::ZigbeeModem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LittleEndian` and `ReadBytesExt` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use byteorder::{LittleEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serial::SerialPort` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serial::SerialPort; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Weak` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::rc::Weak; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `hashmap` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | macro_rules! hashmap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UTILITY_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | UTILITY_HEADER = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtilityHeader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_COMMISSIONING_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | NETWORK_COMMISSIONING_HEADER = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkCommissioningHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SECURITY_CONFIG_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | SECURITY_CONFIG_HEADER = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SecurityConfigHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ZIGBEE_SUPPORT_CONFIG_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ZIGBEE_SUPPORT_CONFIG_HEADER = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZigbeeSupportConfigHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ZDO_MESSAGES_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | ZDO_MESSAGES_HEADER = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZdoMessagesHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ZCL_MESSAGES_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | ZCL_MESSAGES_HEADER = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZclMessagesHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GENERAL_CLUSTERS_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | GENERAL_CLUSTERS_HEADER = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GeneralClustersHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HA_CLUSTERS_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | HA_CLUSTERS_HEADER = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HaClustersHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BOOTLOAD_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | BOOTLOAD_HEADER = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BootloadHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OTA_BOOTLOAD_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | OTA_BOOTLOAD_HEADER = 0xB0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OtaBootloadHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DIAGNOSTICS_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | DIAGNOSTICS_HEADER = 0xD1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DiagnosticsHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MODULE_INFO_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | MODULE_INFO_REQUEST = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ModuleInfoRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MODULE_INFO_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | MODULE_INFO_RESPONSE = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ModuleInfoResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BOOTLOADER_VERSION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | BOOTLOADER_VERSION_REQUEST = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BootloaderVersionRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BOOTLOADER_VERSION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | BOOTLOADER_VERSION_RESPONSE = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BootloaderVersionResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_COUNT_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | APPLICATION_VERSION_COUNT_REQUEST = 0x06, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionCountRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_COUNT_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | APPLICATION_VERSION_COUNT_RESPONSE = 0x07, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionCountResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | APPLICATION_VERSION_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | APPLICATION_VERSION_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RESTORE_DEFAULTS` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | RESTORE_DEFAULTS = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RestoreDefaults` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HOST_STARTUP_READY` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | HOST_STARTUP_READY = 0x20, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HostStartupReady` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STARTUP_SYNC_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | STARTUP_SYNC_REQUEST = 0x21, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StartupSyncRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STARTUP_SYNC_COMPLETE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | STARTUP_SYNC_COMPLETE = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StartupSyncComplete` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANTENNA_CONFIGURATION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | ANTENNA_CONFIGURATION_REQUEST = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AntennaConfigurationRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANTENNA_CONFIGURATION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | ANTENNA_CONFIGURATION_RESPONSE = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AntennaConfigurationResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANTENNA_CONFIGURATION_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | ANTENNA_CONFIGURATION_WRITE = 0x25, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AntennaConfigurationWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LED_CONFIGURATION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | LED_CONFIGURATION_REQUEST = 0x26, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LedConfigurationRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LED_CONFIGURATION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | LED_CONFIGURATION_RESPONSE = 0x27, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LedConfigurationResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LED_CONFIGURATION_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | LED_CONFIGURATION_WRITE = 0x28, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LedConfigurationWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SERIAL_ACK_CONFIG_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | SERIAL_ACK_CONFIG_WRITE = 0x30, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SerialAckConfigWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SERIAL_ACK_CONFIG_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | SERIAL_ACK_CONFIG_REQUEST = 0x31, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SerialAckConfigRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SERIAL_ACK_CONFIG_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | SERIAL_ACK_CONFIG_RESPONSE = 0x32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SerialAckConfigResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MANUFACTURER_ID_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | MANUFACTURER_ID_REQUEST = 0x40, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ManufacturerIdRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MANUFACTURER_ID_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | MANUFACTURER_ID_RESPONSE = 0x41, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ManufacturerIdResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MANUFACTURER_ID_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | MANUFACTURER_ID_WRITE = 0x42, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ManufacturerIdWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_PARAMETERS_REQUEST_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | SLEEPY_PARAMETERS_REQUEST_CMD = 0x50, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyParametersRequestCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_PARAMETERS_RESPONSE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | SLEEPY_PARAMETERS_RESPONSE_CMD = 0x51, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyParametersResponseCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_PARAMETERS_WRITE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | SLEEPY_PARAMETERS_WRITE_CMD = 0x52, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyParametersWriteCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_HIBERNATE_DURATION_REQUEST_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | SLEEPY_HIBERNATE_DURATION_REQUEST_CMD = 0x53, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyHibernateDurationRequestCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_HIBERNATE_DURATION_RESPONSE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | SLEEPY_HIBERNATE_DURATION_RESPONSE_CMD = 0x54, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyHibernateDurationResponseCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_HIBERNATE_DURATION_WRITE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | SLEEPY_HIBERNATE_DURATION_WRITE_CMD = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyHibernateDurationWriteCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STATUS_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | STATUS_RESPONSE = 0x80, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StatusResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JOIN_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | JOIN_NETWORK = 0x00, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `JoinNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FORM_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | FORM_NETWORK = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FormNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PERMIT_JOIN` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | PERMIT_JOIN = 0x03, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `PermitJoin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LEAVE_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | LEAVE_NETWORK = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LeaveNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REJOIN_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | REJOIN_NETWORK = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RejoinNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_STATUS_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | NETWORK_STATUS_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkStatusRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_STATUS_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | NETWORK_STATUS_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkStatusResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TRUST_CENTER_DEVICE_UPDATE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | TRUST_CENTER_DEVICE_UPDATE = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `TrustCenterDeviceUpdate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_AUTO_JOIN` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | NETWORK_AUTO_JOIN = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkAutoJoin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_RESET_AUTO_JOIN` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | NETWORK_RESET_AUTO_JOIN = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkResetAutoJoin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/serial_protocols/serial_port_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::*` [INFO] [stdout] --> src/zigbee_serial_port.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use mio::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::unix::EventedFd` [INFO] [stdout] --> src/zigbee_serial_port.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mio::unix::EventedFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Ref` [INFO] [stdout] --> src/zigbee_serial_port.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::cell::Ref; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc` [INFO] [stdout] --> src/zigbee_serial_port.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zigbee_modem::ZigbeeModem` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use zigbee_modem::ZigbeeModem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:223:64 [INFO] [stdout] | [INFO] [stdout] 223 | fn startup(mut serial_port: Rc>, msg: &MmbZigbeeModemMessage) -> Result<(), String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:223:16 [INFO] [stdout] | [INFO] [stdout] 223 | fn startup(mut serial_port: Rc>, msg: &MmbZigbeeModemMessage) -> Result<(), String> { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:238:21 [INFO] [stdout] | [INFO] [stdout] 238 | fn form_network(msg: &MmbZigbeeModemMessage) -> Result<(),String>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:242:21 [INFO] [stdout] | [INFO] [stdout] 242 | fn join_network(msg: &MmbZigbeeModemMessage) -> Result<(),String>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut zigbee_device = zigbee_modem::ZigbeeModem::::new(zigbee_device_name, MmbZigbeeModemProtocol::new()); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | enum PrimaryHeader { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 53 | UTILITY_HEADER = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 54 | NETWORK_COMMISSIONING_HEADER = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | SECURITY_CONFIG_HEADER = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | ZIGBEE_SUPPORT_CONFIG_HEADER = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 57 | ZDO_MESSAGES_HEADER = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 58 | ZCL_MESSAGES_HEADER = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | GENERAL_CLUSTERS_HEADER = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | HA_CLUSTERS_HEADER = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 61 | BOOTLOAD_HEADER = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | OTA_BOOTLOAD_HEADER = 0xB0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | DIAGNOSTICS_HEADER = 0xD1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrimaryHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 72 | enum HeaderUtilities { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 73 | RESET = 0x00, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 74 | MODULE_INFO_REQUEST = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | MODULE_INFO_RESPONSE = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | BOOTLOADER_VERSION_REQUEST = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | BOOTLOADER_VERSION_RESPONSE = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | APPLICATION_VERSION_COUNT_REQUEST = 0x06, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | APPLICATION_VERSION_COUNT_RESPONSE = 0x07, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | APPLICATION_VERSION_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 81 | APPLICATION_VERSION_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | RESTORE_DEFAULTS = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | HOST_STARTUP_READY = 0x20, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | STARTUP_SYNC_REQUEST = 0x21, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | STARTUP_SYNC_COMPLETE = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 86 | ANTENNA_CONFIGURATION_REQUEST = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | ANTENNA_CONFIGURATION_RESPONSE = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | ANTENNA_CONFIGURATION_WRITE = 0x25, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | LED_CONFIGURATION_REQUEST = 0x26, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | LED_CONFIGURATION_RESPONSE = 0x27, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | LED_CONFIGURATION_WRITE = 0x28, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | SERIAL_ACK_CONFIG_WRITE = 0x30, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 93 | SERIAL_ACK_CONFIG_REQUEST = 0x31, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 94 | SERIAL_ACK_CONFIG_RESPONSE = 0x32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | MANUFACTURER_ID_REQUEST = 0x40, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | MANUFACTURER_ID_RESPONSE = 0x41, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | MANUFACTURER_ID_WRITE = 0x42, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | SLEEPY_PARAMETERS_REQUEST_CMD = 0x50, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | SLEEPY_PARAMETERS_RESPONSE_CMD = 0x51, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | SLEEPY_PARAMETERS_WRITE_CMD = 0x52, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | SLEEPY_HIBERNATE_DURATION_REQUEST_CMD = 0x53, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 102 | SLEEPY_HIBERNATE_DURATION_RESPONSE_CMD = 0x54, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | SLEEPY_HIBERNATE_DURATION_WRITE_CMD = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 104 | STATUS_RESPONSE = 0x80, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | ERROR = 0xE0, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderUtilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | enum HeaderNetworkCommissioning { [INFO] [stdout] | -------------------------- variants in this enum [INFO] [stdout] 115 | JOIN_NETWORK = 0x00, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 116 | FORM_NETWORK = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 117 | PERMIT_JOIN = 0x03, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 118 | LEAVE_NETWORK = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 119 | REJOIN_NETWORK = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 120 | NETWORK_STATUS_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 121 | NETWORK_STATUS_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 122 | TRUST_CENTER_DEVICE_UPDATE = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 123 | NETWORK_AUTO_JOIN = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 124 | NETWORK_RESET_AUTO_JOIN = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderNetworkCommissioning` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_of_frame` and `frame_seq_number` are never read [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:163:2 [INFO] [stdout] | [INFO] [stdout] 162 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 163 | start_of_frame: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | frame_seq_number: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `payload` and `checksum` are never read [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:189:2 [INFO] [stdout] | [INFO] [stdout] 187 | struct MmbZigbeeModemMessage{ [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 188 | header: Header, [INFO] [stdout] 189 | payload: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 190 | checksum: [u8;2] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `INITIALIZING` and `INITIALIZED` are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub enum MmbZigbeeModemState { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 253 | UNINITIALIZED, [INFO] [stdout] 254 | INITIALIZING, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 255 | INITIALIZED [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 263 | pub struct MmbZigbeeModemProtocol { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 264 | state: MmbZigbeeModemState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 267 | impl MmbZigbeeModemProtocol { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 305 | fn write(&mut self, buff: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.96s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "a3a80c434186ff1db84d5ec49267df95fd4e7ed8d9ee8d13750df90a8f8a1419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3a80c434186ff1db84d5ec49267df95fd4e7ed8d9ee8d13750df90a8f8a1419", kill_on_drop: false }` [INFO] [stdout] a3a80c434186ff1db84d5ec49267df95fd4e7ed8d9ee8d13750df90a8f8a1419 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c54283b465fd4a590eaa8c6ca560d46aaff763c2013c9b9cc43ad71f1995166 [INFO] running `Command { std: "docker" "start" "-a" "5c54283b465fd4a590eaa8c6ca560d46aaff763c2013c9b9cc43ad71f1995166", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling zigbee v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[macro_use] extern crate lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::*` [INFO] [stdout] --> src/zigbee_modem.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::io::*` [INFO] [stdout] --> src/zigbee_modem.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::unix::io::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serial::SerialPort` [INFO] [stdout] --> src/zigbee_modem.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serial::SerialPort; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/zigbee_modem.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Weak` [INFO] [stdout] --> src/zigbee_modem.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::rc::Weak; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zigbee_modem::ZigbeeModem` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use zigbee_modem::ZigbeeModem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LittleEndian` and `ReadBytesExt` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use byteorder::{LittleEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serial::SerialPort` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use serial::SerialPort; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Weak` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::rc::Weak; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `hashmap` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | macro_rules! hashmap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UTILITY_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | UTILITY_HEADER = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtilityHeader` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_COMMISSIONING_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | NETWORK_COMMISSIONING_HEADER = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkCommissioningHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SECURITY_CONFIG_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | SECURITY_CONFIG_HEADER = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SecurityConfigHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ZIGBEE_SUPPORT_CONFIG_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ZIGBEE_SUPPORT_CONFIG_HEADER = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZigbeeSupportConfigHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ZDO_MESSAGES_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | ZDO_MESSAGES_HEADER = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZdoMessagesHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ZCL_MESSAGES_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | ZCL_MESSAGES_HEADER = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZclMessagesHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GENERAL_CLUSTERS_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | GENERAL_CLUSTERS_HEADER = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GeneralClustersHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HA_CLUSTERS_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | HA_CLUSTERS_HEADER = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HaClustersHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BOOTLOAD_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | BOOTLOAD_HEADER = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BootloadHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OTA_BOOTLOAD_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | OTA_BOOTLOAD_HEADER = 0xB0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OtaBootloadHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DIAGNOSTICS_HEADER` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | DIAGNOSTICS_HEADER = 0xD1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `DiagnosticsHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MODULE_INFO_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | MODULE_INFO_REQUEST = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ModuleInfoRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MODULE_INFO_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | MODULE_INFO_RESPONSE = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ModuleInfoResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BOOTLOADER_VERSION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | BOOTLOADER_VERSION_REQUEST = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BootloaderVersionRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BOOTLOADER_VERSION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | BOOTLOADER_VERSION_RESPONSE = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BootloaderVersionResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_COUNT_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | APPLICATION_VERSION_COUNT_REQUEST = 0x06, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionCountRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_COUNT_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | APPLICATION_VERSION_COUNT_RESPONSE = 0x07, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionCountResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | APPLICATION_VERSION_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `APPLICATION_VERSION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | APPLICATION_VERSION_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ApplicationVersionResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RESTORE_DEFAULTS` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | RESTORE_DEFAULTS = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RestoreDefaults` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HOST_STARTUP_READY` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | HOST_STARTUP_READY = 0x20, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HostStartupReady` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STARTUP_SYNC_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | STARTUP_SYNC_REQUEST = 0x21, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StartupSyncRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STARTUP_SYNC_COMPLETE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | STARTUP_SYNC_COMPLETE = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StartupSyncComplete` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANTENNA_CONFIGURATION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | ANTENNA_CONFIGURATION_REQUEST = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AntennaConfigurationRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANTENNA_CONFIGURATION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | ANTENNA_CONFIGURATION_RESPONSE = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AntennaConfigurationResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANTENNA_CONFIGURATION_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | ANTENNA_CONFIGURATION_WRITE = 0x25, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AntennaConfigurationWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LED_CONFIGURATION_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | LED_CONFIGURATION_REQUEST = 0x26, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LedConfigurationRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LED_CONFIGURATION_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | LED_CONFIGURATION_RESPONSE = 0x27, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LedConfigurationResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LED_CONFIGURATION_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | LED_CONFIGURATION_WRITE = 0x28, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LedConfigurationWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SERIAL_ACK_CONFIG_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | SERIAL_ACK_CONFIG_WRITE = 0x30, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SerialAckConfigWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SERIAL_ACK_CONFIG_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | SERIAL_ACK_CONFIG_REQUEST = 0x31, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SerialAckConfigRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SERIAL_ACK_CONFIG_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | SERIAL_ACK_CONFIG_RESPONSE = 0x32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SerialAckConfigResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MANUFACTURER_ID_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | MANUFACTURER_ID_REQUEST = 0x40, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ManufacturerIdRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MANUFACTURER_ID_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | MANUFACTURER_ID_RESPONSE = 0x41, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ManufacturerIdResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `MANUFACTURER_ID_WRITE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | MANUFACTURER_ID_WRITE = 0x42, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ManufacturerIdWrite` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_PARAMETERS_REQUEST_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | SLEEPY_PARAMETERS_REQUEST_CMD = 0x50, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyParametersRequestCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_PARAMETERS_RESPONSE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | SLEEPY_PARAMETERS_RESPONSE_CMD = 0x51, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyParametersResponseCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_PARAMETERS_WRITE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | SLEEPY_PARAMETERS_WRITE_CMD = 0x52, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyParametersWriteCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_HIBERNATE_DURATION_REQUEST_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | SLEEPY_HIBERNATE_DURATION_REQUEST_CMD = 0x53, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyHibernateDurationRequestCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_HIBERNATE_DURATION_RESPONSE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | SLEEPY_HIBERNATE_DURATION_RESPONSE_CMD = 0x54, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyHibernateDurationResponseCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SLEEPY_HIBERNATE_DURATION_WRITE_CMD` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | SLEEPY_HIBERNATE_DURATION_WRITE_CMD = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SleepyHibernateDurationWriteCmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `STATUS_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | STATUS_RESPONSE = 0x80, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `StatusResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JOIN_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | JOIN_NETWORK = 0x00, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `JoinNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FORM_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | FORM_NETWORK = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FormNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PERMIT_JOIN` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | PERMIT_JOIN = 0x03, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `PermitJoin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LEAVE_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | LEAVE_NETWORK = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LeaveNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `REJOIN_NETWORK` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | REJOIN_NETWORK = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RejoinNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_STATUS_REQUEST` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | NETWORK_STATUS_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkStatusRequest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_STATUS_RESPONSE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | NETWORK_STATUS_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkStatusResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `TRUST_CENTER_DEVICE_UPDATE` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | TRUST_CENTER_DEVICE_UPDATE = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `TrustCenterDeviceUpdate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_AUTO_JOIN` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | NETWORK_AUTO_JOIN = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkAutoJoin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NETWORK_RESET_AUTO_JOIN` should have an upper camel case name [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | NETWORK_RESET_AUTO_JOIN = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NetworkResetAutoJoin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/serial_protocols/serial_port_parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::*` [INFO] [stdout] --> src/zigbee_serial_port.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use mio::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mio::unix::EventedFd` [INFO] [stdout] --> src/zigbee_serial_port.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use mio::unix::EventedFd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::Ref` [INFO] [stdout] --> src/zigbee_serial_port.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::cell::Ref; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc` [INFO] [stdout] --> src/zigbee_serial_port.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zigbee_modem::ZigbeeModem` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use zigbee_modem::ZigbeeModem; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:223:64 [INFO] [stdout] | [INFO] [stdout] 223 | fn startup(mut serial_port: Rc>, msg: &MmbZigbeeModemMessage) -> Result<(), String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:223:16 [INFO] [stdout] | [INFO] [stdout] 223 | fn startup(mut serial_port: Rc>, msg: &MmbZigbeeModemMessage) -> Result<(), String> { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:238:21 [INFO] [stdout] | [INFO] [stdout] 238 | fn form_network(msg: &MmbZigbeeModemMessage) -> Result<(),String>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:242:21 [INFO] [stdout] | [INFO] [stdout] 242 | fn join_network(msg: &MmbZigbeeModemMessage) -> Result<(),String>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut zigbee_device = zigbee_modem::ZigbeeModem::::new(zigbee_device_name, MmbZigbeeModemProtocol::new()); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | enum PrimaryHeader { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 53 | UTILITY_HEADER = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 54 | NETWORK_COMMISSIONING_HEADER = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 55 | SECURITY_CONFIG_HEADER = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | ZIGBEE_SUPPORT_CONFIG_HEADER = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 57 | ZDO_MESSAGES_HEADER = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 58 | ZCL_MESSAGES_HEADER = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | GENERAL_CLUSTERS_HEADER = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | HA_CLUSTERS_HEADER = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 61 | BOOTLOAD_HEADER = 0x0B, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | OTA_BOOTLOAD_HEADER = 0xB0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | DIAGNOSTICS_HEADER = 0xD1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrimaryHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 72 | enum HeaderUtilities { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 73 | RESET = 0x00, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 74 | MODULE_INFO_REQUEST = 0x02, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | MODULE_INFO_RESPONSE = 0x03, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | BOOTLOADER_VERSION_REQUEST = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 77 | BOOTLOADER_VERSION_RESPONSE = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | APPLICATION_VERSION_COUNT_REQUEST = 0x06, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 79 | APPLICATION_VERSION_COUNT_RESPONSE = 0x07, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | APPLICATION_VERSION_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 81 | APPLICATION_VERSION_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | RESTORE_DEFAULTS = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | HOST_STARTUP_READY = 0x20, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | STARTUP_SYNC_REQUEST = 0x21, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 85 | STARTUP_SYNC_COMPLETE = 0x22, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 86 | ANTENNA_CONFIGURATION_REQUEST = 0x23, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 87 | ANTENNA_CONFIGURATION_RESPONSE = 0x24, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 88 | ANTENNA_CONFIGURATION_WRITE = 0x25, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 89 | LED_CONFIGURATION_REQUEST = 0x26, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | LED_CONFIGURATION_RESPONSE = 0x27, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | LED_CONFIGURATION_WRITE = 0x28, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | SERIAL_ACK_CONFIG_WRITE = 0x30, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 93 | SERIAL_ACK_CONFIG_REQUEST = 0x31, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 94 | SERIAL_ACK_CONFIG_RESPONSE = 0x32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 95 | MANUFACTURER_ID_REQUEST = 0x40, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | MANUFACTURER_ID_RESPONSE = 0x41, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 97 | MANUFACTURER_ID_WRITE = 0x42, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | SLEEPY_PARAMETERS_REQUEST_CMD = 0x50, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | SLEEPY_PARAMETERS_RESPONSE_CMD = 0x51, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | SLEEPY_PARAMETERS_WRITE_CMD = 0x52, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | SLEEPY_HIBERNATE_DURATION_REQUEST_CMD = 0x53, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 102 | SLEEPY_HIBERNATE_DURATION_RESPONSE_CMD = 0x54, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 103 | SLEEPY_HIBERNATE_DURATION_WRITE_CMD = 0x55, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 104 | STATUS_RESPONSE = 0x80, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 105 | ERROR = 0xE0, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderUtilities` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 114 | enum HeaderNetworkCommissioning { [INFO] [stdout] | -------------------------- variants in this enum [INFO] [stdout] 115 | JOIN_NETWORK = 0x00, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 116 | FORM_NETWORK = 0x01, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 117 | PERMIT_JOIN = 0x03, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 118 | LEAVE_NETWORK = 0x04, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 119 | REJOIN_NETWORK = 0x05, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 120 | NETWORK_STATUS_REQUEST = 0x08, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 121 | NETWORK_STATUS_RESPONSE = 0x09, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 122 | TRUST_CENTER_DEVICE_UPDATE = 0x10, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 123 | NETWORK_AUTO_JOIN = 0x11, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 124 | NETWORK_RESET_AUTO_JOIN = 0x12, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderNetworkCommissioning` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_of_frame` and `frame_seq_number` are never read [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:163:2 [INFO] [stdout] | [INFO] [stdout] 162 | struct Header { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 163 | start_of_frame: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | frame_seq_number: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `payload` and `checksum` are never read [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:189:2 [INFO] [stdout] | [INFO] [stdout] 187 | struct MmbZigbeeModemMessage{ [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 188 | header: Header, [INFO] [stdout] 189 | payload: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 190 | checksum: [u8;2] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `INITIALIZING` and `INITIALIZED` are never constructed [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub enum MmbZigbeeModemState { [INFO] [stdout] | ------------------- variants in this enum [INFO] [stdout] 253 | UNINITIALIZED, [INFO] [stdout] 254 | INITIALIZING, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 255 | INITIALIZED [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 263 | pub struct MmbZigbeeModemProtocol { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 264 | state: MmbZigbeeModemState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write` is never used [INFO] [stdout] --> src/serial_protocols/mmb_networks_modem_protocol.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 267 | impl MmbZigbeeModemProtocol { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 305 | fn write(&mut self, buff: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "5c54283b465fd4a590eaa8c6ca560d46aaff763c2013c9b9cc43ad71f1995166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c54283b465fd4a590eaa8c6ca560d46aaff763c2013c9b9cc43ad71f1995166", kill_on_drop: false }` [INFO] [stdout] 5c54283b465fd4a590eaa8c6ca560d46aaff763c2013c9b9cc43ad71f1995166