[INFO] fetching crate ifnk_axum_util 0.1.10... [INFO] building ifnk_axum_util-0.1.10 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate ifnk_axum_util 0.1.10 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate ifnk_axum_util 0.1.10 [INFO] finished tweaking crates.io crate ifnk_axum_util 0.1.10 [INFO] tweaked toml for crates.io crate ifnk_axum_util 0.1.10 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ifnk_axum_util 0.1.10 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 188 packages to latest compatible versions [INFO] [stderr] Adding axum v0.7.9 (available: v0.8.5) [INFO] [stderr] Adding toml v0.8.23 (available: v0.9.7) [INFO] [stderr] Adding tower v0.4.13 (available: v0.5.2) [INFO] [stderr] Adding tower-http v0.5.2 (available: v0.6.6) [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] Downloading crates ... [INFO] [stderr] Downloaded hdrhistogram v7.5.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 9019425097a648566d9537dc96c17578829a590e2391aff49bad0c55aad26230 [INFO] running `Command { std: "docker" "start" "-a" "9019425097a648566d9537dc96c17578829a590e2391aff49bad0c55aad26230", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9019425097a648566d9537dc96c17578829a590e2391aff49bad0c55aad26230", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9019425097a648566d9537dc96c17578829a590e2391aff49bad0c55aad26230", kill_on_drop: false }` [INFO] [stdout] 9019425097a648566d9537dc96c17578829a590e2391aff49bad0c55aad26230 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] f7c5cefe17c9989615e3cc06cc8ba324b414e19f09a8a34c6fc52783bc467421 [INFO] running `Command { std: "docker" "start" "-a" "f7c5cefe17c9989615e3cc06cc8ba324b414e19f09a8a34c6fc52783bc467421", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling compression-core v0.4.29 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling hdrhistogram v7.5.4 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling compression-codecs v0.4.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling async-compression v0.4.32 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling ifnk_axum_util v0.1.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::util_entity::response::json_success` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util_entity::response::json_success; [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: `State` [INFO] [stdout] --> src/util/ws_util.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::extract::{State, WebSocketUpgrade}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/util/ws_util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/util/ws_util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Local` [INFO] [stdout] --> src/util/ws_util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Local; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/util_entity/anyhow_res.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `failed` and `json_failed` [INFO] [stdout] --> src/util_entity/anyhow_res.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util_entity::response::{failed, json_failed, success}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/middleware/machineindex_header_middleware.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{extract::{Request, State}, Json, middleware::Next, response::{IntoResponse, Response}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/util/ws_util.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | Message::Close(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_data` [INFO] [stdout] --> src/util/ws_util.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let ws_data: WSData = match serde_json::from_str(&content) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `machineIndex` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub machineIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `getNewValUrl` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub getNewValUrl: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_val_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `webUrl` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub webUrl: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `web_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `runtimePath` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub runtimePath: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `runtime_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Port` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub Port: u32, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Addr` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub Addr: String, // 电厂环境 [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.72s [INFO] running `Command { std: "docker" "inspect" "f7c5cefe17c9989615e3cc06cc8ba324b414e19f09a8a34c6fc52783bc467421", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7c5cefe17c9989615e3cc06cc8ba324b414e19f09a8a34c6fc52783bc467421", kill_on_drop: false }` [INFO] [stdout] f7c5cefe17c9989615e3cc06cc8ba324b414e19f09a8a34c6fc52783bc467421 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 4be3b0ec84ecbd31f323284ef0ea72ab0dd4c1a6286b88198f01e2db573e0f28 [INFO] running `Command { std: "docker" "start" "-a" "4be3b0ec84ecbd31f323284ef0ea72ab0dd4c1a6286b88198f01e2db573e0f28", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::util_entity::response::json_success` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util_entity::response::json_success; [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: `State` [INFO] [stdout] --> src/util/ws_util.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::extract::{State, WebSocketUpgrade}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/util/ws_util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/util/ws_util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Local` [INFO] [stdout] --> src/util/ws_util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Local; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/util_entity/anyhow_res.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `failed` and `json_failed` [INFO] [stdout] --> src/util_entity/anyhow_res.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util_entity::response::{failed, json_failed, success}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/middleware/machineindex_header_middleware.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{extract::{Request, State}, Json, middleware::Next, response::{IntoResponse, Response}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/util/ws_util.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | Message::Close(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_data` [INFO] [stdout] --> src/util/ws_util.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let ws_data: WSData = match serde_json::from_str(&content) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `machineIndex` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub machineIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `getNewValUrl` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub getNewValUrl: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_val_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `webUrl` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub webUrl: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `web_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `runtimePath` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub runtimePath: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `runtime_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Port` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub Port: u32, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Addr` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub Addr: String, // 电厂环境 [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ifnk_axum_util v0.1.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::util_entity::response::json_success` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util_entity::response::json_success; [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: `State` [INFO] [stdout] --> src/util/ws_util.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::extract::{State, WebSocketUpgrade}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/util/ws_util.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/util/ws_util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Local` [INFO] [stdout] --> src/util/ws_util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Local; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::error` [INFO] [stdout] --> src/util_entity/anyhow_res.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `failed` and `json_failed` [INFO] [stdout] --> src/util_entity/anyhow_res.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::util_entity::response::{failed, json_failed, success}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/middleware/machineindex_header_middleware.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{extract::{Request, State}, Json, middleware::Next, response::{IntoResponse, Response}}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/util/ws_util.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | Message::Close(close) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws_data` [INFO] [stdout] --> src/util/ws_util.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let ws_data: WSData = match serde_json::from_str(&content) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ws_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `machineIndex` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub machineIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `machine_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `getNewValUrl` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub getNewValUrl: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_val_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `webUrl` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub webUrl: String, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `web_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `runtimePath` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub runtimePath: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `runtime_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Port` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub Port: u32, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Addr` should have a snake case name [INFO] [stdout] --> src/util_entity/config.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub Addr: String, // 电厂环境 [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.80s [INFO] running `Command { std: "docker" "inspect" "4be3b0ec84ecbd31f323284ef0ea72ab0dd4c1a6286b88198f01e2db573e0f28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4be3b0ec84ecbd31f323284ef0ea72ab0dd4c1a6286b88198f01e2db573e0f28", kill_on_drop: false }` [INFO] [stdout] 4be3b0ec84ecbd31f323284ef0ea72ab0dd4c1a6286b88198f01e2db573e0f28