[INFO] cloning repository https://github.com/ajju10/gateway-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ajju10/gateway-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajju10%2Fgateway-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fajju10%2Fgateway-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c16474bf575ae6ab19e8d4dfd65889e42e3e22c6 [INFO] checking ajju10/gateway-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%2Fajju10%2Fgateway-rs" "/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/ajju10/gateway-rs [INFO] finished tweaking git repo https://github.com/ajju10/gateway-rs [INFO] tweaked toml for git repo https://github.com/ajju10/gateway-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ajju10/gateway-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/ajju10/gateway-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] 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] 6a5de6ad28e80841483f7ce6e44fe413f9914ebc99e1173f4a77e79c7c489652 [INFO] running `Command { std: "docker" "start" "-a" "6a5de6ad28e80841483f7ce6e44fe413f9914ebc99e1173f4a77e79c7c489652", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a5de6ad28e80841483f7ce6e44fe413f9914ebc99e1173f4a77e79c7c489652", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a5de6ad28e80841483f7ce6e44fe413f9914ebc99e1173f4a77e79c7c489652", kill_on_drop: false }` [INFO] [stdout] 6a5de6ad28e80841483f7ce6e44fe413f9914ebc99e1173f4a77e79c7c489652 [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] 42fe6625576bd9b6ebfeda910680d0329abf612228ff7d5b99463e88b7793449 [INFO] running `Command { std: "docker" "start" "-a" "42fe6625576bd9b6ebfeda910680d0329abf612228ff7d5b99463e88b7793449", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling serde_core v1.0.225 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling aws-lc-rs v1.14.0 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking deranged v0.5.3 [INFO] [stderr] Checking webpki-roots v1.0.2 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Checking time-core v0.1.6 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking indexmap v2.11.3 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling cc v1.2.37 [INFO] [stderr] Checking yaml-rust2 v0.10.4 [INFO] [stderr] Checking time v0.3.43 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.31.0 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking config v0.15.16 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.225 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking serde v1.0.225 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking humantime-serde v1.1.1 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking rustls-webpki v0.103.6 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking tokio-rustls v0.26.3 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking portiq v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:78:65 [INFO] [stdout] | [INFO] [stdout] 78 | ) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 79 | | let original_request = request; [INFO] [stdout] 80 | | // Extract host from header for http/1.1 requests [INFO] [stdout] 81 | | let original_host = if let Some(host) = original_request [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [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: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:78:65 [INFO] [stdout] | [INFO] [stdout] 78 | ) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 79 | | let original_request = request; [INFO] [stdout] 80 | | // Extract host from header for http/1.1 requests [INFO] [stdout] 81 | | let original_host = if let Some(host) = original_request [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / match router.get_http_route(original_host, original_path, &context.listener) { [INFO] [stdout] 97 | | Ok(route) => { [INFO] [stdout] 98 | | let service_name = route.get_service(); [INFO] [stdout] 99 | | if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | Ok(route) => { [INFO] [stdout] | ______________________^ [INFO] [stdout] 98 | | let service_name = route.get_service(); [INFO] [stdout] 99 | | if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] 100 | | let named_middlewares = route.get_middlewares(); [INFO] [stdout] ... | [INFO] [stdout] 126 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | / if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] 100 | | let named_middlewares = route.get_middlewares(); [INFO] [stdout] 101 | | let mut route_middlewares = Vec::new(); [INFO] [stdout] 102 | | let middleware_configs = ¤t_config.http.middlewares; [INFO] [stdout] ... | [INFO] [stdout] 124 | | Ok(response_with_status(StatusCode::SERVICE_UNAVAILABLE)) [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:99:75 [INFO] [stdout] | [INFO] [stdout] 99 | if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 100 | | let named_middlewares = route.get_middlewares(); [INFO] [stdout] 101 | | let mut route_middlewares = Vec::new(); [INFO] [stdout] 102 | | let middleware_configs = ¤t_config.http.middlewares; [INFO] [stdout] ... | [INFO] [stdout] 119 | | next.run(request).await [INFO] [stdout] 120 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | next.run(request).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:119:35 [INFO] [stdout] | [INFO] [stdout] 119 | next.run(request).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | next.run(request).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 121 | | tracing::warn!( [INFO] [stdout] 122 | | "Router error: No upstream available to handle request for path {original_path}" [INFO] [stdout] 123 | | ); [INFO] [stdout] 124 | | Ok(response_with_status(StatusCode::SERVICE_UNAVAILABLE)) [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | Ok(response_with_status(StatusCode::SERVICE_UNAVAILABLE)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 127 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 128 | | match err { [INFO] [stdout] 129 | | RouterError::NotFound => { [INFO] [stdout] 130 | | tracing::warn!("Router error: Route not found for path {original_path}") [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(response_with_status(err.status_code())) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | Ok(response_with_status(err.status_code())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | Box::pin(async move { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 169 | | if matches!(req.method(), &Method::POST | &Method::PUT | &Method::PATCH) { [INFO] [stdout] 170 | | let body = req.into_body(); [INFO] [stdout] 171 | | let collected = body.collect().await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 197 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | / match request_builder.send().await { [INFO] [stdout] 176 | | Ok(resp) => { [INFO] [stdout] 177 | | let mut response_builder = Response::builder().status(resp.status()); [INFO] [stdout] 178 | | for (key, value) in resp.headers() { [INFO] [stdout] ... | [INFO] [stdout] 196 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:176:29 [INFO] [stdout] | [INFO] [stdout] 176 | Ok(resp) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 177 | | let mut response_builder = Response::builder().status(resp.status()); [INFO] [stdout] 178 | | for (key, value) in resp.headers() { [INFO] [stdout] 179 | | if key != "server" { [INFO] [stdout] ... | [INFO] [stdout] 190 | | Ok(response) [INFO] [stdout] 191 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | Err(err) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 193 | | tracing::error!("Error sending request to upstream: {err:?}"); [INFO] [stdout] 194 | | Ok(bad_gateway_response()) [INFO] [stdout] 195 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | Ok(bad_gateway_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:55 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 20 | ) -> Result> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 21 | | let start = Instant::now(); [INFO] [stdout] 22 | | let method = req.method().clone(); [INFO] [stdout] 23 | | let path = req.uri().path().to_string(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | Ok(response) [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | let response = next.run(req).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:42:38 [INFO] [stdout] | [INFO] [stdout] 42 | let response = next.run(req).await.unwrap(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | let response = next.run(req).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:18:60 [INFO] [stdout] | [INFO] [stdout] 18 | ) -> crate::middleware::Result> { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 19 | | let mut req = req; [INFO] [stdout] 20 | | let query_params = req [INFO] [stdout] 21 | | .uri() [INFO] [stdout] ... | [INFO] [stdout] 36 | | next.run(req).await [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | next.run(req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 110 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:116:60 [INFO] [stdout] | [INFO] [stdout] 116 | ) -> crate::middleware::Result> { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 117 | | let key = match &self.source { [INFO] [stdout] 118 | | RateLimitKeySource::IP(Some(header)) => { [INFO] [stdout] 119 | | if let Some(v) = req.headers().get(header) { [INFO] [stdout] ... | [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | / if self.allow(&key) { [INFO] [stdout] 142 | | next.run(req).await [INFO] [stdout] 143 | | } else { [INFO] [stdout] 144 | | let retry_duration = self.retry_after(&key).unwrap_or(Duration::from_secs(0)); [INFO] [stdout] ... | [INFO] [stdout] 154 | | .expect("Response builder should not fail")) [INFO] [stdout] 155 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | if self.allow(&key) { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 142 | | next.run(req).await [INFO] [stdout] 143 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 142 | next.run(req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 144 | | let retry_duration = self.retry_after(&key).unwrap_or(Duration::from_secs(0)); [INFO] [stdout] 145 | | Ok(Response::builder() [INFO] [stdout] 146 | | .status(StatusCode::TOO_MANY_REQUESTS) [INFO] [stdout] ... | [INFO] [stdout] 154 | | .expect("Response builder should not fail")) [INFO] [stdout] 155 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | / Ok(Response::builder() [INFO] [stdout] 146 | | .status(StatusCode::TOO_MANY_REQUESTS) [INFO] [stdout] 147 | | .header("Server", "portiq") [INFO] [stdout] 148 | | .header("Retry-After", retry_duration.as_secs()) [INFO] [stdout] ... | [INFO] [stdout] 154 | | .expect("Response builder should not fail")) [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | ) -> Result> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 20 | | let request_id = Uuid::new_v4(); [INFO] [stdout] 21 | | let mut req = req; [INFO] [stdout] 22 | | if req.headers().get(REQUEST_ID_HEADER).is_none() { [INFO] [stdout] ... | [INFO] [stdout] 28 | | next.run(req).await [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | next.run(req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `portiq` (bin "portiq") due to 52 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:78:65 [INFO] [stdout] | [INFO] [stdout] 78 | ) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 79 | | let original_request = request; [INFO] [stdout] 80 | | // Extract host from header for http/1.1 requests [INFO] [stdout] 81 | | let original_host = if let Some(host) = original_request [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [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: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:78:65 [INFO] [stdout] | [INFO] [stdout] 78 | ) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 79 | | let original_request = request; [INFO] [stdout] 80 | | // Extract host from header for http/1.1 requests [INFO] [stdout] 81 | | let original_host = if let Some(host) = original_request [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / match router.get_http_route(original_host, original_path, &context.listener) { [INFO] [stdout] 97 | | Ok(route) => { [INFO] [stdout] 98 | | let service_name = route.get_service(); [INFO] [stdout] 99 | | if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | Ok(route) => { [INFO] [stdout] | ______________________^ [INFO] [stdout] 98 | | let service_name = route.get_service(); [INFO] [stdout] 99 | | if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] 100 | | let named_middlewares = route.get_middlewares(); [INFO] [stdout] ... | [INFO] [stdout] 126 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | / if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] 100 | | let named_middlewares = route.get_middlewares(); [INFO] [stdout] 101 | | let mut route_middlewares = Vec::new(); [INFO] [stdout] 102 | | let middleware_configs = ¤t_config.http.middlewares; [INFO] [stdout] ... | [INFO] [stdout] 124 | | Ok(response_with_status(StatusCode::SERVICE_UNAVAILABLE)) [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:99:75 [INFO] [stdout] | [INFO] [stdout] 99 | if let Ok(upstream) = router.get_http_upstream(&service_name) { [INFO] [stdout] | ___________________________________________________________________________^ [INFO] [stdout] 100 | | let named_middlewares = route.get_middlewares(); [INFO] [stdout] 101 | | let mut route_middlewares = Vec::new(); [INFO] [stdout] 102 | | let middleware_configs = ¤t_config.http.middlewares; [INFO] [stdout] ... | [INFO] [stdout] 119 | | next.run(request).await [INFO] [stdout] 120 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | next.run(request).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:119:35 [INFO] [stdout] | [INFO] [stdout] 119 | next.run(request).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | next.run(request).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:120:20 [INFO] [stdout] | [INFO] [stdout] 120 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 121 | | tracing::warn!( [INFO] [stdout] 122 | | "Router error: No upstream available to handle request for path {original_path}" [INFO] [stdout] 123 | | ); [INFO] [stdout] 124 | | Ok(response_with_status(StatusCode::SERVICE_UNAVAILABLE)) [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | Ok(response_with_status(StatusCode::SERVICE_UNAVAILABLE)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 127 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 128 | | match err { [INFO] [stdout] 129 | | RouterError::NotFound => { [INFO] [stdout] 130 | | tracing::warn!("Router error: Route not found for path {original_path}") [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(response_with_status(err.status_code())) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | Ok(response_with_status(err.status_code())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | Box::pin(async move { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 169 | | if matches!(req.method(), &Method::POST | &Method::PUT | &Method::PATCH) { [INFO] [stdout] 170 | | let body = req.into_body(); [INFO] [stdout] 171 | | let collected = body.collect().await.unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 197 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | / match request_builder.send().await { [INFO] [stdout] 176 | | Ok(resp) => { [INFO] [stdout] 177 | | let mut response_builder = Response::builder().status(resp.status()); [INFO] [stdout] 178 | | for (key, value) in resp.headers() { [INFO] [stdout] ... | [INFO] [stdout] 196 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:176:29 [INFO] [stdout] | [INFO] [stdout] 176 | Ok(resp) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 177 | | let mut response_builder = Response::builder().status(resp.status()); [INFO] [stdout] 178 | | for (key, value) in resp.headers() { [INFO] [stdout] 179 | | if key != "server" { [INFO] [stdout] ... | [INFO] [stdout] 190 | | Ok(response) [INFO] [stdout] 191 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | Err(err) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 193 | | tracing::error!("Error sending request to upstream: {err:?}"); [INFO] [stdout] 194 | | Ok(bad_gateway_response()) [INFO] [stdout] 195 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/server/http.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | Ok(bad_gateway_response()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:33 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:55 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/mod.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | Box::pin(async move { (self.handler)(req).await }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 20 | ) -> Result> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 21 | | let start = Instant::now(); [INFO] [stdout] 22 | | let method = req.method().clone(); [INFO] [stdout] 23 | | let path = req.uri().path().to_string(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | Ok(response) [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | let response = next.run(req).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:42:38 [INFO] [stdout] | [INFO] [stdout] 42 | let response = next.run(req).await.unwrap(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | let response = next.run(req).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/access_logger.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:18:60 [INFO] [stdout] | [INFO] [stdout] 18 | ) -> crate::middleware::Result> { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 19 | | let mut req = req; [INFO] [stdout] 20 | | let query_params = req [INFO] [stdout] 21 | | .uri() [INFO] [stdout] ... | [INFO] [stdout] 36 | | next.run(req).await [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | next.run(req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/add_prefix.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 110 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:116:60 [INFO] [stdout] | [INFO] [stdout] 116 | ) -> crate::middleware::Result> { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 117 | | let key = match &self.source { [INFO] [stdout] 118 | | RateLimitKeySource::IP(Some(header)) => { [INFO] [stdout] 119 | | if let Some(v) = req.headers().get(header) { [INFO] [stdout] ... | [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | / if self.allow(&key) { [INFO] [stdout] 142 | | next.run(req).await [INFO] [stdout] 143 | | } else { [INFO] [stdout] 144 | | let retry_duration = self.retry_after(&key).unwrap_or(Duration::from_secs(0)); [INFO] [stdout] ... | [INFO] [stdout] 154 | | .expect("Response builder should not fail")) [INFO] [stdout] 155 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | if self.allow(&key) { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 142 | | next.run(req).await [INFO] [stdout] 143 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 142 | next.run(req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 144 | | let retry_duration = self.retry_after(&key).unwrap_or(Duration::from_secs(0)); [INFO] [stdout] 145 | | Ok(Response::builder() [INFO] [stdout] 146 | | .status(StatusCode::TOO_MANY_REQUESTS) [INFO] [stdout] ... | [INFO] [stdout] 154 | | .expect("Response builder should not fail")) [INFO] [stdout] 155 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/rate_limiter/token_bucket.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | / Ok(Response::builder() [INFO] [stdout] 146 | | .status(StatusCode::TOO_MANY_REQUESTS) [INFO] [stdout] 147 | | .header("Server", "portiq") [INFO] [stdout] 148 | | .header("Retry-After", retry_duration.as_secs()) [INFO] [stdout] ... | [INFO] [stdout] 154 | | .expect("Response builder should not fail")) [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | async fn call( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 19 | ) -> Result> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 20 | | let request_id = Uuid::new_v4(); [INFO] [stdout] 21 | | let mut req = req; [INFO] [stdout] 22 | | if req.headers().get(REQUEST_ID_HEADER).is_none() { [INFO] [stdout] ... | [INFO] [stdout] 28 | | next.run(req).await [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | next.run(req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result>, Infallible> [INFO] [stdout] --> src/middleware/request_id.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | next.run(req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `portiq` (bin "portiq" test) due to 52 previous errors [INFO] running `Command { std: "docker" "inspect" "42fe6625576bd9b6ebfeda910680d0329abf612228ff7d5b99463e88b7793449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42fe6625576bd9b6ebfeda910680d0329abf612228ff7d5b99463e88b7793449", kill_on_drop: false }` [INFO] [stdout] 42fe6625576bd9b6ebfeda910680d0329abf612228ff7d5b99463e88b7793449