[INFO] cloning repository https://github.com/brodiealexander/fjage-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brodiealexander/fjage-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrodiealexander%2Ffjage-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrodiealexander%2Ffjage-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c67c8ca56bedf45dadffcdd49228e9dd83c7b1b3 [INFO] building brodiealexander/fjage-rs against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrodiealexander%2Ffjage-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 67% (62/92) Updating files: 68% (63/92) Updating files: 69% (64/92) Updating files: 70% (65/92) Updating files: 71% (66/92) Updating files: 72% (67/92) Updating files: 73% (68/92) Updating files: 75% (69/92) Updating files: 76% (70/92) Updating files: 77% (71/92) Updating files: 78% (72/92) Updating files: 79% (73/92) Updating files: 80% (74/92) Updating files: 81% (75/92) Updating files: 82% (76/92) Updating files: 83% (77/92) Updating files: 84% (78/92) Updating files: 85% (79/92) Updating files: 86% (80/92) Updating files: 88% (81/92) Updating files: 89% (82/92) Updating files: 90% (83/92) Updating files: 91% (84/92) Updating files: 92% (85/92) Updating files: 93% (86/92) Updating files: 94% (87/92) Updating files: 95% (88/92) Updating files: 96% (89/92) Updating files: 97% (90/92) Updating files: 98% (91/92) Updating files: 100% (92/92) Updating files: 100% (92/92), done. [INFO] started tweaking git repo https://github.com/brodiealexander/fjage-rs [INFO] finished tweaking git repo https://github.com/brodiealexander/fjage-rs [INFO] tweaked toml for git repo https://github.com/brodiealexander/fjage-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/brodiealexander/fjage-rs on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/brodiealexander/fjage-rs 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded console v0.16.0 [INFO] [stderr] Downloaded uuid-macro-internal v1.9.1 [INFO] [stderr] Downloaded unit-prefix v0.5.1 [INFO] [stderr] Downloaded tokio-serial v5.4.4 [INFO] [stderr] Downloaded indicatif v0.18.0 [INFO] [stderr] Downloaded unescaper v0.1.5 [INFO] [stderr] Downloaded serialport v4.4.0 [INFO] [stderr] Downloaded clap_derive v4.5.41 [INFO] [stderr] Downloaded clap v4.5.41 [INFO] [stderr] Downloaded cc v1.0.104 [INFO] [stderr] Downloaded mio-serial v5.0.5 [INFO] [stderr] Downloaded clap_builder v4.5.41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8d4c8fa24a927471abdec2d3f5066cf6417e424deac813fa892b75f9fd43eca [INFO] running `Command { std: "docker" "start" "-a" "a8d4c8fa24a927471abdec2d3f5066cf6417e424deac813fa892b75f9fd43eca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8d4c8fa24a927471abdec2d3f5066cf6417e424deac813fa892b75f9fd43eca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8d4c8fa24a927471abdec2d3f5066cf6417e424deac813fa892b75f9fd43eca", kill_on_drop: false }` [INFO] [stdout] a8d4c8fa24a927471abdec2d3f5066cf6417e424deac813fa892b75f9fd43eca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7e869702cecc6bee9a88a6b9919ae53070bda84c3c2210b553729a97ad3cc66 [INFO] running `Command { std: "docker" "start" "-a" "b7e869702cecc6bee9a88a6b9919ae53070bda84c3c2210b553729a97ad3cc66", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling serde_yml v0.0.12 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling clap_builder v4.5.41 [INFO] [stderr] Compiling unit-prefix v0.5.1 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling libyml v0.0.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling console v0.16.0 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling indicatif v0.18.0 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling uuid-macro-internal v1.9.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling unescaper v0.1.5 [INFO] [stderr] Compiling serialport v4.4.0 [INFO] [stderr] Compiling mio-serial v5.0.5 [INFO] [stderr] Compiling clap v4.5.41 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-serial v5.4.4 [INFO] [stderr] Compiling uuid v1.9.1 [INFO] [stderr] Compiling fjage_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | if (bytes_read.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (bytes_read.is_err()) { [INFO] [stdout] 32 + if bytes_read.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | if (bytes_read == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - if (bytes_read == 0) { [INFO] [stdout] 36 + if bytes_read == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | if (bytes_read.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if (bytes_read.is_err()) { [INFO] [stdout] 106 + if bytes_read.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | if (bytes_read == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - if (bytes_read == 0) { [INFO] [stdout] 113 + if bytes_read == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/connector.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | async fn read_task(stream: T, mut sender: UnboundedSender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/connector.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 101 | async fn read_task(stream: T, mut sender: UnboundedSender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/ffi/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | settings: *const c_char, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devname` [INFO] [stdout] --> src/ffi/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | devname: *const c_char, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_devname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `baud` [INFO] [stdout] --> src/ffi/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | baud: c_int, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_baud` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/ffi/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | settings: *const c_char, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/protocol/connector.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | async fn connect(&self) -> (UnboundedSender, UnboundedReceiver); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 12 - async fn connect(&self) -> (UnboundedSender, UnboundedReceiver); [INFO] [stdout] 12 + fn connect(&self) -> impl std::future::Future, UnboundedReceiver)> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/util/bulk_upload.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/util/bulk_upload.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util/put_file.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut file = OpenOptions::new().read(true).open(&path).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "b7e869702cecc6bee9a88a6b9919ae53070bda84c3c2210b553729a97ad3cc66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7e869702cecc6bee9a88a6b9919ae53070bda84c3c2210b553729a97ad3cc66", kill_on_drop: false }` [INFO] [stdout] b7e869702cecc6bee9a88a6b9919ae53070bda84c3c2210b553729a97ad3cc66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56319ed62352bfc4faa5f7cf89923168d9358a9492f3f2419ac4faff66e818af [INFO] running `Command { std: "docker" "start" "-a" "56319ed62352bfc4faa5f7cf89923168d9358a9492f3f2419ac4faff66e818af", kill_on_drop: false }` [INFO] [stderr] Compiling fjage_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | if (bytes_read.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (bytes_read.is_err()) { [INFO] [stdout] 32 + if bytes_read.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | if (bytes_read == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - if (bytes_read == 0) { [INFO] [stdout] 36 + if bytes_read == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | if (bytes_read.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if (bytes_read.is_err()) { [INFO] [stdout] 106 + if bytes_read.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | if (bytes_read == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - if (bytes_read == 0) { [INFO] [stdout] 113 + if bytes_read == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/connector.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | async fn read_task(stream: T, mut sender: UnboundedSender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/connector.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 101 | async fn read_task(stream: T, mut sender: UnboundedSender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/ffi/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | settings: *const c_char, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devname` [INFO] [stdout] --> src/ffi/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | devname: *const c_char, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_devname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `baud` [INFO] [stdout] --> src/ffi/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | baud: c_int, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_baud` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/ffi/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | settings: *const c_char, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/protocol/connector.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | async fn connect(&self) -> (UnboundedSender, UnboundedReceiver); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 12 - async fn connect(&self) -> (UnboundedSender, UnboundedReceiver); [INFO] [stdout] 12 + fn connect(&self) -> impl std::future::Future, UnboundedReceiver)> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/util/bulk_upload.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `env` [INFO] [stdout] --> src/util/bulk_upload.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util/put_file.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut file = OpenOptions::new().read(true).open(&path).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | if (bytes_read.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (bytes_read.is_err()) { [INFO] [stdout] 32 + if bytes_read.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | if (bytes_read == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - if (bytes_read == 0) { [INFO] [stdout] 36 + if bytes_read == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:106:16 [INFO] [stdout] | [INFO] [stdout] 106 | if (bytes_read.is_err()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 106 - if (bytes_read.is_err()) { [INFO] [stdout] 106 + if bytes_read.is_err() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/protocol/connector.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | if (bytes_read == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 113 - if (bytes_read == 0) { [INFO] [stdout] 113 + if bytes_read == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/connector.rs:27:57 [INFO] [stdout] | [INFO] [stdout] 27 | async fn read_task(stream: T, mut sender: UnboundedSender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocol/connector.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 101 | async fn read_task(stream: T, mut sender: UnboundedSender) { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/ffi/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | settings: *const c_char, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `devname` [INFO] [stdout] --> src/ffi/mod.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | devname: *const c_char, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_devname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `baud` [INFO] [stdout] --> src/ffi/mod.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | baud: c_int, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_baud` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `settings` [INFO] [stdout] --> src/ffi/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | settings: *const c_char, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_settings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/protocol/connector.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | async fn connect(&self) -> (UnboundedSender, UnboundedReceiver); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 12 - async fn connect(&self) -> (UnboundedSender, UnboundedReceiver); [INFO] [stdout] 12 + fn connect(&self) -> impl std::future::Future, UnboundedReceiver)> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.91s [INFO] running `Command { std: "docker" "inspect" "56319ed62352bfc4faa5f7cf89923168d9358a9492f3f2419ac4faff66e818af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56319ed62352bfc4faa5f7cf89923168d9358a9492f3f2419ac4faff66e818af", kill_on_drop: false }` [INFO] [stdout] 56319ed62352bfc4faa5f7cf89923168d9358a9492f3f2419ac4faff66e818af