[INFO] cloning repository https://github.com/Nentropic-0x0/http-server-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nentropic-0x0/http-server-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNentropic-0x0%2Fhttp-server-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNentropic-0x0%2Fhttp-server-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96e4cea115e623ff43c01c8d382320f55c7dc3ae [INFO] checking Nentropic-0x0/http-server-rs 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%2FNentropic-0x0%2Fhttp-server-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Nentropic-0x0/http-server-rs [INFO] finished tweaking git repo https://github.com/Nentropic-0x0/http-server-rs [INFO] tweaked toml for git repo https://github.com/Nentropic-0x0/http-server-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Nentropic-0x0/http-server-rs 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/Nentropic-0x0/http-server-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 980b7ecc09da77cfd360e39cd5ae29ebd0081a535cd3fb312c9de5233c87ac22 [INFO] running `Command { std: "docker" "start" "-a" "980b7ecc09da77cfd360e39cd5ae29ebd0081a535cd3fb312c9de5233c87ac22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "980b7ecc09da77cfd360e39cd5ae29ebd0081a535cd3fb312c9de5233c87ac22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "980b7ecc09da77cfd360e39cd5ae29ebd0081a535cd3fb312c9de5233c87ac22", kill_on_drop: false }` [INFO] [stdout] 980b7ecc09da77cfd360e39cd5ae29ebd0081a535cd3fb312c9de5233c87ac22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 0a3b9714bd59abebbed47c49d9caecea9f54a88ca77486cd5f10ed64e6a99801 [INFO] running `Command { std: "docker" "start" "-a" "0a3b9714bd59abebbed47c49d9caecea9f54a88ca77486cd5f10ed64e6a99801", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Compiling curl v0.4.47 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling curl-sys v0.4.77+curl-8.10.1 [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 regex v1.11.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::json; [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: `warp::http::StatusCode` [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | use warp::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::json; [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: `warp::http::StatusCode` [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | use warp::http::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alerts` [INFO] [stdout] --> src/main.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_alerts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alerts` [INFO] [stdout] --> src/main.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_alerts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Alert` is more private than the item `get_alerts` [INFO] [stdout] --> src/main.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_alerts(crowdsec_url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_alerts` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Alert` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Alert { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Alert` is more private than the item `send_alert` [INFO] [stdout] --> src/main.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub async fn send_alert(crowdsec_url: &str, alert: &Alert) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `send_alert` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Alert` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Alert { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Alert` is more private than the item `get_alerts` [INFO] [stdout] --> src/main.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_alerts(crowdsec_url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_alerts` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Alert` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Alert { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Alert` is more private than the item `send_alert` [INFO] [stdout] --> src/main.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub async fn send_alert(crowdsec_url: &str, alert: &Alert) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `send_alert` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Alert` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | struct Alert { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_env` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn load_env() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `easy_url` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn easy_url() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_env` is never used [INFO] [stdout] --> src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn load_env() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `easy_url` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn easy_url() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:102:70 [INFO] [stdout] | [INFO] [stdout] 102 | async fn handle_get_alerts() -> Result { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 103 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 104 | | match crate::get_alerts(crowdsec_url).await { [INFO] [stdout] 105 | | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [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:102:70 [INFO] [stdout] | [INFO] [stdout] 102 | async fn handle_get_alerts() -> Result { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 103 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 104 | | match crate::get_alerts(crowdsec_url).await { [INFO] [stdout] 105 | | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / match crate::get_alerts(crowdsec_url).await { [INFO] [stdout] 105 | | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] 106 | | Err(_) => Ok(warp::reply::with_status("Failed to fetch alerts", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:102:70 [INFO] [stdout] | [INFO] [stdout] 102 | async fn handle_get_alerts() -> Result { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 103 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 104 | | match crate::get_alerts(crowdsec_url).await { [INFO] [stdout] 105 | | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [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:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | Err(_) => Ok(warp::reply::with_status("Failed to fetch alerts", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:102:70 [INFO] [stdout] | [INFO] [stdout] 102 | async fn handle_get_alerts() -> Result { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 103 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 104 | | match crate::get_alerts(crowdsec_url).await { [INFO] [stdout] 105 | | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / match crate::get_alerts(crowdsec_url).await { [INFO] [stdout] 105 | | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] 106 | | Err(_) => Ok(warp::reply::with_status("Failed to fetch alerts", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:110:83 [INFO] [stdout] | [INFO] [stdout] 110 | async fn handle_post_alerts(alert: Alert) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 111 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 112 | | match crate::send_alert(crowdsec_url, &alert ).await { [INFO] [stdout] 113 | | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | Ok(alerts) => Ok(warp::reply::with_status("Alert retrieved", warp::http::StatusCode::OK)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | Err(_) => Ok(warp::reply::with_status("Failed to fetch alerts", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:110:83 [INFO] [stdout] | [INFO] [stdout] 110 | async fn handle_post_alerts(alert: Alert) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 111 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 112 | | match crate::send_alert(crowdsec_url, &alert ).await { [INFO] [stdout] 113 | | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / match crate::send_alert(crowdsec_url, &alert ).await { [INFO] [stdout] 113 | | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] 114 | | Err(_) => Ok(warp::reply::with_status("Failed to send alert", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | Err(_) => Ok(warp::reply::with_status("Failed to send alert", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:110:83 [INFO] [stdout] | [INFO] [stdout] 110 | async fn handle_post_alerts(alert: Alert) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 111 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 112 | | match crate::send_alert(crowdsec_url, &alert ).await { [INFO] [stdout] 113 | | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:110:83 [INFO] [stdout] | [INFO] [stdout] 110 | async fn handle_post_alerts(alert: Alert) -> Result { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 111 | | let crowdsec_url = "https://cti.api.crowdsec.net/v2/alerts"; // Replace with actual URL or configuration [INFO] [stdout] 112 | | match crate::send_alert(crowdsec_url, &alert ).await { [INFO] [stdout] 113 | | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / match crate::send_alert(crowdsec_url, &alert ).await { [INFO] [stdout] 113 | | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] 114 | | Err(_) => Ok(warp::reply::with_status("Failed to send alert", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | Ok(_) => Ok(warp::reply::with_status("Alert Sent", warp::http::StatusCode::OK)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | Err(_) => Ok(warp::reply::with_status("Failed to send alert", warp::http::StatusCode::INTERNAL_SERVER_ERROR)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http-server` (bin "http-server" test) due to 10 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `http-server` (bin "http-server") due to 10 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0a3b9714bd59abebbed47c49d9caecea9f54a88ca77486cd5f10ed64e6a99801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a3b9714bd59abebbed47c49d9caecea9f54a88ca77486cd5f10ed64e6a99801", kill_on_drop: false }` [INFO] [stdout] 0a3b9714bd59abebbed47c49d9caecea9f54a88ca77486cd5f10ed64e6a99801