[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] building crossdot/steelcfg against try#0c94de7c1a8f4b82b92d562847c35f513f520c7a for pr-102832-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrossdot%2Fsteelcfg" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crossdot/steelcfg on toolchain 0c94de7c1a8f4b82b92d562847c35f513f520c7a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-0/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" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5a8165f499d80286e72228b4af443a40fc6038210eded05866eb31ede321c2c [INFO] running `Command { std: "docker" "start" "-a" "d5a8165f499d80286e72228b4af443a40fc6038210eded05866eb31ede321c2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5a8165f499d80286e72228b4af443a40fc6038210eded05866eb31ede321c2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5a8165f499d80286e72228b4af443a40fc6038210eded05866eb31ede321c2c", kill_on_drop: false }` [INFO] [stdout] d5a8165f499d80286e72228b4af443a40fc6038210eded05866eb31ede321c2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfb7f2c2a0326af4d0edacecd66b31175f4757a3da969c8ce495e1bab1616d16 [INFO] running `Command { std: "docker" "start" "-a" "cfb7f2c2a0326af4d0edacecd66b31175f4757a3da969c8ce495e1bab1616d16", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Compiling libc v0.2.32 [INFO] [stderr] Compiling byteorder v1.1.0 [INFO] [stderr] Compiling hidapi v0.4.1 [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - if (device_info.vendor_id == VID && device_info.product_id == PID) { [INFO] [stdout] 20 + if device_info.vendor_id == VID && device_info.product_id == PID { [INFO] [stdout] | [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 `Type` is never used [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 `ReportType` is never used [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 `Command` is never constructed [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 `Device` is never constructed [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 `DEVICE` is never used [INFO] [stdout] --> src/devices.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub static DEVICE : &'static [Device] = &[ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColorDepth` is never used [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 `LedType` is never used [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 `Led` is never constructed [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: constant `NUM_PROFILES` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_BUTTONS` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MIN` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const DPI_MIN: u16 = 50; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MAX` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MAX: u16 = 6500; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MULTIPLIER` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MULTIPLIER: u8 = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_1` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_2` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SIZE` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: u8 = 64; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ID_DPI: u8 = 0x03; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_REPORT_RATE` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const ID_REPORT_RATE: u8 = 0x04; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_LED_EFFECT` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const ID_LED_EFFECT: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_LED: u8 = 0x08; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SAVE` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_PROFILES` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_BUTTONS` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MIN` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MAX` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 12000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_1` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_2` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SAVE` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x59; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_PROFILES` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_BUTTONS` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MIN` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MAX` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 16000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_1` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_2` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SIZE` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SAVE` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColorMode` is never used [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: function `from_big_endian` is never used [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 `from_little_endian` is never used [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 `to_big_endian` is never used [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: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.62s [INFO] running `Command { std: "docker" "inspect" "cfb7f2c2a0326af4d0edacecd66b31175f4757a3da969c8ce495e1bab1616d16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfb7f2c2a0326af4d0edacecd66b31175f4757a3da969c8ce495e1bab1616d16", kill_on_drop: false }` [INFO] [stdout] cfb7f2c2a0326af4d0edacecd66b31175f4757a3da969c8ce495e1bab1616d16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+0c94de7c1a8f4b82b92d562847c35f513f520c7a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f525a2f0c2c6cbe945a330d05a632ccc0869e12449858a56f431bcfb9bd7356 [INFO] running `Command { std: "docker" "start" "-a" "1f525a2f0c2c6cbe945a330d05a632ccc0869e12449858a56f431bcfb9bd7356", kill_on_drop: false }` [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - if (device_info.vendor_id == VID && device_info.product_id == PID) { [INFO] [stdout] 20 + if device_info.vendor_id == VID && device_info.product_id == PID { [INFO] [stdout] | [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 `Type` is never used [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 `ReportType` is never used [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 `Command` is never constructed [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 `Device` is never constructed [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 `DEVICE` is never used [INFO] [stdout] --> src/devices.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub static DEVICE : &'static [Device] = &[ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColorDepth` is never used [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 `LedType` is never used [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 `Led` is never constructed [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: constant `NUM_PROFILES` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_BUTTONS` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MIN` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const DPI_MIN: u16 = 50; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MAX` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MAX: u16 = 6500; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MULTIPLIER` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MULTIPLIER: u8 = 50; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_1` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_2` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SIZE` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: u8 = 64; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ID_DPI: u8 = 0x03; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_REPORT_RATE` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const ID_REPORT_RATE: u8 = 0x04; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_LED_EFFECT` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const ID_LED_EFFECT: u8 = 0x07; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_LED: u8 = 0x08; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SAVE` is never used [INFO] [stdout] --> src/protocol/proto_rival.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_PROFILES` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_BUTTONS` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MIN` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MAX` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 12000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_1` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_2` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SAVE` is never used [INFO] [stdout] --> src/protocol/proto_rival310.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x59; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_PROFILES` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NUM_PROFILES: u16 = 1; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_BUTTONS` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NUM_BUTTONS: u16 = 6; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_DPI` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NUM_DPI: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_LED` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const NUM_LED: u16 = 2; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MIN` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DPI_MIN: u16 = 100; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DPI_MAX` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DPI_MAX: u16 = 16000; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_1` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REPORT_ID_1: u8 = 0x01; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_ID_2` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REPORT_ID_2: u8 = 0x02; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REPORT_SIZE` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const REPORT_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ID_SAVE` is never used [INFO] [stdout] --> src/protocol/proto_rival500.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const ID_SAVE: u8 = 0x09; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ColorMode` is never used [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: function `from_big_endian` is never used [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 `from_little_endian` is never used [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 `to_big_endian` is never used [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: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.66s [INFO] running `Command { std: "docker" "inspect" "1f525a2f0c2c6cbe945a330d05a632ccc0869e12449858a56f431bcfb9bd7356", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f525a2f0c2c6cbe945a330d05a632ccc0869e12449858a56f431bcfb9bd7356", kill_on_drop: false }` [INFO] [stdout] 1f525a2f0c2c6cbe945a330d05a632ccc0869e12449858a56f431bcfb9bd7356