[INFO] cloning repository https://github.com/pikiwidb/pika-proxy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pikiwidb/pika-proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpikiwidb%2Fpika-proxy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpikiwidb%2Fpika-proxy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37de8ad66fb4a59abbbd250ba6a6db5279d75429 [INFO] checking pikiwidb/pika-proxy against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpikiwidb%2Fpika-proxy" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pikiwidb/pika-proxy on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pikiwidb/pika-proxy [INFO] finished tweaking git repo https://github.com/pikiwidb/pika-proxy [INFO] tweaked toml for git repo https://github.com/pikiwidb/pika-proxy written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pikiwidb/pika-proxy 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v1.0.30 [INFO] [stderr] Downloaded project-root v0.2.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.65 [INFO] [stderr] Downloaded tonic-build v0.8.4 [INFO] [stderr] Downloaded redis-protocol v4.1.0 [INFO] [stderr] Downloaded etcd-client v0.10.4 [INFO] [stderr] Downloaded fast_config v1.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55fb6cf97437183f00c84a369581eba9191e65f1762e8e14993d96a8b92ce755 [INFO] running `Command { std: "docker" "start" "-a" "55fb6cf97437183f00c84a369581eba9191e65f1762e8e14993d96a8b92ce755", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55fb6cf97437183f00c84a369581eba9191e65f1762e8e14993d96a8b92ce755", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55fb6cf97437183f00c84a369581eba9191e65f1762e8e14993d96a8b92ce755", kill_on_drop: false }` [INFO] [stdout] 55fb6cf97437183f00c84a369581eba9191e65f1762e8e14993d96a8b92ce755 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8beb986e0cecaf0714a964fbaef370980351d0a3dc4162bc10748daae5674010 [INFO] running `Command { std: "docker" "start" "-a" "8beb986e0cecaf0714a964fbaef370980351d0a3dc4162bc10748daae5674010", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.65 [INFO] [stderr] Compiling quote v1.0.30 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v2.0.26 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling async-trait v0.1.71 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling rustix v0.38.4 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling regex-automata v0.3.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling crc16 v0.4.0 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking bitflags v2.3.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde_json v1.0.103 [INFO] [stderr] Checking linux-raw-sys v0.4.3 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling axum v0.6.18 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking bytes-utils v0.1.3 [INFO] [stderr] Compiling regex v1.9.1 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking winnow v0.5.0 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Checking cookie-factory v0.3.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking redis-protocol v4.1.0 [INFO] [stderr] Checking clap_builder v4.3.12 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking dashmap v5.5.0 [INFO] [stderr] Checking project-root v0.2.2 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling pin-project-internal v1.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Checking axum-core v0.3.4 [INFO] [stderr] Checking pin-project v1.1.2 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Checking serde v1.0.171 [INFO] [stderr] Checking clap v4.3.12 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Compiling tonic-build v0.8.4 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking redis v0.1.0 (/opt/rustwide/workdir/redis) [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> redis/src/lib.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn send_response(&mut self, resp: &RedisResp) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> redis/src/lib.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(reader: R) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> redis/src/lib.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(writer: W) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> redis/src/error/redis.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resp` [INFO] [stdout] --> redis/src/lib.rs:26:43 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn send_response(&mut self, resp: &RedisResp) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_resp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> redis/src/lib.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(reader: R) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> redis/src/lib.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(writer: W) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> redis/src/error/redis.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling etcd-client v0.10.4 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.14 [INFO] [stderr] Checking serde_spanned v0.6.3 [INFO] [stderr] Checking toml_edit v0.19.14 [INFO] [stderr] Checking toml v0.7.6 [INFO] [stderr] Checking fast_config v1.1.3 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.8.3 [INFO] [stderr] Checking pika-proxy v0.1.0 (/opt/rustwide/workdir/pika-proxy) [INFO] [stdout] warning: unused import: `command::*` [INFO] [stdout] --> pika-proxy/src/models/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use command::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `anyhow`, `bail` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, bail}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `command::*` [INFO] [stdout] --> pika-proxy/src/models/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use command::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `anyhow`, `bail` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{anyhow, bail}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cancel` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn run(&self, cancel: CancellationToken) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cancel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> pika-proxy/src/proxy/dashboard/proxy_api.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | async fn server_proxy_api(proxy: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cancel` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn run(&self, cancel: CancellationToken) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cancel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> pika-proxy/src/proxy/dashboard/proxy_api.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | async fn server_proxy_api(proxy: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 64 | / loop { [INFO] [stdout] 65 | | match request_reader.read_request().await { [INFO] [stdout] 66 | | Ok(request) => { [INFO] [stdout] 67 | | //max_id = request.get_id(); [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 77 | max_id [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | info: I, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_chan` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | mut request_chan: Receiver, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_chan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | mut request_chan: Receiver, [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | let (tx, mut rx) = channel(1024); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | let (tx, mut rx) = channel(1024); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 64 | / loop { [INFO] [stdout] 65 | | match request_reader.read_request().await { [INFO] [stdout] 66 | | Ok(request) => { [INFO] [stdout] 67 | | //max_id = request.get_id(); [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____________- any code following this expression is unreachable [INFO] [stdout] 77 | max_id [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | info: I, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_chan` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | mut request_chan: Receiver, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_chan` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | mut request_chan: Receiver, [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | let (tx, mut rx) = channel(1024); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | let (tx, mut rx) = channel(1024); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | fn initialize_router(config: Arc, registry: Arc) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `registry` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:52:47 [INFO] [stdout] | [INFO] [stdout] 52 | fn initialize_router(config: Arc, registry: Arc) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | router: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `registry` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | registry: Arc, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | fn initialize_registry(config: Arc) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | writer: OwnedWriteHalf, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | while let Some(response) = response_channel.recv().await { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_channel` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | mut response_channel: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_id` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let mut max_id = 0u64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | Ok(request) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut max_id = 0u64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | mut response_channel: Sender, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unknown`, `Network`, `Protocol`, and `Proxy` are never constructed [INFO] [stdout] --> pika-proxy/src/error/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | Unknown, // unknown error [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Network, // include tokio/std network error [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Initialize, // error when initialize, include config file read/parse error, etc [INFO] [stdout] 9 | Protocol, // error when parse or write redis cmd or response data [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Proxy, // error when proxy data between client and server [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> pika-proxy/src/error/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Error { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 19 | pub fn new>(kind: ErrorKind, inner: E) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn unknown>(inner: E) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn network>(inner: E) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn protocol>(inner: E) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn proxy>(inner: E) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn error_kind(&self) -> &ErrorKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_network_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn is_unknown_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn is_initialize_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn is_protocol_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn is_proxy_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn is_server_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Command` is never constructed [INFO] [stdout] --> pika-proxy/src/models/command.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionInfo` is never constructed [INFO] [stdout] --> pika-proxy/src/models/connection_info.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ConnectionInfo {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoConnectionInfo` is never used [INFO] [stdout] --> pika-proxy/src/models/connection_info.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait IntoConnectionInfo: Send + Clone + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `redis` and `id` are never read [INFO] [stdout] --> pika-proxy/src/models/request.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | redis: redis::RedisCmd, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `redis` and `id` are never read [INFO] [stdout] --> pika-proxy/src/models/response.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Response { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 2 | redis: redis::RedisResp, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SLOT_NUM` is never used [INFO] [stdout] --> pika-proxy/src/models/slots.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MAX_SLOT_NUM: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slot` is never constructed [INFO] [stdout] --> pika-proxy/src/models/slots.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Slot { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `db_connection_pool` are never read [INFO] [stdout] --> pika-proxy/src/proxy/backend/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Backend { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | config: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | db_connection_pool: DashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> pika-proxy/src/proxy/backend/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Backend { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new(config: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ConnectionPool { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 12 | pool: DashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_remote` is never used [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ConnectionPool { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 16 | pub fn add_remote(&mut self, addr: I) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cmd_channel` is never read [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DbConnection { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 7 | //client: Client, [INFO] [stdout] 8 | cmd_channel: Receiver, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DbConnection { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn run(&self, cancel: CancellationToken) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `server_proxy_api` is never used [INFO] [stdout] --> pika-proxy/src/proxy/dashboard/proxy_api.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | async fn server_proxy_api(proxy: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `adapter` is never read [INFO] [stdout] --> pika-proxy/src/proxy/registry/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Registry { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 8 | adapter: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_slots`, `get_slot`, `has_switched`, `fill_slot`, `switch_masters`, and `dispatch` are never used [INFO] [stdout] --> pika-proxy/src/proxy/router/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Router { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 12 | fn get_slots(&self) -> Vec>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | fn get_slot(&self, id: u64) -> Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn has_switched(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | fn fill_slot(&self, model: Box) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | fn switch_masters(&self, masters: HashMap) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | fn dispatch(&self, request: Request) -> Result<()>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `backend` is never read [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ProxyServer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | backend: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `router` and `config` are never read [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ClientSession { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 22 | router: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | config: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InfoCache` is never constructed [INFO] [stdout] --> pika-proxy/src/utils/redis.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct InfoCache {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | fn initialize_router(config: Arc, registry: Arc) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `registry` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:52:47 [INFO] [stdout] | [INFO] [stdout] 52 | fn initialize_router(config: Arc, registry: Arc) -> Result> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | config: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | router: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `registry` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | registry: Arc, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | fn initialize_registry(config: Arc) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | writer: OwnedWriteHalf, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | while let Some(response) = response_channel.recv().await { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response_channel` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | mut response_channel: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_id` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let mut max_id = 0u64; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | Ok(request) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let mut max_id = 0u64; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | mut response_channel: Sender, [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unknown`, `Network`, `Protocol`, and `Proxy` are never constructed [INFO] [stdout] --> pika-proxy/src/error/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | Unknown, // unknown error [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Network, // include tokio/std network error [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | Initialize, // error when initialize, include config file read/parse error, etc [INFO] [stdout] 9 | Protocol, // error when parse or write redis cmd or response data [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Proxy, // error when proxy data between client and server [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> pika-proxy/src/error/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Error { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 19 | pub fn new>(kind: ErrorKind, inner: E) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn unknown>(inner: E) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn network>(inner: E) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn protocol>(inner: E) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn proxy>(inner: E) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn error_kind(&self) -> &ErrorKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn is_network_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn is_unknown_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn is_initialize_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn is_protocol_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn is_proxy_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn is_server_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Command` is never constructed [INFO] [stdout] --> pika-proxy/src/models/command.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionInfo` is never constructed [INFO] [stdout] --> pika-proxy/src/models/connection_info.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ConnectionInfo {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoConnectionInfo` is never used [INFO] [stdout] --> pika-proxy/src/models/connection_info.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait IntoConnectionInfo: Send + Clone + 'static { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `redis` and `id` are never read [INFO] [stdout] --> pika-proxy/src/models/request.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | redis: redis::RedisCmd, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `redis` and `id` are never read [INFO] [stdout] --> pika-proxy/src/models/response.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Response { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 2 | redis: redis::RedisResp, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SLOT_NUM` is never used [INFO] [stdout] --> pika-proxy/src/models/slots.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MAX_SLOT_NUM: usize = 1024; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Slot` is never constructed [INFO] [stdout] --> pika-proxy/src/models/slots.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Slot { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `db_connection_pool` are never read [INFO] [stdout] --> pika-proxy/src/proxy/backend/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Backend { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | config: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | db_connection_pool: DashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> pika-proxy/src/proxy/backend/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Backend { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new(config: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ConnectionPool { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 12 | pool: DashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_remote` is never used [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl ConnectionPool { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 16 | pub fn add_remote(&mut self, addr: I) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cmd_channel` is never read [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DbConnection { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 7 | //client: Client, [INFO] [stdout] 8 | cmd_channel: Receiver, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> pika-proxy/src/proxy/backend/connection_pool/db_connection.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl DbConnection { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn run(&self, cancel: CancellationToken) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `server_proxy_api` is never used [INFO] [stdout] --> pika-proxy/src/proxy/dashboard/proxy_api.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | async fn server_proxy_api(proxy: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `adapter` is never read [INFO] [stdout] --> pika-proxy/src/proxy/registry/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Registry { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 8 | adapter: Box, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_slots`, `get_slot`, `has_switched`, `fill_slot`, `switch_masters`, and `dispatch` are never used [INFO] [stdout] --> pika-proxy/src/proxy/router/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Router { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 12 | fn get_slots(&self) -> Vec>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | fn get_slot(&self, id: u64) -> Box; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn has_switched(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 15 | fn fill_slot(&self, model: Box) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | fn switch_masters(&self, masters: HashMap) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | fn dispatch(&self, request: Request) -> Result<()>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `backend` is never read [INFO] [stdout] --> pika-proxy/src/proxy/server/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ProxyServer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | backend: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `router` and `config` are never read [INFO] [stdout] --> pika-proxy/src/proxy/session/client_session.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ClientSession { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 22 | router: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | config: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InfoCache` is never constructed [INFO] [stdout] --> pika-proxy/src/utils/redis.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct InfoCache {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "8beb986e0cecaf0714a964fbaef370980351d0a3dc4162bc10748daae5674010", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8beb986e0cecaf0714a964fbaef370980351d0a3dc4162bc10748daae5674010", kill_on_drop: false }` [INFO] [stdout] 8beb986e0cecaf0714a964fbaef370980351d0a3dc4162bc10748daae5674010