[INFO] cloning repository https://github.com/Jon0/usbdrivers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jon0/usbdrivers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJon0%2Fusbdrivers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJon0%2Fusbdrivers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a48811ff261e93446c5dd09f25bd61219742232 [INFO] checking Jon0/usbdrivers against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJon0%2Fusbdrivers" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jon0/usbdrivers on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jon0/usbdrivers [INFO] finished tweaking git repo https://github.com/Jon0/usbdrivers [INFO] tweaked toml for git repo https://github.com/Jon0/usbdrivers written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Jon0/usbdrivers already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c940f9ccb59b8ed444ccca89fe99750a77eeea916d30ab9399e417da9abd437f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c940f9ccb59b8ed444ccca89fe99750a77eeea916d30ab9399e417da9abd437f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c940f9ccb59b8ed444ccca89fe99750a77eeea916d30ab9399e417da9abd437f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c940f9ccb59b8ed444ccca89fe99750a77eeea916d30ab9399e417da9abd437f", kill_on_drop: false }` [INFO] [stdout] c940f9ccb59b8ed444ccca89fe99750a77eeea916d30ab9399e417da9abd437f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed940e7fa19f3f5b4f06f143ac08b8e6710bab0c6381075cf043142a83ac8158 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ed940e7fa19f3f5b4f06f143ac08b8e6710bab0c6381075cf043142a83ac8158", kill_on_drop: false }` [INFO] [stderr] Compiling build_const v0.2.1 [INFO] [stderr] Checking bit-vec v0.5.0 [INFO] [stderr] Compiling libusb-sys v0.2.3 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Checking bit-set v0.2.0 [INFO] [stderr] Checking libusb v0.3.0 [INFO] [stderr] Checking logictl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Seek` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Seek; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hasher16`, `crc16` [INFO] [stdout] --> src/main.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use crc::{crc16, Hasher16}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | if (poll_rate == 500) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:340:17 [INFO] [stdout] | [INFO] [stdout] 340 | else if (poll_rate == 333) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | else if (poll_rate == 250) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:442:14 [INFO] [stdout] | [INFO] [stdout] 442 | crc ^= ((data as u16) << 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:864:8 [INFO] [stdout] | [INFO] [stdout] 864 | if (config.print_endpoints) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:905:16 [INFO] [stdout] | [INFO] [stdout] 905 | if (parts.len() == 3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Seek` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::Seek; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::SeekFrom` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::SeekFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hasher16`, `crc16` [INFO] [stdout] --> src/main.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use crc::{crc16, Hasher16}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | if (poll_rate == 500) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:340:17 [INFO] [stdout] | [INFO] [stdout] 340 | else if (poll_rate == 333) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | else if (poll_rate == 250) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:442:14 [INFO] [stdout] | [INFO] [stdout] 442 | crc ^= ((data as u16) << 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:864:8 [INFO] [stdout] | [INFO] [stdout] 864 | if (config.print_endpoints) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:905:16 [INFO] [stdout] | [INFO] [stdout] 905 | if (parts.len() == 3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let result = self.handle.write_control(0x21, 9, 0x0210, 1, msg, Duration::from_secs(1)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let result = self.handle.write_control(0x21, 9, 0x0211, 1, msg, Duration::from_secs(1)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd_param` [INFO] [stdout] --> src/main.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let cmd_param = 0x1d; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cmd_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:443:11 [INFO] [stdout] | [INFO] [stdout] 443 | for x in 0..8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_0` [INFO] [stdout] --> src/main.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let command_type_0 = 0x0c; // root [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_1` [INFO] [stdout] --> src/main.rs:507:13 [INFO] [stdout] | [INFO] [stdout] 507 | let command_type_1 = 0x1c; // [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_2` [INFO] [stdout] --> src/main.rs:508:13 [INFO] [stdout] | [INFO] [stdout] 508 | let command_type_2 = 0x2c; // check connected [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_3` [INFO] [stdout] --> src/main.rs:509:13 [INFO] [stdout] | [INFO] [stdout] 509 | let command_type_3 = 0x3c; // color setting [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_4` [INFO] [stdout] --> src/main.rs:510:13 [INFO] [stdout] | [INFO] [stdout] 510 | let command_type_4 = 0x4c; // get status, returns err and current profile [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_6` [INFO] [stdout] --> src/main.rs:511:13 [INFO] [stdout] | [INFO] [stdout] 511 | let command_type_6 = 0x6c; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_7` [INFO] [stdout] --> src/main.rs:512:13 [INFO] [stdout] | [INFO] [stdout] 512 | let command_type_7 = 0x7c; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:589:13 [INFO] [stdout] | [INFO] [stdout] 589 | let result = self.handle.write_control(0x21, 9, 0x0210, 1, msg, Duration::from_secs(10)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:599:13 [INFO] [stdout] | [INFO] [stdout] 599 | let result = self.handle.write_control(0x21, 9, 0x0211, 1, msg, Duration::from_secs(10)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:605:13 [INFO] [stdout] | [INFO] [stdout] 605 | let result = self.handle.write_interrupt(self.write_address, msg, Duration::from_secs(10)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:650:34 [INFO] [stdout] | [INFO] [stdout] 650 | fn enable_profile(&mut self, n: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mode_id` is never read [INFO] [stdout] --> src/main.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | let mut mode_id = 0x00; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:760:18 [INFO] [stdout] | [INFO] [stdout] 760 | let (err, p) = self.send_4_status(device_index, feature_index, swid); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let result = self.handle.write_control(0x21, 9, 0x0210, 1, msg, Duration::from_secs(1)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let result = self.handle.write_control(0x21, 9, 0x0211, 1, msg, Duration::from_secs(1)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd_param` [INFO] [stdout] --> src/main.rs:316:13 [INFO] [stdout] | [INFO] [stdout] 316 | let cmd_param = 0x1d; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cmd_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:443:11 [INFO] [stdout] | [INFO] [stdout] 443 | for x in 0..8 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_0` [INFO] [stdout] --> src/main.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let command_type_0 = 0x0c; // root [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_1` [INFO] [stdout] --> src/main.rs:507:13 [INFO] [stdout] | [INFO] [stdout] 507 | let command_type_1 = 0x1c; // [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_2` [INFO] [stdout] --> src/main.rs:508:13 [INFO] [stdout] | [INFO] [stdout] 508 | let command_type_2 = 0x2c; // check connected [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_3` [INFO] [stdout] --> src/main.rs:509:13 [INFO] [stdout] | [INFO] [stdout] 509 | let command_type_3 = 0x3c; // color setting [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_4` [INFO] [stdout] --> src/main.rs:510:13 [INFO] [stdout] | [INFO] [stdout] 510 | let command_type_4 = 0x4c; // get status, returns err and current profile [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_6` [INFO] [stdout] --> src/main.rs:511:13 [INFO] [stdout] | [INFO] [stdout] 511 | let command_type_6 = 0x6c; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_type_7` [INFO] [stdout] --> src/main.rs:512:13 [INFO] [stdout] | [INFO] [stdout] 512 | let command_type_7 = 0x7c; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_type_7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:589:13 [INFO] [stdout] | [INFO] [stdout] 589 | let result = self.handle.write_control(0x21, 9, 0x0210, 1, msg, Duration::from_secs(10)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:599:13 [INFO] [stdout] | [INFO] [stdout] 599 | let result = self.handle.write_control(0x21, 9, 0x0211, 1, msg, Duration::from_secs(10)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:605:13 [INFO] [stdout] | [INFO] [stdout] 605 | let result = self.handle.write_interrupt(self.write_address, msg, Duration::from_secs(10)).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:650:34 [INFO] [stdout] | [INFO] [stdout] 650 | fn enable_profile(&mut self, n: u8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mode_id` is never read [INFO] [stdout] --> src/main.rs:684:13 [INFO] [stdout] | [INFO] [stdout] 684 | let mut mode_id = 0x00; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:760:18 [INFO] [stdout] | [INFO] [stdout] 760 | let (err, p) = self.send_4_status(device_index, feature_index, swid); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:695:13 [INFO] [stdout] | [INFO] [stdout] 695 | let mut unknown = 0x01; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:695:13 [INFO] [stdout] | [INFO] [stdout] 695 | let mut unknown = 0x01; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:930:9 [INFO] [stdout] | [INFO] [stdout] 930 | let mut context = libusb::Context::new().unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:931:9 [INFO] [stdout] | [INFO] [stdout] 931 | for mut device in context.devices().unwrap().iter() { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `write_address` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | write_address: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_1_get_features` [INFO] [stdout] --> src/main.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | fn send_1_get_features(&mut self, di: u8, fi: u8, swid: u8, offset: u8, param_b: u8, param_c: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_2_connected` [INFO] [stdout] --> src/main.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | fn send_2_connected(&mut self, di: u8, fi: u8, swid: u8, offset: u8, param_b: u8, param_c: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_5_read_record` [INFO] [stdout] --> src/main.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | fn send_5_read_record(&mut self, di: u8, fi: u8, swid: u8, id_a: u8, profile: u8, offset: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_magic_numbers` [INFO] [stdout] --> src/main.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | fn get_magic_numbers(&self) -> (u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_group_7_enable_profile` [INFO] [stdout] --> src/main.rs:456:8 [INFO] [stdout] | [INFO] [stdout] 456 | fn send_group_7_enable_profile(&mut self, di: u8, fi: u8, swid: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_init_commands` [INFO] [stdout] --> src/main.rs:500:8 [INFO] [stdout] | [INFO] [stdout] 500 | fn write_init_commands(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_ctl_7` [INFO] [stdout] --> src/main.rs:587:8 [INFO] [stdout] | [INFO] [stdout] 587 | fn send_ctl_7(&mut self, msg: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_ctl_20` [INFO] [stdout] --> src/main.rs:597:8 [INFO] [stdout] | [INFO] [stdout] 597 | fn send_ctl_20(&mut self, msg: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_msg` [INFO] [stdout] --> src/main.rs:604:8 [INFO] [stdout] | [INFO] [stdout] 604 | fn send_msg(&mut self, msg: &[u8]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enable_profile` [INFO] [stdout] --> src/main.rs:650:8 [INFO] [stdout] | [INFO] [stdout] 650 | fn enable_profile(&mut self, n: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:930:9 [INFO] [stdout] | [INFO] [stdout] 930 | let mut context = libusb::Context::new().unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `before_apply` [INFO] [stdout] --> src/main.rs:721:8 [INFO] [stdout] | [INFO] [stdout] 721 | fn before_apply(&mut self, profile: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Off` [INFO] [stdout] --> src/main.rs:820:5 [INFO] [stdout] | [INFO] [stdout] 820 | Off, Static { r: u8, g: u8, b: u8 }, Cycle { speed: u16, brightness: u8 } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cycle` [INFO] [stdout] --> src/main.rs:820:42 [INFO] [stdout] | [INFO] [stdout] 820 | Off, Static { r: u8, g: u8, b: u8 }, Cycle { speed: u16, brightness: u8 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:931:9 [INFO] [stdout] | [INFO] [stdout] 931 | for mut device in context.devices().unwrap().iter() { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `write_address` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | write_address: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_1_get_features` [INFO] [stdout] --> src/main.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | fn send_1_get_features(&mut self, di: u8, fi: u8, swid: u8, offset: u8, param_b: u8, param_c: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_2_connected` [INFO] [stdout] --> src/main.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | fn send_2_connected(&mut self, di: u8, fi: u8, swid: u8, offset: u8, param_b: u8, param_c: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_5_read_record` [INFO] [stdout] --> src/main.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | fn send_5_read_record(&mut self, di: u8, fi: u8, swid: u8, id_a: u8, profile: u8, offset: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_magic_numbers` [INFO] [stdout] --> src/main.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | fn get_magic_numbers(&self) -> (u8, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_group_7_enable_profile` [INFO] [stdout] --> src/main.rs:456:8 [INFO] [stdout] | [INFO] [stdout] 456 | fn send_group_7_enable_profile(&mut self, di: u8, fi: u8, swid: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_init_commands` [INFO] [stdout] --> src/main.rs:500:8 [INFO] [stdout] | [INFO] [stdout] 500 | fn write_init_commands(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_ctl_7` [INFO] [stdout] --> src/main.rs:587:8 [INFO] [stdout] | [INFO] [stdout] 587 | fn send_ctl_7(&mut self, msg: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_ctl_20` [INFO] [stdout] --> src/main.rs:597:8 [INFO] [stdout] | [INFO] [stdout] 597 | fn send_ctl_20(&mut self, msg: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_msg` [INFO] [stdout] --> src/main.rs:604:8 [INFO] [stdout] | [INFO] [stdout] 604 | fn send_msg(&mut self, msg: &[u8]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enable_profile` [INFO] [stdout] --> src/main.rs:650:8 [INFO] [stdout] | [INFO] [stdout] 650 | fn enable_profile(&mut self, n: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `before_apply` [INFO] [stdout] --> src/main.rs:721:8 [INFO] [stdout] | [INFO] [stdout] 721 | fn before_apply(&mut self, profile: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Off` [INFO] [stdout] --> src/main.rs:820:5 [INFO] [stdout] | [INFO] [stdout] 820 | Off, Static { r: u8, g: u8, b: u8 }, Cycle { speed: u16, brightness: u8 } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cycle` [INFO] [stdout] --> src/main.rs:820:42 [INFO] [stdout] | [INFO] [stdout] 820 | Off, Static { r: u8, g: u8, b: u8 }, Cycle { speed: u16, brightness: u8 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | self.handle.detach_kernel_driver(self.interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | self.handle.claim_interface(self.interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | self.handle.release_interface(self.interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | self.handle.detach_kernel_driver(self.interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | self.handle.claim_interface(self.interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | self.handle.release_interface(self.interface); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.16s [INFO] running `Command { std: "docker" "inspect" "ed940e7fa19f3f5b4f06f143ac08b8e6710bab0c6381075cf043142a83ac8158", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed940e7fa19f3f5b4f06f143ac08b8e6710bab0c6381075cf043142a83ac8158", kill_on_drop: false }` [INFO] [stdout] ed940e7fa19f3f5b4f06f143ac08b8e6710bab0c6381075cf043142a83ac8158