[INFO] cloning repository https://github.com/jiangzihan/template_actix [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jiangzihan/template_actix" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiangzihan%2Ftemplate_actix", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiangzihan%2Ftemplate_actix'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 30fbce6fe34a5069d64e974741be318ee4a2ade3 [INFO] building jiangzihan/template_actix against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiangzihan%2Ftemplate_actix" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jiangzihan/template_actix [INFO] finished tweaking git repo https://github.com/jiangzihan/template_actix [INFO] tweaked toml for git repo https://github.com/jiangzihan/template_actix written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jiangzihan/template_actix on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jiangzihan/template_actix 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fcdcc924b7a63ba7c43850936d58e6a0b290cd840686816617270b720eb056cb [INFO] running `Command { std: "docker" "start" "-a" "fcdcc924b7a63ba7c43850936d58e6a0b290cd840686816617270b720eb056cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fcdcc924b7a63ba7c43850936d58e6a0b290cd840686816617270b720eb056cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcdcc924b7a63ba7c43850936d58e6a0b290cd840686816617270b720eb056cb", kill_on_drop: false }` [INFO] [stdout] fcdcc924b7a63ba7c43850936d58e6a0b290cd840686816617270b720eb056cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49623ed10bc47f692004e23c1ee4c53579c7e96a173fab03c233b566ab41b4b2 [INFO] running `Command { std: "docker" "start" "-a" "49623ed10bc47f692004e23c1ee4c53579c7e96a173fab03c233b566ab41b4b2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling flate2 v1.0.34 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling cc v1.1.22 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling webpki v0.22.4 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-tls v3.4.0 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling actix-session v0.10.1 [INFO] [stderr] Compiling actix-cors v0.7.0 [INFO] [stderr] Compiling actix-ws v0.3.0 [INFO] [stderr] Compiling template_actix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/endpoint.rs:1:63 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{cookie::Key, dev, http::{header, StatusCode}, web, App, HttpServer, Result}; [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: `StatusCode` [INFO] [stdout] --> src/endpoint/metrics.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::http::{header, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/endpoint/ws.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | cfg.route("/ws", web::get().to(echo));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpRequest`, `HttpResponse`, `HttpServer`, `Responder`, `Result`, `get`, `post`, and `web` [INFO] [stdout] --> src/controller/core.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder, Result}; [INFO] [stdout] | ^^^ ^^^^ ^^^ ^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/controller/core.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hdr` [INFO] [stdout] --> src/endpoint/metrics.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(hdr) = req.headers().get(header::CONTENT_TYPE) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hdr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/endpoint/metrics.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn index(request: HttpRequest) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ok` is never constructed [INFO] [stdout] --> src/errcode/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCodes { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 7 | Ok = 10000, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCodes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handler` is never used [INFO] [stdout] --> src/endpoint/metrics.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | async fn handler(req: HttpRequest) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "49623ed10bc47f692004e23c1ee4c53579c7e96a173fab03c233b566ab41b4b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49623ed10bc47f692004e23c1ee4c53579c7e96a173fab03c233b566ab41b4b2", kill_on_drop: false }` [INFO] [stdout] 49623ed10bc47f692004e23c1ee4c53579c7e96a173fab03c233b566ab41b4b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9370a9ec96f234a38e1c11e091d00106a4afbd80b1afd9c46ce0d7f772d8ad0d [INFO] running `Command { std: "docker" "start" "-a" "9370a9ec96f234a38e1c11e091d00106a4afbd80b1afd9c46ce0d7f772d8ad0d", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/endpoint.rs:1:63 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{cookie::Key, dev, http::{header, StatusCode}, web, App, HttpServer, Result}; [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: `StatusCode` [INFO] [stdout] --> src/endpoint/metrics.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::http::{header, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/endpoint/ws.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | cfg.route("/ws", web::get().to(echo));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpRequest`, `HttpResponse`, `HttpServer`, `Responder`, `Result`, `get`, `post`, and `web` [INFO] [stdout] --> src/controller/core.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder, Result}; [INFO] [stdout] | ^^^ ^^^^ ^^^ ^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/controller/core.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hdr` [INFO] [stdout] --> src/endpoint/metrics.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(hdr) = req.headers().get(header::CONTENT_TYPE) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hdr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/endpoint/metrics.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn index(request: HttpRequest) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ok` is never constructed [INFO] [stdout] --> src/errcode/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCodes { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 7 | Ok = 10000, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCodes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling template_actix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `handler` is never used [INFO] [stdout] --> src/endpoint/metrics.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | async fn handler(req: HttpRequest) -> HttpResponse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hdr` [INFO] [stdout] --> tests/test_check.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | if let Some(hdr) = req.headers().get(header::CONTENT_TYPE) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hdr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> tests/test_check.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{test, HttpRequest, HttpResponse, HttpMessage}; [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: `web` [INFO] [stdout] --> src/endpoint.rs:1:63 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{cookie::Key, dev, http::{header, StatusCode}, web, App, HttpServer, Result}; [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: `StatusCode` [INFO] [stdout] --> src/endpoint/metrics.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::http::{header, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StatusCode` and `self` [INFO] [stdout] --> src/endpoint/metrics.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | http::{self, header::ContentType, StatusCode}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/endpoint/metrics.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/endpoint/ws.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | cfg.route("/ws", web::get().to(echo));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpRequest`, `HttpResponse`, `HttpServer`, `Responder`, `Result`, `get`, `post`, and `web` [INFO] [stdout] --> src/controller/core.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{get, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder, Result}; [INFO] [stdout] | ^^^ ^^^^ ^^^ ^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/controller/core.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hdr` [INFO] [stdout] --> src/endpoint/metrics.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(hdr) = req.headers().get(header::CONTENT_TYPE) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hdr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> src/endpoint/metrics.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn index(request: HttpRequest) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ok` is never constructed [INFO] [stdout] --> src/errcode/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ErrorCodes { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 7 | Ok = 10000, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorCodes` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.98s [INFO] running `Command { std: "docker" "inspect" "9370a9ec96f234a38e1c11e091d00106a4afbd80b1afd9c46ce0d7f772d8ad0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9370a9ec96f234a38e1c11e091d00106a4afbd80b1afd9c46ce0d7f772d8ad0d", kill_on_drop: false }` [INFO] [stdout] 9370a9ec96f234a38e1c11e091d00106a4afbd80b1afd9c46ce0d7f772d8ad0d