[INFO] cloning repository https://github.com/ZzQhXdH/rust-make [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZzQhXdH/rust-make" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZzQhXdH%2Frust-make", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZzQhXdH%2Frust-make'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8069034f7cce651341c2004c7d422e1bd9755760 [INFO] checking ZzQhXdH/rust-make/8069034f7cce651341c2004c7d422e1bd9755760 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZzQhXdH%2Frust-make" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZzQhXdH/rust-make on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/ZzQhXdH/rust-make [INFO] finished tweaking git repo https://github.com/ZzQhXdH/rust-make [INFO] tweaked toml for git repo https://github.com/ZzQhXdH/rust-make written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ZzQhXdH/rust-make 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ntex-tokio v0.4.0 [INFO] [stderr] Downloaded oneshot v0.1.6 [INFO] [stderr] Downloaded ntex-bytes v0.1.21 [INFO] [stderr] Downloaded ntex-connect v1.0.0 [INFO] [stderr] Downloaded ntex-tls v1.0.0 [INFO] [stderr] Downloaded ntex-h2 v0.5.0 [INFO] [stderr] Downloaded ntex-router v0.5.2 [INFO] [stderr] Downloaded ntex-http v0.1.11 [INFO] [stderr] Downloaded ntex-rt v0.4.11 [INFO] [stderr] Downloaded ntex-service v2.0.0 [INFO] [stderr] Downloaded ntex-io v1.0.0 [INFO] [stderr] Downloaded ntex-util v1.0.0 [INFO] [stderr] Downloaded ntex v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1332499a1490a39640b25307d272d29e6bf500b4b68ebf42132f2d4c4629339 [INFO] running `Command { std: "docker" "start" "-a" "c1332499a1490a39640b25307d272d29e6bf500b4b68ebf42132f2d4c4629339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1332499a1490a39640b25307d272d29e6bf500b4b68ebf42132f2d4c4629339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1332499a1490a39640b25307d272d29e6bf500b4b68ebf42132f2d4c4629339", kill_on_drop: false }` [INFO] [stdout] c1332499a1490a39640b25307d272d29e6bf500b4b68ebf42132f2d4c4629339 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8756bb5347656b1fa724b7e3d2de77ac5349660d0b3f575250338684e6449378 [INFO] running `Command { std: "docker" "start" "-a" "8756bb5347656b1fa724b7e3d2de77ac5349660d0b3f575250338684e6449378", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Checking parking v2.2.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling pkg-config v0.3.28 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking oneshot v0.1.6 [INFO] [stderr] Checking ntex-service v2.0.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling unicode-bidi v0.3.14 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Checking concurrent-queue v2.4.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking event-listener v4.0.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Checking event-listener-strategy v0.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Checking async-channel v2.1.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Checking http v0.2.11 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Compiling ntex-macros v0.1.3 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking polling v3.3.1 [INFO] [stderr] Checking ntex-bytes v0.1.21 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking ntex-rt v0.4.11 [INFO] [stderr] Checking ntex-util v1.0.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking ntex-codec v0.6.2 [INFO] [stderr] Checking ntex-http v0.1.11 [INFO] [stderr] Checking ntex-router v0.5.2 [INFO] [stderr] Checking ntex-io v1.0.0 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking ntex-tokio v0.4.0 [INFO] [stderr] Checking ntex-tls v1.0.0 [INFO] [stderr] Checking ntex-connect v1.0.0 [INFO] [stderr] Checking ntex-h2 v0.5.0 [INFO] [stderr] Checking ntex v1.0.0 [INFO] [stderr] Checking sqlx-core v0.7.3 [INFO] [stderr] Checking sqlx-sqlite v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Checking sqlx v0.7.3 [INFO] [stderr] Checking orange-serve v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Custom` is never constructed [INFO] [stdout] --> src/error.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum AppErr { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | Custom(ErrInfo), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppErr` 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: method `into_info` is never used [INFO] [stdout] --> src/error.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl AppErr { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 42 | [INFO] [stdout] 43 | pub fn into_info(self) -> ErrInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errors` is never used [INFO] [stdout] --> src/error.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn errors(msg: String) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_if_err` is never used [INFO] [stdout] --> src/error.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait ErrorExt { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 86 | fn print_if_err(&self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dispatch` is never used [INFO] [stdout] --> src/serve/api/mod.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | async fn dispatch(_frame: RequestFrame) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seq` is never read [INFO] [stdout] --> src/serve/conn.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DeviceConn { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | seq: AtomicU8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/serve/conn.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl DeviceConn { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn exec_simple_req( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub async fn exec_req( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn exec_ping(&self) -> Result<(), AppErr> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn ack(&self, seq: u8) -> Result<(), AppErr> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn res(&self, seq: u8, cmd: u8, value: Result) -> Result<(), AppErr> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn simple_res(&self, seq: u8, cmd: u8, value: Result) -> Result<(), AppErr> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn get_seq(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn create_resp(&self, type_seq: u16) -> oneshot::Receiver { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conn_infos` is never used [INFO] [stdout] --> src/serve/manager.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn conn_infos() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_res` and `to_vec` are never used [INFO] [stdout] --> src/serve/frame/mod.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub trait ToFrameBody { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 131 | fn to_res(&self) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 132 | [INFO] [stdout] 133 | fn to_vec(&self) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/serve/frame/recv.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | SimpleReq(RequestFrame), [INFO] [stdout] | --------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | SimpleReq(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/serve/frame/recv.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | Notify(RequestFrame), [INFO] [stdout] | ------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | Notify(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/serve/frame/recv.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl RecvFrame { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 20 | [INFO] [stdout] 21 | pub fn ack(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn ping(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn pong(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn res(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn simple_req(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn simple_res(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn parse<'a, T: Deserialize<'a>>(&'a self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body` is never read [INFO] [stdout] --> src/serve/frame/recv.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct ResponseFrame { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 119 | pub seq: u8, [INFO] [stdout] 120 | body: Array, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmd` and `parse` are never used [INFO] [stdout] --> src/serve/frame/recv.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl ResponseFrame { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn cmd(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn parse<'a, R: Deserialize<'a>>(&'a self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ping`, `Req`, `SimpleReq`, `SimpleRes`, `Notify`, and `NotifyAck` are never constructed [INFO] [stdout] --> src/serve/frame/send.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum SendFrame { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Ping(BaseFrame), [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | Pong(BaseFrame), [INFO] [stdout] 15 | Req(RequestFrame), [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | SimpleReq(RequestFrame), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | Res(ResponseFrame), [INFO] [stdout] 18 | SimpleRes(ResponseFrame), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | Notify(RequestFrame), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | NotifyAck(RequestFrame), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_ok` and `new_with_err` are never used [INFO] [stdout] --> src/serve/frame/send.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ResponseFrame { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn new_ok(seq: u8, cmd: u8, value: &T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn new_with_err(seq: u8, cmd: u8, value: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_with_body` are never used [INFO] [stdout] --> src/serve/frame/send.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl RequestFrame { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 117 | [INFO] [stdout] 118 | pub fn new(seq: u8, cmd: u8, value: &T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn new_with_body(seq: u8, cmd: u8, value: Option>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_coin_info` is never used [INFO] [stdout] --> src/store/sql/coin.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | async fn update_coin_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_type` is never used [INFO] [stdout] --> src/store/sql/coin.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | async fn all_type(conn: &mut SqliteConnection, device_id: i64) -> Result, SqlxErr> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_with_type` is never used [INFO] [stdout] --> src/store/sql/coin.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | async fn delete_with_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contain_tpye` is never used [INFO] [stdout] --> src/store/sql/coin.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn contain_tpye(infos: &[TableCoinInfo], t: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_info` is never used [INFO] [stdout] --> src/store/sql/coin.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | pub async fn update_info(device_id: i64, infos: &[TableCoinInfo]) -> Result<(), SqlxErr> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand_u8` is never used [INFO] [stdout] --> src/utils/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn rand_u8() -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrResp` is never constructed [INFO] [stdout] --> src/web/resp.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct ErrResp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrResp2` is never constructed [INFO] [stdout] --> src/web/resp.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct ErrResp2<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&Box<[T]> as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to ` as IntoIterator>::into_iter` in Rust 2024 [INFO] [stdout] --> src/store/sql/coin.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | for t in all.into_iter() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: `#[warn(boxed_slice_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 133 | for t in all.iter() { [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or remove `.into_iter()` to iterate by value [INFO] [stdout] | [INFO] [stdout] 133 - for t in all.into_iter() { [INFO] [stdout] 133 + for t in all { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Custom` is never constructed [INFO] [stdout] --> src/error.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum AppErr { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | Custom(ErrInfo), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppErr` 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: method `into_info` is never used [INFO] [stdout] --> src/error.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl AppErr { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 42 | [INFO] [stdout] 43 | pub fn into_info(self) -> ErrInfo { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `errors` is never used [INFO] [stdout] --> src/error.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn errors(msg: String) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_if_err` is never used [INFO] [stdout] --> src/error.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait ErrorExt { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 86 | fn print_if_err(&self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dispatch` is never used [INFO] [stdout] --> src/serve/api/mod.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | async fn dispatch(_frame: RequestFrame) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seq` is never read [INFO] [stdout] --> src/serve/conn.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DeviceConn { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | seq: AtomicU8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/serve/conn.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl DeviceConn { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn exec_simple_req( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub async fn exec_req( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn exec_ping(&self) -> Result<(), AppErr> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn ack(&self, seq: u8) -> Result<(), AppErr> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn res(&self, seq: u8, cmd: u8, value: Result) -> Result<(), AppErr> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn simple_res(&self, seq: u8, cmd: u8, value: Result) -> Result<(), AppErr> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn get_seq(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn create_resp(&self, type_seq: u16) -> oneshot::Receiver { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conn_infos` is never used [INFO] [stdout] --> src/serve/manager.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn conn_infos() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_res` and `to_vec` are never used [INFO] [stdout] --> src/serve/frame/mod.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub trait ToFrameBody { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 131 | fn to_res(&self) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 132 | [INFO] [stdout] 133 | fn to_vec(&self) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/serve/frame/recv.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | SimpleReq(RequestFrame), [INFO] [stdout] | --------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | SimpleReq(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/serve/frame/recv.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | Notify(RequestFrame), [INFO] [stdout] | ------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 | Notify(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/serve/frame/recv.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl RecvFrame { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 20 | [INFO] [stdout] 21 | pub fn ack(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn ping(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn pong(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn res(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn simple_req(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn simple_res(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn parse<'a, T: Deserialize<'a>>(&'a self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body` is never read [INFO] [stdout] --> src/serve/frame/recv.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct ResponseFrame { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 119 | pub seq: u8, [INFO] [stdout] 120 | body: Array, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmd` and `parse` are never used [INFO] [stdout] --> src/serve/frame/recv.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl ResponseFrame { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn cmd(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn parse<'a, R: Deserialize<'a>>(&'a self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ping`, `Req`, `SimpleReq`, `SimpleRes`, `Notify`, and `NotifyAck` are never constructed [INFO] [stdout] --> src/serve/frame/send.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum SendFrame { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Ping(BaseFrame), [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | Pong(BaseFrame), [INFO] [stdout] 15 | Req(RequestFrame), [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | SimpleReq(RequestFrame), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | Res(ResponseFrame), [INFO] [stdout] 18 | SimpleRes(ResponseFrame), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | Notify(RequestFrame), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | NotifyAck(RequestFrame), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_ok` and `new_with_err` are never used [INFO] [stdout] --> src/serve/frame/send.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl ResponseFrame { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn new_ok(seq: u8, cmd: u8, value: &T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn new_with_err(seq: u8, cmd: u8, value: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_with_body` are never used [INFO] [stdout] --> src/serve/frame/send.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl RequestFrame { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 117 | [INFO] [stdout] 118 | pub fn new(seq: u8, cmd: u8, value: &T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn new_with_body(seq: u8, cmd: u8, value: Option>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_coin_info` is never used [INFO] [stdout] --> src/store/sql/coin.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | async fn update_coin_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_type` is never used [INFO] [stdout] --> src/store/sql/coin.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | async fn all_type(conn: &mut SqliteConnection, device_id: i64) -> Result, SqlxErr> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_with_type` is never used [INFO] [stdout] --> src/store/sql/coin.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | async fn delete_with_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contain_tpye` is never used [INFO] [stdout] --> src/store/sql/coin.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn contain_tpye(infos: &[TableCoinInfo], t: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_info` is never used [INFO] [stdout] --> src/store/sql/coin.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | pub async fn update_info(device_id: i64, infos: &[TableCoinInfo]) -> Result<(), SqlxErr> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand_u8` is never used [INFO] [stdout] --> src/utils/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn rand_u8() -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrResp` is never constructed [INFO] [stdout] --> src/web/resp.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct ErrResp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrResp2` is never constructed [INFO] [stdout] --> src/web/resp.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct ErrResp2<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&Box<[T]> as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to ` as IntoIterator>::into_iter` in Rust 2024 [INFO] [stdout] --> src/store/sql/coin.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | for t in all.into_iter() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: `#[warn(boxed_slice_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 133 | for t in all.iter() { [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or remove `.into_iter()` to iterate by value [INFO] [stdout] | [INFO] [stdout] 133 - for t in all.into_iter() { [INFO] [stdout] 133 + for t in all { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.85s [INFO] running `Command { std: "docker" "inspect" "8756bb5347656b1fa724b7e3d2de77ac5349660d0b3f575250338684e6449378", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8756bb5347656b1fa724b7e3d2de77ac5349660d0b3f575250338684e6449378", kill_on_drop: false }` [INFO] [stdout] 8756bb5347656b1fa724b7e3d2de77ac5349660d0b3f575250338684e6449378