[INFO] cloning repository https://github.com/poisonlylo/Load-balancer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/poisonlylo/Load-balancer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpoisonlylo%2FLoad-balancer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpoisonlylo%2FLoad-balancer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c98cdecb7015ed2c77f03ec69ce070e1c473a3a4 [INFO] checking poisonlylo/Load-balancer 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%2Fpoisonlylo%2FLoad-balancer" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/poisonlylo/Load-balancer [INFO] finished tweaking git repo https://github.com/poisonlylo/Load-balancer [INFO] tweaked toml for git repo https://github.com/poisonlylo/Load-balancer written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/poisonlylo/Load-balancer 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/poisonlylo/Load-balancer 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] d0d20193121e8c9ba1852e46836218feba9dc9d14ca50f926a7bb4094f71bf9a [INFO] running `Command { std: "docker" "start" "-a" "d0d20193121e8c9ba1852e46836218feba9dc9d14ca50f926a7bb4094f71bf9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0d20193121e8c9ba1852e46836218feba9dc9d14ca50f926a7bb4094f71bf9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0d20193121e8c9ba1852e46836218feba9dc9d14ca50f926a7bb4094f71bf9a", kill_on_drop: false }` [INFO] [stdout] d0d20193121e8c9ba1852e46836218feba9dc9d14ca50f926a7bb4094f71bf9a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] cbefd6ce23119d2ef246ba635636e558ae95bce8ae1a2f1b5948ac240ddf6605 [INFO] running `Command { std: "docker" "start" "-a" "cbefd6ce23119d2ef246ba635636e558ae95bce8ae1a2f1b5948ac240ddf6605", kill_on_drop: false }` [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-reverse-proxy v0.5.1 [INFO] [stderr] Checking load_balancer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / #[structopt(help = "URL des serveurs amont")] [INFO] [stdout] 13 | | upstream: Vec, [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:17:94 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(client_ip: IpAddr, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 18 | | if req.uri().path().starts_with("/first") { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:17:94 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(client_ip: IpAddr, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 18 | | if req.uri().path().starts_with("/first") { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / if req.uri().path().starts_with("/first") { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] 21 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 38 | | debug_request(req) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | if req.uri().path().starts_with("/first") { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] 21 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 27 | | } else if req.uri().path().starts_with("/second") { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | / match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] 21 | | Ok(response) => Ok(response), [INFO] [stdout] 22 | | Err(_error) => Ok(Response::builder() [INFO] [stdout] 23 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 24 | | .body(Body::empty()) [INFO] [stdout] 25 | | .unwrap()), [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | Err(_error) => Ok(Response::builder() [INFO] [stdout] | ____________________________^ [INFO] [stdout] 23 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 24 | | .body(Body::empty()) [INFO] [stdout] 25 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | } else if req.uri().path().starts_with("/second") { [INFO] [stdout] | ____________^ [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | match hyper_reverse_proxy::call(client_ip, "http://cloud.homelab.lan", req).await { [INFO] [stdout] 30 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 38 | | debug_request(req) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:27:55 [INFO] [stdout] | [INFO] [stdout] 27 | } else if req.uri().path().starts_with("/second") { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | match hyper_reverse_proxy::call(client_ip, "http://cloud.homelab.lan", req).await { [INFO] [stdout] 30 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 36 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | / match hyper_reverse_proxy::call(client_ip, "http://cloud.homelab.lan", req).await { [INFO] [stdout] 30 | | Ok(response) => Ok(response), [INFO] [stdout] 31 | | Err(_error) => Ok(Response::builder() [INFO] [stdout] 32 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 33 | | .body(Body::empty()) [INFO] [stdout] 34 | | .unwrap()), [INFO] [stdout] 35 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | Err(_error) => Ok(Response::builder() [INFO] [stdout] | ____________________________^ [INFO] [stdout] 32 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 33 | | .body(Body::empty()) [INFO] [stdout] 34 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 37 | | // Gestionnaire de requêtes de débogage [INFO] [stdout] 38 | | debug_request(req) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | debug_request(req) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:43:76 [INFO] [stdout] | [INFO] [stdout] 43 | fn debug_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 44 | | let body_str = format!("{:?}", req); [INFO] [stdout] 45 | | Ok(Response::new(Body::from(body_str))) [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(Response::new(Body::from(body_str))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 67 | | Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, req))) [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/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, req))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `load_balancer` (bin "load_balancer" test) due to 19 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / #[structopt(help = "URL des serveurs amont")] [INFO] [stdout] 13 | | upstream: Vec, [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:17:94 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(client_ip: IpAddr, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 18 | | if req.uri().path().starts_with("/first") { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:17:94 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(client_ip: IpAddr, req: Request) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 18 | | if req.uri().path().starts_with("/first") { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] ... | [INFO] [stdout] 40 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / if req.uri().path().starts_with("/first") { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] 21 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 38 | | debug_request(req) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:18:47 [INFO] [stdout] | [INFO] [stdout] 18 | if req.uri().path().starts_with("/first") { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] 21 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 27 | | } else if req.uri().path().starts_with("/second") { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | / match hyper_reverse_proxy::call(client_ip, "http://arr.homelab.lan/", req).await { [INFO] [stdout] 21 | | Ok(response) => Ok(response), [INFO] [stdout] 22 | | Err(_error) => Ok(Response::builder() [INFO] [stdout] 23 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 24 | | .body(Body::empty()) [INFO] [stdout] 25 | | .unwrap()), [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | Err(_error) => Ok(Response::builder() [INFO] [stdout] | ____________________________^ [INFO] [stdout] 23 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 24 | | .body(Body::empty()) [INFO] [stdout] 25 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | } else if req.uri().path().starts_with("/second") { [INFO] [stdout] | ____________^ [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | match hyper_reverse_proxy::call(client_ip, "http://cloud.homelab.lan", req).await { [INFO] [stdout] 30 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 38 | | debug_request(req) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:27:55 [INFO] [stdout] | [INFO] [stdout] 27 | } else if req.uri().path().starts_with("/second") { [INFO] [stdout] | _______________________________________________________^ [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | match hyper_reverse_proxy::call(client_ip, "http://cloud.homelab.lan", req).await { [INFO] [stdout] 30 | | Ok(response) => Ok(response), [INFO] [stdout] ... | [INFO] [stdout] 36 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | / match hyper_reverse_proxy::call(client_ip, "http://cloud.homelab.lan", req).await { [INFO] [stdout] 30 | | Ok(response) => Ok(response), [INFO] [stdout] 31 | | Err(_error) => Ok(Response::builder() [INFO] [stdout] 32 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 33 | | .body(Body::empty()) [INFO] [stdout] 34 | | .unwrap()), [INFO] [stdout] 35 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | Ok(response) => Ok(response), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | Err(_error) => Ok(Response::builder() [INFO] [stdout] | ____________________________^ [INFO] [stdout] 32 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 33 | | .body(Body::empty()) [INFO] [stdout] 34 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 37 | | // Gestionnaire de requêtes de débogage [INFO] [stdout] 38 | | debug_request(req) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | debug_request(req) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:43:76 [INFO] [stdout] | [INFO] [stdout] 43 | fn debug_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 44 | | let body_str = format!("{:?}", req); [INFO] [stdout] 45 | | Ok(Response::new(Body::from(body_str))) [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | Ok(Response::new(Body::from(body_str))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | async move { [INFO] [stdout] | ____________________^ [INFO] [stdout] 67 | | Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, req))) [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/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, req))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `load_balancer` (bin "load_balancer") due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "cbefd6ce23119d2ef246ba635636e558ae95bce8ae1a2f1b5948ac240ddf6605", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbefd6ce23119d2ef246ba635636e558ae95bce8ae1a2f1b5948ac240ddf6605", kill_on_drop: false }` [INFO] [stdout] cbefd6ce23119d2ef246ba635636e558ae95bce8ae1a2f1b5948ac240ddf6605