[INFO] cloning repository https://github.com/algodex/reverse-proxy-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/algodex/reverse-proxy-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falgodex%2Freverse-proxy-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falgodex%2Freverse-proxy-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b30b5d09e6daa19281fd9a8120a13b8b0d21ffb3 [INFO] checking algodex/reverse-proxy-rust 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%2Falgodex%2Freverse-proxy-rust" "/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/algodex/reverse-proxy-rust [INFO] finished tweaking git repo https://github.com/algodex/reverse-proxy-rust [INFO] tweaked toml for git repo https://github.com/algodex/reverse-proxy-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/algodex/reverse-proxy-rust 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/algodex/reverse-proxy-rust 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-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] f9c2d8eb29ec925dc7eaef4cbd70787be4a2a63da55140e88ebd21647e730e7d [INFO] running `Command { std: "docker" "start" "-a" "f9c2d8eb29ec925dc7eaef4cbd70787be4a2a63da55140e88ebd21647e730e7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9c2d8eb29ec925dc7eaef4cbd70787be4a2a63da55140e88ebd21647e730e7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9c2d8eb29ec925dc7eaef4cbd70787be4a2a63da55140e88ebd21647e730e7d", kill_on_drop: false }` [INFO] [stdout] f9c2d8eb29ec925dc7eaef4cbd70787be4a2a63da55140e88ebd21647e730e7d [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] 7fed0396d429acc339786d83b8587ac5ae674171b040c06e20c0cc44f41f1e19 [INFO] running `Command { std: "docker" "start" "-a" "7fed0396d429acc339786d83b8587ac5ae674171b040c06e20c0cc44f41f1e19", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling futures-core v0.3.23 [INFO] [stderr] Checking once_cell v1.13.1 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Compiling futures-task v0.3.23 [INFO] [stderr] Compiling futures-channel v0.3.23 [INFO] [stderr] Checking futures-sink v0.3.23 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling tokio v1.20.1 [INFO] [stderr] Compiling futures-util v0.3.23 [INFO] [stderr] Checking futures-io v0.3.23 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling serde v1.0.143 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.9.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling futures-macro v0.3.23 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling async-recursion v1.0.0 [INFO] [stderr] Checking futures-executor v0.3.23 [INFO] [stderr] Checking futures v0.3.23 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-reverse-proxy v0.5.1 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking reverse_proxy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 228 | if (uri_cache.get(uri).is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 228 - if (uri_cache.get(uri).is_none()) { [INFO] [stdout] 228 + if uri_cache.get(uri).is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 248 | if (uri_cache.get(uri).is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 248 - if (uri_cache.get(uri).is_none()) { [INFO] [stdout] 248 + if uri_cache.get(uri).is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 228 | if (uri_cache.get(uri).is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 228 - if (uri_cache.get(uri).is_none()) { [INFO] [stdout] 228 + if uri_cache.get(uri).is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 248 | if (uri_cache.get(uri).is_none()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 248 - if (uri_cache.get(uri).is_none()) { [INFO] [stdout] 248 + if uri_cache.get(uri).is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | background_refresh_cache(request_params.clone(), req_count).await; [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:215:85 [INFO] [stdout] | [INFO] [stdout] 215 | background_refresh_cache(request_params.clone(), req_count).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | background_refresh_cache(request_params.clone(), req_count).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:410:87 [INFO] [stdout] | [INFO] [stdout] 410 | async fn clear_cache(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 411 | | let header_map = req.headers(); [INFO] [stdout] 412 | | let header_clear_cache_key = header_map.get("clear-cache-key"); [INFO] [stdout] 413 | | let env = ENV.read().await; [INFO] [stdout] ... | [INFO] [stdout] 432 | | .unwrap()) [INFO] [stdout] 433 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:410:87 [INFO] [stdout] | [INFO] [stdout] 410 | async fn clear_cache(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 411 | | let header_map = req.headers(); [INFO] [stdout] 412 | | let header_clear_cache_key = header_map.get("clear-cache-key"); [INFO] [stdout] 413 | | let env = ENV.read().await; [INFO] [stdout] ... | [INFO] [stdout] 432 | | .unwrap()) [INFO] [stdout] 433 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:418:16 [INFO] [stdout] | [INFO] [stdout] 418 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 419 | | .status(StatusCode::UNAUTHORIZED) [INFO] [stdout] 420 | | .body(Body::from("Unauthorized")) [INFO] [stdout] 421 | | .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:429:5 [INFO] [stdout] | [INFO] [stdout] 429 | / Ok(Response::builder() [INFO] [stdout] 430 | | .status(StatusCode::OK) [INFO] [stdout] 431 | | .body(Body::from(format!("Cleared Cache for {clear_cache_url}"))) [INFO] [stdout] 432 | | .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:438:48 [INFO] [stdout] | [INFO] [stdout] 438 | ) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 439 | | let RequestParams { uri, query_str, header_map, method, body, request_etag } = request_params; [INFO] [stdout] 440 | | [INFO] [stdout] 441 | | let uri_path = uri.clone(); //fixme - clean this up? not necessary [INFO] [stdout] ... | [INFO] [stdout] 528 | | }; [INFO] [stdout] 529 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:464:12 [INFO] [stdout] | [INFO] [stdout] 464 | return match response { [INFO] [stdout] | ____________^ [INFO] [stdout] 465 | | Ok(response) => { [INFO] [stdout] 466 | | debug_dbg!(&response); [INFO] [stdout] 467 | | let resp_headers = response.headers().clone(); [INFO] [stdout] ... | [INFO] [stdout] 528 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:465:25 [INFO] [stdout] | [INFO] [stdout] 465 | Ok(response) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 466 | | debug_dbg!(&response); [INFO] [stdout] 467 | | let resp_headers = response.headers().clone(); [INFO] [stdout] 468 | | let proxy_text = match response.text().await { [INFO] [stdout] ... | [INFO] [stdout] 516 | | Ok(build_response(&proxy_text, &resp_headers, &request_etag)) [INFO] [stdout] 517 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:476:28 [INFO] [stdout] | [INFO] [stdout] 476 | return Ok(Response::builder() [INFO] [stdout] | ____________________________^ [INFO] [stdout] 477 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 478 | | .body(Body::from(format!( [INFO] [stdout] 479 | | "error response when getting body text from {uri_path}" [INFO] [stdout] 480 | | ))) [INFO] [stdout] 481 | | .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:516:13 [INFO] [stdout] | [INFO] [stdout] 516 | Ok(build_response(&proxy_text, &resp_headers, &request_etag)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:518:23 [INFO] [stdout] | [INFO] [stdout] 518 | Err(error) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 519 | | let error_resp = [INFO] [stdout] 520 | | format!("error in response from background fetch {uri_path} {error:?}"); [INFO] [stdout] 521 | | debug_println!("{error_resp}"); [INFO] [stdout] ... | [INFO] [stdout] 526 | | .unwrap()) [INFO] [stdout] 527 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:523:13 [INFO] [stdout] | [INFO] [stdout] 523 | / Ok(Response::builder() [INFO] [stdout] 524 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 525 | | .body(Body::from(error_resp)) [INFO] [stdout] 526 | | .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:534:48 [INFO] [stdout] | [INFO] [stdout] 534 | ) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 535 | | debug_println!("in handle"); [INFO] [stdout] 536 | | [INFO] [stdout] 537 | | let method = req.method().clone(); [INFO] [stdout] ... | [INFO] [stdout] 616 | | return background_refresh_cache(req_params, count).await; [INFO] [stdout] 617 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:554:16 [INFO] [stdout] | [INFO] [stdout] 554 | return clear_cache(req).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:554:33 [INFO] [stdout] | [INFO] [stdout] 554 | return clear_cache(req).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:554:16 [INFO] [stdout] | [INFO] [stdout] 554 | return clear_cache(req).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:576:20 [INFO] [stdout] | [INFO] [stdout] 576 | return Ok(build_response( [INFO] [stdout] | ____________________^ [INFO] [stdout] 577 | | &uri_entry.response_body.unwrap(), [INFO] [stdout] 578 | | &uri_entry.resp_headers.unwrap(), [INFO] [stdout] 579 | | &request_etag, [INFO] [stdout] 580 | | )); [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:602:20 [INFO] [stdout] | [INFO] [stdout] 602 | return Ok(build_response( [INFO] [stdout] | ____________________^ [INFO] [stdout] 603 | | &x.response_body.unwrap(), [INFO] [stdout] 604 | | &x.resp_headers.unwrap(), [INFO] [stdout] 605 | | &request_etag, [INFO] [stdout] 606 | | )); [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:608:20 [INFO] [stdout] | [INFO] [stdout] 608 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 609 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 610 | | .body(Body::from(cached_resp.unwrap_err().message)) [INFO] [stdout] 611 | | .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:616:12 [INFO] [stdout] | [INFO] [stdout] 616 | return background_refresh_cache(req_params, count).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:616:56 [INFO] [stdout] | [INFO] [stdout] 616 | return background_refresh_cache(req_params, count).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | background_refresh_cache(request_params.clone(), req_count).await; [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:215:85 [INFO] [stdout] | [INFO] [stdout] 215 | background_refresh_cache(request_params.clone(), req_count).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | background_refresh_cache(request_params.clone(), req_count).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:410:87 [INFO] [stdout] | [INFO] [stdout] 410 | async fn clear_cache(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 411 | | let header_map = req.headers(); [INFO] [stdout] 412 | | let header_clear_cache_key = header_map.get("clear-cache-key"); [INFO] [stdout] 413 | | let env = ENV.read().await; [INFO] [stdout] ... | [INFO] [stdout] 432 | | .unwrap()) [INFO] [stdout] 433 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:410:87 [INFO] [stdout] | [INFO] [stdout] 410 | async fn clear_cache(req: Request) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 411 | | let header_map = req.headers(); [INFO] [stdout] 412 | | let header_clear_cache_key = header_map.get("clear-cache-key"); [INFO] [stdout] 413 | | let env = ENV.read().await; [INFO] [stdout] ... | [INFO] [stdout] 432 | | .unwrap()) [INFO] [stdout] 433 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:418:16 [INFO] [stdout] | [INFO] [stdout] 418 | return Ok(Response::builder() [INFO] [stdout] | ________________^ [INFO] [stdout] 419 | | .status(StatusCode::UNAUTHORIZED) [INFO] [stdout] 420 | | .body(Body::from("Unauthorized")) [INFO] [stdout] 421 | | .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:429:5 [INFO] [stdout] | [INFO] [stdout] 429 | / Ok(Response::builder() [INFO] [stdout] 430 | | .status(StatusCode::OK) [INFO] [stdout] 431 | | .body(Body::from(format!("Cleared Cache for {clear_cache_url}"))) [INFO] [stdout] 432 | | .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:438:48 [INFO] [stdout] | [INFO] [stdout] 438 | ) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 439 | | let RequestParams { uri, query_str, header_map, method, body, request_etag } = request_params; [INFO] [stdout] 440 | | [INFO] [stdout] 441 | | let uri_path = uri.clone(); //fixme - clean this up? not necessary [INFO] [stdout] ... | [INFO] [stdout] 528 | | }; [INFO] [stdout] 529 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:616:12 [INFO] [stdout] | [INFO] [stdout] 616 | return background_refresh_cache(req_params, count).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:464:12 [INFO] [stdout] | [INFO] [stdout] 464 | return match response { [INFO] [stdout] | ____________^ [INFO] [stdout] 465 | | Ok(response) => { [INFO] [stdout] 466 | | debug_dbg!(&response); [INFO] [stdout] 467 | | let resp_headers = response.headers().clone(); [INFO] [stdout] ... | [INFO] [stdout] 528 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:465:25 [INFO] [stdout] | [INFO] [stdout] 465 | Ok(response) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 466 | | debug_dbg!(&response); [INFO] [stdout] 467 | | let resp_headers = response.headers().clone(); [INFO] [stdout] 468 | | let proxy_text = match response.text().await { [INFO] [stdout] ... | [INFO] [stdout] 516 | | Ok(build_response(&proxy_text, &resp_headers, &request_etag)) [INFO] [stdout] 517 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:476:28 [INFO] [stdout] | [INFO] [stdout] 476 | return Ok(Response::builder() [INFO] [stdout] | ____________________________^ [INFO] [stdout] 477 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 478 | | .body(Body::from(format!( [INFO] [stdout] 479 | | "error response when getting body text from {uri_path}" [INFO] [stdout] 480 | | ))) [INFO] [stdout] 481 | | .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:516:13 [INFO] [stdout] | [INFO] [stdout] 516 | Ok(build_response(&proxy_text, &resp_headers, &request_etag)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:518:23 [INFO] [stdout] | [INFO] [stdout] 518 | Err(error) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 519 | | let error_resp = [INFO] [stdout] 520 | | format!("error in response from background fetch {uri_path} {error:?}"); [INFO] [stdout] 521 | | debug_println!("{error_resp}"); [INFO] [stdout] ... | [INFO] [stdout] 526 | | .unwrap()) [INFO] [stdout] 527 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:523:13 [INFO] [stdout] | [INFO] [stdout] 523 | / Ok(Response::builder() [INFO] [stdout] 524 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 525 | | .body(Body::from(error_resp)) [INFO] [stdout] 526 | | .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:534:48 [INFO] [stdout] | [INFO] [stdout] 534 | ) -> Result, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 535 | | debug_println!("in handle"); [INFO] [stdout] 536 | | [INFO] [stdout] 537 | | let method = req.method().clone(); [INFO] [stdout] ... | [INFO] [stdout] 616 | | return background_refresh_cache(req_params, count).await; [INFO] [stdout] 617 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:554:16 [INFO] [stdout] | [INFO] [stdout] 554 | return clear_cache(req).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:554:33 [INFO] [stdout] | [INFO] [stdout] 554 | return clear_cache(req).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:554:16 [INFO] [stdout] | [INFO] [stdout] 554 | return clear_cache(req).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:576:20 [INFO] [stdout] | [INFO] [stdout] 576 | return Ok(build_response( [INFO] [stdout] | ____________________^ [INFO] [stdout] 577 | | &uri_entry.response_body.unwrap(), [INFO] [stdout] 578 | | &uri_entry.resp_headers.unwrap(), [INFO] [stdout] 579 | | &request_etag, [INFO] [stdout] 580 | | )); [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:602:20 [INFO] [stdout] | [INFO] [stdout] 602 | return Ok(build_response( [INFO] [stdout] | ____________________^ [INFO] [stdout] 603 | | &x.response_body.unwrap(), [INFO] [stdout] 604 | | &x.resp_headers.unwrap(), [INFO] [stdout] 605 | | &request_etag, [INFO] [stdout] 606 | | )); [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:608:20 [INFO] [stdout] | [INFO] [stdout] 608 | return Ok(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 609 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 610 | | .body(Body::from(cached_resp.unwrap_err().message)) [INFO] [stdout] 611 | | .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:616:12 [INFO] [stdout] | [INFO] [stdout] 616 | return background_refresh_cache(req_params, count).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:616:56 [INFO] [stdout] | [INFO] [stdout] 616 | return background_refresh_cache(req_params, count).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:616:12 [INFO] [stdout] | [INFO] [stdout] 616 | return background_refresh_cache(req_params, count).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:635:20 [INFO] [stdout] | [INFO] [stdout] 635 | async move { Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, 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:635:20 [INFO] [stdout] | [INFO] [stdout] 635 | async move { Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, 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:635:22 [INFO] [stdout] | [INFO] [stdout] 635 | async move { Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, 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:635:22 [INFO] [stdout] | [INFO] [stdout] 635 | async move { Ok::<_, Infallible>(service_fn(move |req| handle(remote_addr, req))) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `reverse_proxy` (bin "reverse_proxy" test) due to 26 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `reverse_proxy` (bin "reverse_proxy") due to 26 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7fed0396d429acc339786d83b8587ac5ae674171b040c06e20c0cc44f41f1e19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fed0396d429acc339786d83b8587ac5ae674171b040c06e20c0cc44f41f1e19", kill_on_drop: false }` [INFO] [stdout] 7fed0396d429acc339786d83b8587ac5ae674171b040c06e20c0cc44f41f1e19