[INFO] fetching crate can_adapter 0.5.0... [INFO] checking can_adapter-0.5.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate can_adapter 0.5.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate can_adapter 0.5.0 [INFO] finished tweaking crates.io crate can_adapter 0.5.0 [INFO] tweaked toml for crates.io crate can_adapter 0.5.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate can_adapter 0.5.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate can_adapter 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: file `/workspace/builds/worker-3-tc2/source/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `can_adapter` [INFO] [stderr] * `bin` target `logger` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91beb7dc20611016328109c1198f0ca0ba6007b5c3f52071fce1306b1f54ac66 [INFO] running `Command { std: "docker" "start" "-a" "91beb7dc20611016328109c1198f0ca0ba6007b5c3f52071fce1306b1f54ac66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91beb7dc20611016328109c1198f0ca0ba6007b5c3f52071fce1306b1f54ac66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91beb7dc20611016328109c1198f0ca0ba6007b5c3f52071fce1306b1f54ac66", kill_on_drop: false }` [INFO] [stdout] 91beb7dc20611016328109c1198f0ca0ba6007b5c3f52071fce1306b1f54ac66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 118a0829b048285e4a3cd15bc132d1b79930bf9191c100c9b5358fd576ab9672 [INFO] running `Command { std: "docker" "start" "-a" "118a0829b048285e4a3cd15bc132d1b79930bf9191c100c9b5358fd576ab9672", kill_on_drop: false }` [INFO] [stderr] warning: file `/opt/rustwide/workdir/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `lib` target `can_adapter` [INFO] [stderr] * `bin` target `logger` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling socketcan v3.5.0 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking clap_builder v4.5.41 [INFO] [stderr] Checking embedded-can v0.4.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Checking dbg_hex v0.2.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking clap-num v1.2.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking rust-ini v0.21.2 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking libudev v0.3.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerocopy-derive v0.8.26 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling color-print-proc-macro v0.3.7 [INFO] [stderr] Checking color-print v0.3.7 [INFO] [stderr] Checking clap v4.5.41 [INFO] [stderr] Checking unescaper v0.1.6 [INFO] [stderr] Checking serialport v4.7.2 [INFO] [stderr] Compiling neli-proc-macros v0.1.4 [INFO] [stderr] Checking neli v0.6.5 [INFO] [stderr] Checking can_adapter v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | connection: &(dyn Connection), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - connection: &(dyn Connection), [INFO] [stdout] 70 + connection: &dyn Connection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 97 + pub fn send(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 106 + fn send_tp(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 113 + fn send_tp_bam(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:139:36 [INFO] [stdout] | [INFO] [stdout] 139 | fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 139 + fn send_tp_ds(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/uds/mod.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | connection: &(dyn Connection), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - connection: &(dyn Connection), [INFO] [stdout] 70 + connection: &dyn Connection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 97 + pub fn send(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 106 + fn send_tp(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 113 + fn send_tp_bam(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:139:36 [INFO] [stdout] | [INFO] [stdout] 139 | fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 139 + fn send_tp_ds(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/uds/mod.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> src/j1939/mod.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | J1939::AddressClaim { sa } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `sa: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> src/j1939/mod.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | J1939::AddressClaim { sa } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `sa: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_size` [INFO] [stdout] --> src/uds/iso15765.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | let block_size = p.payload[1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/uds/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let mut iso15765 = Iso15765::new( [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/socketcanconnection.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(str: &str, speed: u64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/main.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | fn hex_array(arg: &str) -> Result, std::num::ParseIntError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_size` [INFO] [stdout] --> src/uds/iso15765.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | let block_size = p.payload[1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/uds/iso15765.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | let mut tp = Iso15765::new(&tx_connection, 0xDA00, Duration::from_secs(2), 0, 0xF9); [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/uds/iso15765.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut tp = Iso15765::new(&connection, 0xDA00, Duration::from_secs(2), 0xF9, 0); [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/uds/iso15765.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut rx_tp = Iso15765::new(&rx_connection, 0xDA00, DURATION, 0, 0xF9); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/j1939/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct TPDescriptor { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TPDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpConnAbort` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:422:8 [INFO] [stdout] | [INFO] [stdout] 422 | struct J1939_21TpConnAbort { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpBAM` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:432:8 [INFO] [stdout] | [INFO] [stdout] 432 | struct J1939_21TpBAM { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/uds/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let mut iso15765 = Iso15765::new( [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/socketcanconnection.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(str: &str, speed: u64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/main.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | fn hex_array(arg: &str) -> Result, std::num::ParseIntError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/j1939/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct TPDescriptor { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TPDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpConnAbort` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:422:8 [INFO] [stdout] | [INFO] [stdout] 422 | struct J1939_21TpConnAbort { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpBAM` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:432:8 [INFO] [stdout] | [INFO] [stdout] 432 | struct J1939_21TpBAM { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | connection: &(dyn Connection), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - connection: &(dyn Connection), [INFO] [stdout] 70 + connection: &dyn Connection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 97 + pub fn send(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 106 + fn send_tp(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 113 + fn send_tp_bam(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:139:36 [INFO] [stdout] | [INFO] [stdout] 139 | fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 139 + fn send_tp_ds(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/uds/mod.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | connection: &(dyn Connection), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - connection: &(dyn Connection), [INFO] [stdout] 70 + connection: &dyn Connection, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - pub fn send(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 97 + pub fn send(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:106:33 [INFO] [stdout] | [INFO] [stdout] 106 | fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - fn send_tp(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 106 + fn send_tp(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - fn send_tp_bam(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 113 + fn send_tp_bam(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/j1939/mod.rs:139:36 [INFO] [stdout] | [INFO] [stdout] 139 | fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - fn send_tp_ds(connection: &mut (dyn Connection), packet: &J1939Packet) -> Result<()> { [INFO] [stdout] 139 + fn send_tp_ds(connection: &mut dyn Connection, packet: &J1939Packet) -> Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/uds/mod.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> src/j1939/mod.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | J1939::AddressClaim { sa } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `sa: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sa` [INFO] [stdout] --> src/j1939/mod.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | J1939::AddressClaim { sa } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `sa: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_size` [INFO] [stdout] --> src/uds/iso15765.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | let block_size = p.payload[1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_size` [INFO] [stdout] --> src/uds/iso15765.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | let block_size = p.payload[1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/uds/iso15765.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | let mut tp = Iso15765::new(&tx_connection, 0xDA00, Duration::from_secs(2), 0, 0xF9); [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/uds/iso15765.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut tp = Iso15765::new(&connection, 0xDA00, Duration::from_secs(2), 0xF9, 0); [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/uds/iso15765.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut rx_tp = Iso15765::new(&rx_connection, 0xDA00, DURATION, 0, 0xF9); [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/uds/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let mut iso15765 = Iso15765::new( [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/socketcanconnection.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(str: &str, speed: u64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/uds/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let mut iso15765 = Iso15765::new( [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `speed` [INFO] [stdout] --> src/socketcanconnection.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn new(str: &str, speed: u64) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_speed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/main.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | fn hex_array(arg: &str) -> Result, std::num::ParseIntError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/main.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | fn hex_array(arg: &str) -> Result, std::num::ParseIntError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/j1939/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct TPDescriptor { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TPDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpConnAbort` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:422:8 [INFO] [stdout] | [INFO] [stdout] 422 | struct J1939_21TpConnAbort { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpBAM` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:432:8 [INFO] [stdout] | [INFO] [stdout] 432 | struct J1939_21TpBAM { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/j1939/mod.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct TPDescriptor { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | timestamp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TPDescriptor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpConnAbort` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:422:8 [INFO] [stdout] | [INFO] [stdout] 422 | struct J1939_21TpConnAbort { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `J1939_21TpBAM` is never constructed [INFO] [stdout] --> src/j1939/mod.rs:432:8 [INFO] [stdout] | [INFO] [stdout] 432 | struct J1939_21TpBAM { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.75s [INFO] running `Command { std: "docker" "inspect" "118a0829b048285e4a3cd15bc132d1b79930bf9191c100c9b5358fd576ab9672", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "118a0829b048285e4a3cd15bc132d1b79930bf9191c100c9b5358fd576ab9672", kill_on_drop: false }` [INFO] [stdout] 118a0829b048285e4a3cd15bc132d1b79930bf9191c100c9b5358fd576ab9672