[INFO] cloning repository https://github.com/zheng93775/house-keeper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zheng93775/house-keeper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzheng93775%2Fhouse-keeper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzheng93775%2Fhouse-keeper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 04ad8b13cc01672a372fb14188afd975c6020d41 [INFO] checking zheng93775/house-keeper against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzheng93775%2Fhouse-keeper" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zheng93775/house-keeper [INFO] finished tweaking git repo https://github.com/zheng93775/house-keeper [INFO] tweaked toml for git repo https://github.com/zheng93775/house-keeper written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zheng93775/house-keeper on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zheng93775/house-keeper 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4223e62985ceb7772b907845287a4f138d46ba896645184777717329528a0f1 [INFO] running `Command { std: "docker" "start" "-a" "f4223e62985ceb7772b907845287a4f138d46ba896645184777717329528a0f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4223e62985ceb7772b907845287a4f138d46ba896645184777717329528a0f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4223e62985ceb7772b907845287a4f138d46ba896645184777717329528a0f1", kill_on_drop: false }` [INFO] [stdout] f4223e62985ceb7772b907845287a4f138d46ba896645184777717329528a0f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] addc7402fc6048e6aa049a0f54f1eb795cc8bf1a418915814ccb556800a2a1e9 [INFO] running `Command { std: "docker" "start" "-a" "addc7402fc6048e6aa049a0f54f1eb795cc8bf1a418915814ccb556800a2a1e9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking data-encoding v2.8.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking env_logger v0.11.6 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking tempfile v3.17.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.9 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking pin-project v1.1.9 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking uuid v1.14.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking house-keeper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Filter` [INFO] [stdout] --> src/models/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Filter, Reply, [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: `http::StatusCode` [INFO] [stdout] --> src/routes/auth.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use warp::{http::StatusCode, reject::Rejection, Filter, Reply}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Filter` [INFO] [stdout] --> src/models/error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Filter, Reply, [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: `http::StatusCode` [INFO] [stdout] --> src/routes/auth.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use warp::{http::StatusCode, reject::Rejection, Filter, Reply}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/routes/images.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | user: User, // 校验登录用户 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/routes/images.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | user: User, // 校验登录用户 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/routes/images.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | user: User, // 校验登录用户 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/routes/images.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | user: User, // 校验登录用户 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/backup.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | .map_err(|e| warp::reject::custom(AppError::BackupError))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/backup.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | .map_err(|e| warp::reject::custom(AppError::BackupError))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/backup.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | .map_err(|e| warp::reject::custom(AppError::BackupError))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/routes/backup.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | .map_err(|e| warp::reject::custom(AppError::BackupError))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidVersion`, `NotFound`, and `InternalServerError` are never constructed [INFO] [stdout] --> src/models/error.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | InvalidVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | InternalServerError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` 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 `handle_rejection` is never used [INFO] [stdout] --> src/models/error.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_rejection(err: Rejection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/house.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl House { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 45 | pub fn new(name: &str, creator: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/house.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl HouseDetail { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 56 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/user.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(username: &str, password: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_house_detail` is never used [INFO] [stdout] --> src/storage/file_storage.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl FileStorage { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn write_house_detail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:75:83 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 76 | | // 记录错误原因 [INFO] [stdout] 77 | | log::error!("Rejection error: {:?}", err); [INFO] [stdout] ... | [INFO] [stdout] 92 | | )) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:75:83 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 76 | | // 记录错误原因 [INFO] [stdout] 77 | | log::error!("Rejection error: {:?}", err); [INFO] [stdout] ... | [INFO] [stdout] 92 | | )) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | return Ok(warp::reply::with_status(json, status_code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / Ok(warp::reply::with_status( [INFO] [stdout] 90 | | json, [INFO] [stdout] 91 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 92 | | )) [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/models/error.rs:47:81 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_rejection(err: Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 48 | | let (code, message) = if let Some(e) = err.find::() { [INFO] [stdout] 49 | | (e.status_code(), e.to_string()) [INFO] [stdout] 50 | | } else if err.find::().is_some() { [INFO] [stdout] ... | [INFO] [stdout] 67 | | )) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/models/error.rs:47:81 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_rejection(err: Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 48 | | let (code, message) = if let Some(e) = err.find::() { [INFO] [stdout] 49 | | (e.status_code(), e.to_string()) [INFO] [stdout] 50 | | } else if err.find::().is_some() { [INFO] [stdout] ... | [INFO] [stdout] 67 | | )) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/models/error.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | / Ok(warp::reply::with_status( [INFO] [stdout] 63 | | warp::reply::json(&serde_json::json!({ [INFO] [stdout] 64 | | "message": message [INFO] [stdout] 65 | | })), [INFO] [stdout] 66 | | code, [INFO] [stdout] 67 | | )) [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidVersion`, `NotFound`, and `InternalServerError` are never constructed [INFO] [stdout] --> src/models/error.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | InvalidVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | InternalServerError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` 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 `handle_rejection` is never used [INFO] [stdout] --> src/models/error.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_rejection(err: Rejection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/house.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl House { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 45 | pub fn new(name: &str, creator: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/house.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl HouseDetail { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 56 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/user.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(username: &str, password: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_house_detail` is never used [INFO] [stdout] --> src/storage/file_storage.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl FileStorage { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn write_house_detail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:75:83 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 76 | | // 记录错误原因 [INFO] [stdout] 77 | | log::error!("Rejection error: {:?}", err); [INFO] [stdout] ... | [INFO] [stdout] 92 | | )) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:75:83 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 76 | | // 记录错误原因 [INFO] [stdout] 77 | | log::error!("Rejection error: {:?}", err); [INFO] [stdout] ... | [INFO] [stdout] 92 | | )) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | return Ok(warp::reply::with_status(json, status_code)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | / Ok(warp::reply::with_status( [INFO] [stdout] 90 | | json, [INFO] [stdout] 91 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 92 | | )) [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/models/error.rs:47:81 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_rejection(err: Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 48 | | let (code, message) = if let Some(e) = err.find::() { [INFO] [stdout] 49 | | (e.status_code(), e.to_string()) [INFO] [stdout] 50 | | } else if err.find::().is_some() { [INFO] [stdout] ... | [INFO] [stdout] 67 | | )) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/models/error.rs:47:81 [INFO] [stdout] | [INFO] [stdout] 47 | pub async fn handle_rejection(err: Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 48 | | let (code, message) = if let Some(e) = err.find::() { [INFO] [stdout] 49 | | (e.status_code(), e.to_string()) [INFO] [stdout] 50 | | } else if err.find::().is_some() { [INFO] [stdout] ... | [INFO] [stdout] 67 | | )) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/models/error.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | / Ok(warp::reply::with_status( [INFO] [stdout] 63 | | warp::reply::json(&serde_json::json!({ [INFO] [stdout] 64 | | "message": message [INFO] [stdout] 65 | | })), [INFO] [stdout] 66 | | code, [INFO] [stdout] 67 | | )) [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `house-keeper` (bin "house-keeper" test) due to 7 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `house-keeper` (bin "house-keeper") due to 7 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "addc7402fc6048e6aa049a0f54f1eb795cc8bf1a418915814ccb556800a2a1e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "addc7402fc6048e6aa049a0f54f1eb795cc8bf1a418915814ccb556800a2a1e9", kill_on_drop: false }` [INFO] [stdout] addc7402fc6048e6aa049a0f54f1eb795cc8bf1a418915814ccb556800a2a1e9