[INFO] cloning repository https://github.com/CodeMan62/ranx
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CodeMan62/ranx" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCodeMan62%2Franx", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCodeMan62%2Franx'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9f759a71cb49bd7923e64d28e7b030c7c4a5418c
[INFO] checking CodeMan62/ranx 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%2FCodeMan62%2Franx" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/CodeMan62/ranx
[INFO] finished tweaking git repo https://github.com/CodeMan62/ranx
[INFO] tweaked toml for git repo https://github.com/CodeMan62/ranx written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/CodeMan62/ranx 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/CodeMan62/ranx 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] fe5fd8680ddb8b264d2840eaad04de458853894815a4e21bc938069f466bc6c2
[INFO] running `Command { std: "docker" "start" "-a" "fe5fd8680ddb8b264d2840eaad04de458853894815a4e21bc938069f466bc6c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fe5fd8680ddb8b264d2840eaad04de458853894815a4e21bc938069f466bc6c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fe5fd8680ddb8b264d2840eaad04de458853894815a4e21bc938069f466bc6c2", kill_on_drop: false }`
[INFO] [stdout] fe5fd8680ddb8b264d2840eaad04de458853894815a4e21bc938069f466bc6c2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 35bdb946e9cabfec28e7e3f74f4a28dfd09474e7c333bfd042dc1fc315347ad0
[INFO] running `Command { std: "docker" "start" "-a" "35bdb946e9cabfec28e7e3f74f4a28dfd09474e7c333bfd042dc1fc315347ad0", kill_on_drop: false }`
[INFO] [stderr] Compiling cc v1.2.17
[INFO] [stderr] Compiling syn v2.0.100
[INFO] [stderr] Checking getrandom v0.2.15
[INFO] [stderr] Checking parking_lot_core v0.9.10
[INFO] [stderr] Checking log v0.4.26
[INFO] [stderr] Checking indexmap v2.8.0
[INFO] [stderr] Compiling rustls v0.21.12
[INFO] [stderr] Checking http-body v0.4.6
[INFO] [stderr] Checking linked-hash-map v0.5.6
[INFO] [stderr] Checking ahash v0.7.8
[INFO] [stderr] Checking rustls-native-certs v0.6.3
[INFO] [stderr] Checking tracing-log v0.2.0
[INFO] [stderr] Checking parking_lot v0.12.3
[INFO] [stderr] Checking pathdiff v0.2.3
[INFO] [stderr] Checking unsafe-libyaml v0.2.11
[INFO] [stderr] Checking yaml-rust v0.4.5
[INFO] [stderr] Checking hashbrown v0.12.3
[INFO] [stderr] Checking ordered-multimap v0.4.3
[INFO] [stderr] Compiling ring v0.17.14
[INFO] [stderr] Checking rust-ini v0.18.0
[INFO] [stderr] Checking sct v0.7.1
[INFO] [stderr] Checking rustls-webpki v0.101.7
[INFO] [stderr] Compiling thiserror-impl v2.0.12
[INFO] [stderr] Compiling serde_derive v1.0.219
[INFO] [stderr] Compiling tokio-macros v2.5.0
[INFO] [stderr] Compiling futures-macro v0.3.31
[INFO] [stderr] Compiling tracing-attributes v0.1.28
[INFO] [stderr] Compiling thiserror-impl v1.0.69
[INFO] [stderr] Compiling clap_derive v4.5.32
[INFO] [stderr] Checking tokio v1.44.1
[INFO] [stderr] Checking futures-util v0.3.31
[INFO] [stderr] Checking tracing v0.1.41
[INFO] [stderr] Compiling async-trait v0.1.88
[INFO] [stderr] Compiling thiserror v2.0.12
[INFO] [stderr] Compiling pest v2.7.15
[INFO] [stderr] Checking tracing-subscriber v0.3.19
[INFO] [stderr] Checking clap v4.5.32
[INFO] [stderr] Checking thiserror v1.0.69
[INFO] [stderr] Checking serde v1.0.219
[INFO] [stderr] Compiling pest_meta v2.7.15
[INFO] [stderr] Checking futures-executor v0.3.31
[INFO] [stderr] Checking futures v0.3.31
[INFO] [stderr] Compiling pest_generator v2.7.15
[INFO] [stderr] Compiling pest_derive v2.7.15
[INFO] [stderr] Checking tokio-util v0.7.14
[INFO] [stderr] Checking tokio-rustls v0.24.1
[INFO] [stderr] Checking h2 v0.3.26
[INFO] [stderr] Checking ron v0.7.1
[INFO] [stderr] Checking json5 v0.4.1
[INFO] [stderr] Checking serde_json v1.0.140
[INFO] [stderr] Checking toml v0.5.11
[INFO] [stderr] Checking serde_yaml v0.9.34+deprecated
[INFO] [stderr] Checking config v0.13.4
[INFO] [stderr] Checking hyper v0.14.32
[INFO] [stderr] Checking hyper-rustls v0.24.2
[INFO] [stderr] Checking ranx v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout] --> src/config.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 5 | use std::time::Duration;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout] --> src/proxy.rs:2:5
[INFO] [stdout] |
[INFO] [stdout] 2 | use std::sync::Arc;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `futures::future::BoxFuture`
[INFO] [stdout] --> src/proxy.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 5 | use futures::future::BoxFuture;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StatusCode`
[INFO] [stdout] --> src/proxy.rs:7:38
[INFO] [stdout] |
[INFO] [stdout] 7 | use hyper::{Body, Request, Response, StatusCode, Uri};
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HeaderName`
[INFO] [stdout] --> src/proxy.rs:8:32
[INFO] [stdout] |
[INFO] [stdout] 8 | use hyper::header::{HeaderMap, HeaderName, HeaderValue};
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `error`, `info`, and `warn`
[INFO] [stdout] --> src/proxy.rs:11:22
[INFO] [stdout] |
[INFO] [stdout] 11 | use tracing::{debug, error, info, warn};
[INFO] [stdout] | ^^^^^ ^^^^ ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout] --> src/features/ratelimit.rs:5:15
[INFO] [stdout] |
[INFO] [stdout] 5 | use tracing::{info, warn};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/proxy.rs:168:37
[INFO] [stdout] |
[INFO] [stdout] 168 | async fn forward_request(&self, mut req: Request
, target_uri: Uri) -> ProxyResult> {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout] --> src/config.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 5 | use std::time::Duration;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout] --> src/proxy.rs:2:5
[INFO] [stdout] |
[INFO] [stdout] 2 | use std::sync::Arc;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `futures::future::BoxFuture`
[INFO] [stdout] --> src/proxy.rs:5:5
[INFO] [stdout] |
[INFO] [stdout] 5 | use futures::future::BoxFuture;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `StatusCode`
[INFO] [stdout] --> src/proxy.rs:7:38
[INFO] [stdout] |
[INFO] [stdout] 7 | use hyper::{Body, Request, Response, StatusCode, Uri};
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `HeaderName`
[INFO] [stdout] --> src/proxy.rs:8:32
[INFO] [stdout] |
[INFO] [stdout] 8 | use hyper::header::{HeaderMap, HeaderName, HeaderValue};
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `error`, `info`, and `warn`
[INFO] [stdout] --> src/proxy.rs:11:22
[INFO] [stdout] |
[INFO] [stdout] 11 | use tracing::{debug, error, info, warn};
[INFO] [stdout] | ^^^^^ ^^^^ ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout] --> src/features/ratelimit.rs:5:15
[INFO] [stdout] |
[INFO] [stdout] 5 | use tracing::{info, warn};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/proxy.rs:168:37
[INFO] [stdout] |
[INFO] [stdout] 168 | async fn forward_request(&self, mut req: Request, target_uri: Uri) -> ProxyResult> {
[INFO] [stdout] | ----^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout] --> src/proxy.rs:29:5
[INFO] [stdout] |
[INFO] [stdout] 28 | pub struct ProxyService {
[INFO] [stdout] | ------------ field in this struct
[INFO] [stdout] 29 | config: Config,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant `ConfigError` is never constructed
[INFO] [stdout] --> src/error.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 5 | pub enum ProxyError {
[INFO] [stdout] | ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 16 | ConfigError(String),
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `half_open_timeout` is never read
[INFO] [stdout] --> src/features/circuit_breaker.rs:18:9
[INFO] [stdout] |
[INFO] [stdout] 15 | pub struct CircuitBreakerConfig {
[INFO] [stdout] | -------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 18 | pub half_open_timeout: Duration,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `CircuitBreakerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `get_metrics` is never used
[INFO] [stdout] --> src/features/circuit_breaker.rs:97:18
[INFO] [stdout] |
[INFO] [stdout] 35 | impl CircuitBreaker {
[INFO] [stdout] | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 97 | pub async fn get_metrics(&self) -> HashMap {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `CircuitBreakerMetrics` is never constructed
[INFO] [stdout] --> src/features/circuit_breaker.rs:116:12
[INFO] [stdout] |
[INFO] [stdout] 116 | pub struct CircuitBreakerMetrics {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `start_time` is never read
[INFO] [stdout] --> src/features/metrics.rs:20:5
[INFO] [stdout] |
[INFO] [stdout] 18 | pub struct MetricsCollector {
[INFO] [stdout] | ---------------- field in this struct
[INFO] [stdout] 19 | metrics: Arc>>,
[INFO] [stdout] 20 | start_time: Instant,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `get_metrics` and `log_metrics` are never used
[INFO] [stdout] --> src/features/metrics.rs:62:18
[INFO] [stdout] |
[INFO] [stdout] 23 | impl MetricsCollector {
[INFO] [stdout] | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 62 | pub async fn get_metrics(&self) -> HashMap {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 | pub async fn log_metrics(&self) {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `MetricsSummary` is never constructed
[INFO] [stdout] --> src/features/metrics.rs:113:12
[INFO] [stdout] |
[INFO] [stdout] 113 | pub struct MetricsSummary {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `burst_size` is never read
[INFO] [stdout] --> src/features/ratelimit.rs:10:9
[INFO] [stdout] |
[INFO] [stdout] 8 | pub struct RateLimitConfig {
[INFO] [stdout] | --------------- field in this struct
[INFO] [stdout] 9 | pub requests_per_second: u32,
[INFO] [stdout] 10 | pub burst_size: u32,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `RateLimitConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `get_analytics` is never used
[INFO] [stdout] --> src/features/ratelimit.rs:60:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl RateLimiter {
[INFO] [stdout] | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 60 | pub async fn get_analytics(&self) -> HashMap {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `RateLimitAnalytics` is never constructed
[INFO] [stdout] --> src/features/ratelimit.rs:77:12
[INFO] [stdout] |
[INFO] [stdout] 77 | pub struct RateLimitAnalytics {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:24:20
[INFO] [stdout] |
[INFO] [stdout] 24 | async move {
[INFO] [stdout] | ____________________^
[INFO] [stdout] 25 | | Ok::<_, Infallible>(service_fn(move |req: Request| {
[INFO] [stdout] 26 | | let proxy_service = proxy_service.clone();
[INFO] [stdout] ... |
[INFO] [stdout] 31 | | }))
[INFO] [stdout] 32 | | }
[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/server.rs:25:13
[INFO] [stdout] |
[INFO] [stdout] 25 | / Ok::<_, Infallible>(service_fn(move |req: Request| {
[INFO] [stdout] 26 | | let proxy_service = proxy_service.clone();
[INFO] [stdout] 27 | |
[INFO] [stdout] 28 | | async move {
[INFO] [stdout] ... |
[INFO] [stdout] 31 | | }))
[INFO] [stdout] | |_______________^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:28:28
[INFO] [stdout] |
[INFO] [stdout] 28 | async move {
[INFO] [stdout] | ____________________________^
[INFO] [stdout] 29 | | handle_request(proxy_service, req).await
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_________________^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:29:21
[INFO] [stdout] |
[INFO] [stdout] 29 | handle_request(proxy_service, req).await
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:29:56
[INFO] [stdout] |
[INFO] [stdout] 29 | handle_request(proxy_service, req).await
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:29:21
[INFO] [stdout] |
[INFO] [stdout] 29 | handle_request(proxy_service, req).await
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:52:41
[INFO] [stdout] |
[INFO] [stdout] 52 | ) -> Result, Infallible> {
[INFO] [stdout] | _________________________________________^
[INFO] [stdout] 53 | | match proxy_service.read().await.proxy_request(req).await {
[INFO] [stdout] 54 | | Ok(response) => Ok(response),
[INFO] [stdout] 55 | | Err(e) => {
[INFO] [stdout] ... |
[INFO] [stdout] 67 | | }
[INFO] [stdout] | |_^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:52:41
[INFO] [stdout] |
[INFO] [stdout] 52 | ) -> Result, Infallible> {
[INFO] [stdout] | _________________________________________^
[INFO] [stdout] 53 | | match proxy_service.read().await.proxy_request(req).await {
[INFO] [stdout] 54 | | Ok(response) => Ok(response),
[INFO] [stdout] 55 | | Err(e) => {
[INFO] [stdout] ... |
[INFO] [stdout] 67 | | }
[INFO] [stdout] | |_^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:53:5
[INFO] [stdout] |
[INFO] [stdout] 53 | / match proxy_service.read().await.proxy_request(req).await {
[INFO] [stdout] 54 | | Ok(response) => Ok(response),
[INFO] [stdout] 55 | | Err(e) => {
[INFO] [stdout] 56 | | error!("Error handling request: {}", e);
[INFO] [stdout] ... |
[INFO] [stdout] 66 | | }
[INFO] [stdout] | |_____^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:54:25
[INFO] [stdout] |
[INFO] [stdout] 54 | 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/server.rs:55:19
[INFO] [stdout] |
[INFO] [stdout] 55 | Err(e) => {
[INFO] [stdout] | ___________________^
[INFO] [stdout] 56 | | error!("Error handling request: {}", e);
[INFO] [stdout] ... |
[INFO] [stdout] 64 | | Ok(response)
[INFO] [stdout] 65 | | }
[INFO] [stdout] | |_________^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:64:13
[INFO] [stdout] |
[INFO] [stdout] 64 | Ok(response)
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `ranx` (bin "ranx") due to 12 previous errors; 19 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout] --> src/proxy.rs:29:5
[INFO] [stdout] |
[INFO] [stdout] 28 | pub struct ProxyService {
[INFO] [stdout] | ------------ field in this struct
[INFO] [stdout] 29 | config: Config,
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant `ConfigError` is never constructed
[INFO] [stdout] --> src/error.rs:16:5
[INFO] [stdout] |
[INFO] [stdout] 5 | pub enum ProxyError {
[INFO] [stdout] | ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 16 | ConfigError(String),
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `half_open_timeout` is never read
[INFO] [stdout] --> src/features/circuit_breaker.rs:18:9
[INFO] [stdout] |
[INFO] [stdout] 15 | pub struct CircuitBreakerConfig {
[INFO] [stdout] | -------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 18 | pub half_open_timeout: Duration,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `CircuitBreakerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `get_metrics` is never used
[INFO] [stdout] --> src/features/circuit_breaker.rs:97:18
[INFO] [stdout] |
[INFO] [stdout] 35 | impl CircuitBreaker {
[INFO] [stdout] | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 97 | pub async fn get_metrics(&self) -> HashMap {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `CircuitBreakerMetrics` is never constructed
[INFO] [stdout] --> src/features/circuit_breaker.rs:116:12
[INFO] [stdout] |
[INFO] [stdout] 116 | pub struct CircuitBreakerMetrics {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `start_time` is never read
[INFO] [stdout] --> src/features/metrics.rs:20:5
[INFO] [stdout] |
[INFO] [stdout] 18 | pub struct MetricsCollector {
[INFO] [stdout] | ---------------- field in this struct
[INFO] [stdout] 19 | metrics: Arc>>,
[INFO] [stdout] 20 | start_time: Instant,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: methods `get_metrics` and `log_metrics` are never used
[INFO] [stdout] --> src/features/metrics.rs:62:18
[INFO] [stdout] |
[INFO] [stdout] 23 | impl MetricsCollector {
[INFO] [stdout] | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 62 | pub async fn get_metrics(&self) -> HashMap {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 | pub async fn log_metrics(&self) {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `MetricsSummary` is never constructed
[INFO] [stdout] --> src/features/metrics.rs:113:12
[INFO] [stdout] |
[INFO] [stdout] 113 | pub struct MetricsSummary {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: field `burst_size` is never read
[INFO] [stdout] --> src/features/ratelimit.rs:10:9
[INFO] [stdout] |
[INFO] [stdout] 8 | pub struct RateLimitConfig {
[INFO] [stdout] | --------------- field in this struct
[INFO] [stdout] 9 | pub requests_per_second: u32,
[INFO] [stdout] 10 | pub burst_size: u32,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `RateLimitConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `get_analytics` is never used
[INFO] [stdout] --> src/features/ratelimit.rs:60:18
[INFO] [stdout] |
[INFO] [stdout] 26 | impl RateLimiter {
[INFO] [stdout] | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 60 | pub async fn get_analytics(&self) -> HashMap {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `RateLimitAnalytics` is never constructed
[INFO] [stdout] --> src/features/ratelimit.rs:77:12
[INFO] [stdout] |
[INFO] [stdout] 77 | pub struct RateLimitAnalytics {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:24:20
[INFO] [stdout] |
[INFO] [stdout] 24 | async move {
[INFO] [stdout] | ____________________^
[INFO] [stdout] 25 | | Ok::<_, Infallible>(service_fn(move |req: Request| {
[INFO] [stdout] 26 | | let proxy_service = proxy_service.clone();
[INFO] [stdout] ... |
[INFO] [stdout] 31 | | }))
[INFO] [stdout] 32 | | }
[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/server.rs:25:13
[INFO] [stdout] |
[INFO] [stdout] 25 | / Ok::<_, Infallible>(service_fn(move |req: Request| {
[INFO] [stdout] 26 | | let proxy_service = proxy_service.clone();
[INFO] [stdout] 27 | |
[INFO] [stdout] 28 | | async move {
[INFO] [stdout] ... |
[INFO] [stdout] 31 | | }))
[INFO] [stdout] | |_______________^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:28:28
[INFO] [stdout] |
[INFO] [stdout] 28 | async move {
[INFO] [stdout] | ____________________________^
[INFO] [stdout] 29 | | handle_request(proxy_service, req).await
[INFO] [stdout] 30 | | }
[INFO] [stdout] | |_________________^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:29:21
[INFO] [stdout] |
[INFO] [stdout] 29 | handle_request(proxy_service, req).await
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:29:56
[INFO] [stdout] |
[INFO] [stdout] 29 | handle_request(proxy_service, req).await
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:29:21
[INFO] [stdout] |
[INFO] [stdout] 29 | handle_request(proxy_service, req).await
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:52:41
[INFO] [stdout] |
[INFO] [stdout] 52 | ) -> Result, Infallible> {
[INFO] [stdout] | _________________________________________^
[INFO] [stdout] 53 | | match proxy_service.read().await.proxy_request(req).await {
[INFO] [stdout] 54 | | Ok(response) => Ok(response),
[INFO] [stdout] 55 | | Err(e) => {
[INFO] [stdout] ... |
[INFO] [stdout] 67 | | }
[INFO] [stdout] | |_^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:52:41
[INFO] [stdout] |
[INFO] [stdout] 52 | ) -> Result, Infallible> {
[INFO] [stdout] | _________________________________________^
[INFO] [stdout] 53 | | match proxy_service.read().await.proxy_request(req).await {
[INFO] [stdout] 54 | | Ok(response) => Ok(response),
[INFO] [stdout] 55 | | Err(e) => {
[INFO] [stdout] ... |
[INFO] [stdout] 67 | | }
[INFO] [stdout] | |_^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:53:5
[INFO] [stdout] |
[INFO] [stdout] 53 | / match proxy_service.read().await.proxy_request(req).await {
[INFO] [stdout] 54 | | Ok(response) => Ok(response),
[INFO] [stdout] 55 | | Err(e) => {
[INFO] [stdout] 56 | | error!("Error handling request: {}", e);
[INFO] [stdout] ... |
[INFO] [stdout] 66 | | }
[INFO] [stdout] | |_____^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:54:25
[INFO] [stdout] |
[INFO] [stdout] 54 | 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/server.rs:55:19
[INFO] [stdout] |
[INFO] [stdout] 55 | Err(e) => {
[INFO] [stdout] | ___________________^
[INFO] [stdout] 56 | | error!("Error handling request: {}", e);
[INFO] [stdout] ... |
[INFO] [stdout] 64 | | Ok(response)
[INFO] [stdout] 65 | | }
[INFO] [stdout] | |_________^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: this type will no longer be must used: Result, Infallible>
[INFO] [stdout] --> src/server.rs:64:13
[INFO] [stdout] |
[INFO] [stdout] 64 | Ok(response)
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `ranx` (bin "ranx" test) due to 12 previous errors; 19 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "35bdb946e9cabfec28e7e3f74f4a28dfd09474e7c333bfd042dc1fc315347ad0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "35bdb946e9cabfec28e7e3f74f4a28dfd09474e7c333bfd042dc1fc315347ad0", kill_on_drop: false }`
[INFO] [stdout] 35bdb946e9cabfec28e7e3f74f4a28dfd09474e7c333bfd042dc1fc315347ad0