[INFO] cloning repository https://github.com/crossdot/steelcfg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/crossdot/steelcfg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrossdot%2Fsteelcfg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrossdot%2Fsteelcfg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72ced9ca83bce37161773f81fb523e2b181b876a [INFO] checking crossdot/steelcfg against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrossdot%2Fsteelcfg" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crossdot/steelcfg on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/crossdot/steelcfg [INFO] finished tweaking git repo https://github.com/crossdot/steelcfg [INFO] tweaked toml for git repo https://github.com/crossdot/steelcfg written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/crossdot/steelcfg already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2eb4e32ec0a1a817d63f3731ec2c7135a1b4016ac94970077169c8ea529cefb6 [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" "2eb4e32ec0a1a817d63f3731ec2c7135a1b4016ac94970077169c8ea529cefb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2eb4e32ec0a1a817d63f3731ec2c7135a1b4016ac94970077169c8ea529cefb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2eb4e32ec0a1a817d63f3731ec2c7135a1b4016ac94970077169c8ea529cefb6", kill_on_drop: false }` [INFO] [stdout] 2eb4e32ec0a1a817d63f3731ec2c7135a1b4016ac94970077169c8ea529cefb6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 11cbfd4babfc6cb1f26c0d3cf0d6f9d59748b7cd8a27f25d6e44573b034d6b38 [INFO] running `Command { std: "docker" "start" "-a" "11cbfd4babfc6cb1f26c0d3cf0d6f9d59748b7cd8a27f25d6e44573b034d6b38", kill_on_drop: false }` [INFO] [stderr] Compiling hidapi v0.4.1 [INFO] [stderr] Checking steelcfg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `byteorder` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use byteorder; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | if (device_info.vendor_id == VID && device_info.product_id == PID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `byteorder` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use byteorder; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | if (device_info.vendor_id == VID && device_info.product_id == PID) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `led_index` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_led_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `colors` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:72 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn write_dpi(hid_device: &HidDevice, res_index: u8, dpi: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res_index` [INFO] [stdout] --> src/protocol/proto_rival.rs:30:42 [INFO] [stdout] | [INFO] [stdout] 30 | fn write_dpi(hid_device: &HidDevice, res_index: u8, dpi: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dpi` [INFO] [stdout] --> src/protocol/proto_rival.rs:30:57 [INFO] [stdout] | [INFO] [stdout] 30 | fn write_dpi(hid_device: &HidDevice, res_index: u8, dpi: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dpi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | fn write_report_rate(hid_device: &HidDevice, hz: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hz` [INFO] [stdout] --> src/protocol/proto_rival.rs:33:50 [INFO] [stdout] | [INFO] [stdout] 33 | fn write_report_rate(hid_device: &HidDevice, hz: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | fn save(hid_device: &HidDevice) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/protocol/proto_rival310.rs:26:72 [INFO] [stdout] | [INFO] [stdout] 26 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival310.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival310.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival310.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | fn save(hid_device: &HidDevice) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let res = hid_device.send_feature_report(&data).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/utils.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_big_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/utils.rs:9:39 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn from_little_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `led_index` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_led_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `colors` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/protocol/proto_rival.rs:27:72 [INFO] [stdout] | [INFO] [stdout] 27 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn write_dpi(hid_device: &HidDevice, res_index: u8, dpi: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res_index` [INFO] [stdout] --> src/protocol/proto_rival.rs:30:42 [INFO] [stdout] | [INFO] [stdout] 30 | fn write_dpi(hid_device: &HidDevice, res_index: u8, dpi: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dpi` [INFO] [stdout] --> src/protocol/proto_rival.rs:30:57 [INFO] [stdout] | [INFO] [stdout] 30 | fn write_dpi(hid_device: &HidDevice, res_index: u8, dpi: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dpi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | fn write_report_rate(hid_device: &HidDevice, hz: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hz` [INFO] [stdout] --> src/protocol/proto_rival.rs:33:50 [INFO] [stdout] | [INFO] [stdout] 33 | fn write_report_rate(hid_device: &HidDevice, hz: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | fn save(hid_device: &HidDevice) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/protocol/proto_rival310.rs:26:72 [INFO] [stdout] | [INFO] [stdout] 26 | fn write_led(hid_device: &HidDevice, led_index: u8, colors: &[u8], speed: u16) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival310.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival310.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hid_device` [INFO] [stdout] --> src/protocol/proto_rival310.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | fn save(hid_device: &HidDevice) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hid_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let res = hid_device.send_feature_report(&data).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/protocol/proto_rival500.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let res = hid_device.write(&buf).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/utils.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_big_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/utils.rs:9:39 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn from_little_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Type` [INFO] [stdout] --> src/devices.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ReportType` [INFO] [stdout] --> src/devices.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ReportType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Command` [INFO] [stdout] --> src/devices.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Device` [INFO] [stdout] --> src/devices.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Device { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `DEVICE` [INFO] [stdout] --> src/devices.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / pub static DEVICE : &'static [Device] = &[ [INFO] [stdout] 42 | | Device { [INFO] [stdout] 43 | | name: "SteelSeries Rival 700 (Experimental)", [INFO] [stdout] 44 | | vid: 0x1038, [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_PROFILES` [INFO] [stdout] --> src/protocol/proto_rival.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Type` [INFO] [stdout] --> src/devices.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Type { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_BUTTONS` [INFO] [stdout] --> src/protocol/proto_rival.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_DPI` [INFO] [stdout] --> src/protocol/proto_rival.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_LED` [INFO] [stdout] --> src/protocol/proto_rival.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MIN` [INFO] [stdout] --> src/protocol/proto_rival.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const DPI_MIN: u16 = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MAX` [INFO] [stdout] --> src/protocol/proto_rival.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MAX: u16 = 6500; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MULTIPLIER` [INFO] [stdout] --> src/protocol/proto_rival.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MULTIPLIER: u8 = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_1` [INFO] [stdout] --> src/protocol/proto_rival.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_2` [INFO] [stdout] --> src/protocol/proto_rival.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_SIZE` [INFO] [stdout] --> src/protocol/proto_rival.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: u8 = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_DPI` [INFO] [stdout] --> src/protocol/proto_rival.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const ID_DPI: u8 = 0x03; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_REPORT_RATE` [INFO] [stdout] --> src/protocol/proto_rival.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | const ID_REPORT_RATE: u8 = 0x04; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_LED_EFFECT` [INFO] [stdout] --> src/protocol/proto_rival.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const ID_LED_EFFECT: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_LED` [INFO] [stdout] --> src/protocol/proto_rival.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_LED: u8 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_SAVE` [INFO] [stdout] --> src/protocol/proto_rival.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_PROFILES` [INFO] [stdout] --> src/protocol/proto_rival310.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_BUTTONS` [INFO] [stdout] --> src/protocol/proto_rival310.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_DPI` [INFO] [stdout] --> src/protocol/proto_rival310.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_LED` [INFO] [stdout] --> src/protocol/proto_rival310.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MIN` [INFO] [stdout] --> src/protocol/proto_rival310.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MAX` [INFO] [stdout] --> src/protocol/proto_rival310.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 12000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_1` [INFO] [stdout] --> src/protocol/proto_rival310.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_2` [INFO] [stdout] --> src/protocol/proto_rival310.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_SAVE` [INFO] [stdout] --> src/protocol/proto_rival310.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x59; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_PROFILES` [INFO] [stdout] --> src/protocol/proto_rival500.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_BUTTONS` [INFO] [stdout] --> src/protocol/proto_rival500.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ReportType` [INFO] [stdout] --> src/devices.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ReportType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_DPI` [INFO] [stdout] --> src/protocol/proto_rival500.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Command` [INFO] [stdout] --> src/devices.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Device` [INFO] [stdout] --> src/devices.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Device { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `DEVICE` [INFO] [stdout] --> src/devices.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / pub static DEVICE : &'static [Device] = &[ [INFO] [stdout] 42 | | Device { [INFO] [stdout] 43 | | name: "SteelSeries Rival 700 (Experimental)", [INFO] [stdout] 44 | | vid: 0x1038, [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_LED` [INFO] [stdout] --> src/protocol/proto_rival500.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_PROFILES` [INFO] [stdout] --> src/protocol/proto_rival.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_BUTTONS` [INFO] [stdout] --> src/protocol/proto_rival.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MIN` [INFO] [stdout] --> src/protocol/proto_rival500.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_DPI` [INFO] [stdout] --> src/protocol/proto_rival.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_LED` [INFO] [stdout] --> src/protocol/proto_rival.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MIN` [INFO] [stdout] --> src/protocol/proto_rival.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const DPI_MIN: u16 = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MAX` [INFO] [stdout] --> src/protocol/proto_rival.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MAX: u16 = 6500; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MAX` [INFO] [stdout] --> src/protocol/proto_rival500.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 16000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MULTIPLIER` [INFO] [stdout] --> src/protocol/proto_rival.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MULTIPLIER: u8 = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_1` [INFO] [stdout] --> src/protocol/proto_rival.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_1` [INFO] [stdout] --> src/protocol/proto_rival500.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_2` [INFO] [stdout] --> src/protocol/proto_rival.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_SIZE` [INFO] [stdout] --> src/protocol/proto_rival.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: u8 = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_DPI` [INFO] [stdout] --> src/protocol/proto_rival.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const ID_DPI: u8 = 0x03; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_2` [INFO] [stdout] --> src/protocol/proto_rival500.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_REPORT_RATE` [INFO] [stdout] --> src/protocol/proto_rival.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | const ID_REPORT_RATE: u8 = 0x04; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_LED_EFFECT` [INFO] [stdout] --> src/protocol/proto_rival.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const ID_LED_EFFECT: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_LED` [INFO] [stdout] --> src/protocol/proto_rival.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_LED: u8 = 0x08; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_SIZE` [INFO] [stdout] --> src/protocol/proto_rival500.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_SAVE` [INFO] [stdout] --> src/protocol/proto_rival.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_PROFILES` [INFO] [stdout] --> src/protocol/proto_rival310.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_BUTTONS` [INFO] [stdout] --> src/protocol/proto_rival310.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_DPI` [INFO] [stdout] --> src/protocol/proto_rival310.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_LED` [INFO] [stdout] --> src/protocol/proto_rival310.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MIN` [INFO] [stdout] --> src/protocol/proto_rival310.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MAX` [INFO] [stdout] --> src/protocol/proto_rival310.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 12000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_1` [INFO] [stdout] --> src/protocol/proto_rival310.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_2` [INFO] [stdout] --> src/protocol/proto_rival310.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_SAVE` [INFO] [stdout] --> src/protocol/proto_rival310.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x59; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_PROFILES` [INFO] [stdout] --> src/protocol/proto_rival500.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_BUTTONS` [INFO] [stdout] --> src/protocol/proto_rival500.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_DPI` [INFO] [stdout] --> src/protocol/proto_rival500.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUM_LED` [INFO] [stdout] --> src/protocol/proto_rival500.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MIN` [INFO] [stdout] --> src/protocol/proto_rival500.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DPI_MAX` [INFO] [stdout] --> src/protocol/proto_rival500.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 16000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_1` [INFO] [stdout] --> src/protocol/proto_rival500.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_ID_2` [INFO] [stdout] --> src/protocol/proto_rival500.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `REPORT_SIZE` [INFO] [stdout] --> src/protocol/proto_rival500.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_SAVE` [INFO] [stdout] --> src/protocol/proto_rival500.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ColorMode` [INFO] [stdout] --> src/protocol/proto_rival500.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum ColorMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ColorDepth` [INFO] [stdout] --> src/protocol/mod.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ColorDepth { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LedType` [INFO] [stdout] --> src/protocol/mod.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum LedType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Led` [INFO] [stdout] --> src/protocol/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Led { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_big_endian` [INFO] [stdout] --> src/utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_big_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_little_endian` [INFO] [stdout] --> src/utils.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn from_little_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_big_endian` [INFO] [stdout] --> src/utils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn to_big_endian<'a>(num: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testSignedNumeric` should have a snake case name [INFO] [stdout] --> src/main.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn testSignedNumeric() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_signed_numeric` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID_SAVE` [INFO] [stdout] --> src/protocol/proto_rival500.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ColorMode` [INFO] [stdout] --> src/protocol/proto_rival500.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum ColorMode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `ColorDepth` [INFO] [stdout] --> src/protocol/mod.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ColorDepth { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LedType` [INFO] [stdout] --> src/protocol/mod.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum LedType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Led` [INFO] [stdout] --> src/protocol/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Led { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_big_endian` [INFO] [stdout] --> src/utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn from_big_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_little_endian` [INFO] [stdout] --> src/utils.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn from_little_endian(arr: &[u8], size: u16) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_big_endian` [INFO] [stdout] --> src/utils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn to_big_endian<'a>(num: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.81s [INFO] running `Command { std: "docker" "inspect" "11cbfd4babfc6cb1f26c0d3cf0d6f9d59748b7cd8a27f25d6e44573b034d6b38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11cbfd4babfc6cb1f26c0d3cf0d6f9d59748b7cd8a27f25d6e44573b034d6b38", kill_on_drop: false }` [INFO] [stdout] 11cbfd4babfc6cb1f26c0d3cf0d6f9d59748b7cd8a27f25d6e44573b034d6b38