[INFO] fetching crate unimotion-rs 0.1.0... [INFO] building unimotion-rs-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate unimotion-rs 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate unimotion-rs 0.1.0 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 crates.io crate unimotion-rs 0.1.0 [INFO] finished tweaking crates.io crate unimotion-rs 0.1.0 [INFO] tweaked toml for crates.io crate unimotion-rs 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate unimotion-rs 0.1.0 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded CoreFoundation-sys v0.1.4 [INFO] [stderr] Downloaded IOKit-sys v0.1.5 [INFO] [stderr] Downloaded serialport v4.2.2 [INFO] [stderr] Downloaded bitflags v2.0.2 [INFO] [stderr] Downloaded macaddr v1.0.1 [INFO] [stderr] Downloaded mach v0.1.2 [INFO] [stderr] Downloaded libudev v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] a3fd609a456db43c96019bfbe147a680415c4dda4cf9a9002d7c322bb12c1525 [INFO] running `Command { std: "docker" "start" "-a" "a3fd609a456db43c96019bfbe147a680415c4dda4cf9a9002d7c322bb12c1525", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3fd609a456db43c96019bfbe147a680415c4dda4cf9a9002d7c322bb12c1525", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3fd609a456db43c96019bfbe147a680415c4dda4cf9a9002d7c322bb12c1525", kill_on_drop: false }` [INFO] [stdout] a3fd609a456db43c96019bfbe147a680415c4dda4cf9a9002d7c322bb12c1525 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 7368d75c4f4f35cf4565e887d9698907daa3da261970f0a107d44605067ddfb9 [INFO] running `Command { std: "docker" "start" "-a" "7368d75c4f4f35cf4565e887d9698907daa3da261970f0a107d44605067ddfb9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling bitflags v2.0.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling macaddr v1.0.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.11 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling libudev v0.3.0 [INFO] [stderr] Compiling serialport v4.2.2 [INFO] [stderr] Compiling unimotion-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alphabet` and `self` [INFO] [stdout] --> src/unimotion/device.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use base64::{Engine as _, alphabet, engine::{self, general_purpose}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/unimotion/mod.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_serde` [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[cfg(feature = "use_serde")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `serde` [INFO] [stdout] = help: consider adding `use_serde` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/unimotion/device.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | Err(e) => Err(line), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/unimotion/device.rs:433:17 [INFO] [stdout] | [INFO] [stdout] 433 | Err(e) => Err(line), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:442:27 [INFO] [stdout] | [INFO] [stdout] 442 | fn parse_data<'a>(value: [u8; 10]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:448:27 [INFO] [stdout] | [INFO] [stdout] 448 | fn parse_data<'a>(value: [u8; 12]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:454:27 [INFO] [stdout] | [INFO] [stdout] 454 | fn parse_data<'a>(value: [u8; 18]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | fn parse_data<'a>(value: [u8; 34]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:491:27 [INFO] [stdout] | [INFO] [stdout] 491 | fn parse_data<'a>(value: [u8; 36]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/unimotion/manager.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | Command::Config(id) => format!("_config"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/unimotion/manager.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(ch) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dm` [INFO] [stdout] --> src/unimotion/manager.rs:239:16 [INFO] [stdout] | [INFO] [stdout] 239 | Ok(dm) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en` [INFO] [stdout] --> src/unimotion/manager.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | Ok((en, duration)) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/unimotion/manager.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | Ok((en, duration)) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/unimotion/manager.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | match SINGLETON.clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | / loop { [INFO] [stdout] 22 | | std::thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 24 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.41s [INFO] running `Command { std: "docker" "inspect" "7368d75c4f4f35cf4565e887d9698907daa3da261970f0a107d44605067ddfb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7368d75c4f4f35cf4565e887d9698907daa3da261970f0a107d44605067ddfb9", kill_on_drop: false }` [INFO] [stdout] 7368d75c4f4f35cf4565e887d9698907daa3da261970f0a107d44605067ddfb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 3744f8c21d590c49c5edc5c8c6c5733ebbf4823ee1acfabd99876ace675147ab [INFO] running `Command { std: "docker" "start" "-a" "3744f8c21d590c49c5edc5c8c6c5733ebbf4823ee1acfabd99876ace675147ab", kill_on_drop: false }` [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alphabet` and `self` [INFO] [stdout] --> src/unimotion/device.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use base64::{Engine as _, alphabet, engine::{self, general_purpose}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/unimotion/mod.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_serde` [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[cfg(feature = "use_serde")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `serde` [INFO] [stdout] = help: consider adding `use_serde` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/unimotion/device.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | Err(e) => Err(line), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/unimotion/device.rs:433:17 [INFO] [stdout] | [INFO] [stdout] 433 | Err(e) => Err(line), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:442:27 [INFO] [stdout] | [INFO] [stdout] 442 | fn parse_data<'a>(value: [u8; 10]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:448:27 [INFO] [stdout] | [INFO] [stdout] 448 | fn parse_data<'a>(value: [u8; 12]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:454:27 [INFO] [stdout] | [INFO] [stdout] 454 | fn parse_data<'a>(value: [u8; 18]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | fn parse_data<'a>(value: [u8; 34]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:491:27 [INFO] [stdout] | [INFO] [stdout] 491 | fn parse_data<'a>(value: [u8; 36]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/unimotion/manager.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | Command::Config(id) => format!("_config"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unimotion-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/unimotion/manager.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(ch) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dm` [INFO] [stdout] --> src/unimotion/manager.rs:239:16 [INFO] [stdout] | [INFO] [stdout] 239 | Ok(dm) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en` [INFO] [stdout] --> src/unimotion/manager.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | Ok((en, duration)) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/unimotion/manager.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | Ok((en, duration)) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/unimotion/manager.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | match SINGLETON.clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | / loop { [INFO] [stdout] 22 | | std::thread::sleep(Duration::from_secs(1)); [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 24 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alphabet` and `self` [INFO] [stdout] --> src/unimotion/device.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use base64::{Engine as _, alphabet, engine::{self, general_purpose}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/unimotion/mod.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `use_serde` [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[cfg(feature = "use_serde")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `serde` [INFO] [stdout] = help: consider adding `use_serde` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr1` [INFO] [stdout] --> src/unimotion/device.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let addr1 = MacAddr6::from_str("E8:68:E7:53:55:DE"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addr1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr2` [INFO] [stdout] --> src/unimotion/device.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let addr2 = MacAddr6::nil(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr1` [INFO] [stdout] --> src/unimotion/device.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | Response::Device(2, addr1)) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addr1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr2` [INFO] [stdout] --> src/unimotion/device.rs:50:38 [INFO] [stdout] | [INFO] [stdout] 50 | Response::Device(23, addr2)) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_addr2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/unimotion/device.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | Err(e) => Err(line), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/unimotion/device.rs:433:17 [INFO] [stdout] | [INFO] [stdout] 433 | Err(e) => Err(line), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:442:27 [INFO] [stdout] | [INFO] [stdout] 442 | fn parse_data<'a>(value: [u8; 10]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:448:27 [INFO] [stdout] | [INFO] [stdout] 448 | fn parse_data<'a>(value: [u8; 12]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:454:27 [INFO] [stdout] | [INFO] [stdout] 454 | fn parse_data<'a>(value: [u8; 18]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | fn parse_data<'a>(value: [u8; 34]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/unimotion/device.rs:491:27 [INFO] [stdout] | [INFO] [stdout] 491 | fn parse_data<'a>(value: [u8; 36]) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/unimotion/manager.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | Command::Config(id) => format!("_config"), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/unimotion/manager.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | Ok(ch) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dm` [INFO] [stdout] --> src/unimotion/manager.rs:239:16 [INFO] [stdout] | [INFO] [stdout] 239 | Ok(dm) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en` [INFO] [stdout] --> src/unimotion/manager.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | Ok((en, duration)) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/unimotion/manager.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | Ok((en, duration)) => (), Err(_) => return Err(UnimotionError::CrossbeamChannelError), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/unimotion/manager.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | match SINGLETON.clone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "3744f8c21d590c49c5edc5c8c6c5733ebbf4823ee1acfabd99876ace675147ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3744f8c21d590c49c5edc5c8c6c5733ebbf4823ee1acfabd99876ace675147ab", kill_on_drop: false }` [INFO] [stdout] 3744f8c21d590c49c5edc5c8c6c5733ebbf4823ee1acfabd99876ace675147ab