[INFO] cloning repository https://github.com/Z-zg/mqtoy
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Z-zg/mqtoy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZ-zg%2Fmqtoy", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZ-zg%2Fmqtoy'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ca785542cd09029f79b297b68672cf04461a0dcd
[INFO] checking Z-zg/mqtoy against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZ-zg%2Fmqtoy" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Z-zg/mqtoy
[INFO] removed 0 missing examples
[INFO] finished tweaking git repo https://github.com/Z-zg/mqtoy
[INFO] tweaked toml for git repo https://github.com/Z-zg/mqtoy written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Z-zg/mqtoy on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]      Locking 304 packages to latest compatible versions
[INFO] [stderr]       Adding base64 v0.21.7 (available: v0.22.1)
[INFO] [stderr]       Adding generic-array v0.14.7 (available: v0.14.9)
[INFO] [stderr]       Adding getrandom v0.2.16 (available: v0.3.4)
[INFO] [stderr]       Adding prometheus v0.13.4 (available: v0.14.0)
[INFO] [stderr]       Adding prost v0.12.6 (available: v0.14.1)
[INFO] [stderr]       Adding thiserror v1.0.69 (available: v2.0.17)
[INFO] [stderr]       Adding tonic v0.10.2 (available: v0.14.2)
[INFO] [stderr]       Adding tonic-build v0.10.2 (available: v0.14.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 81b1b4f65bf6f260e70d7dc5f0a7f3ca7bc4c7906400266ad7baf06705769326
[INFO] running `Command { std: "docker" "start" "-a" "81b1b4f65bf6f260e70d7dc5f0a7f3ca7bc4c7906400266ad7baf06705769326", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "81b1b4f65bf6f260e70d7dc5f0a7f3ca7bc4c7906400266ad7baf06705769326", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "81b1b4f65bf6f260e70d7dc5f0a7f3ca7bc4c7906400266ad7baf06705769326", kill_on_drop: false }`
[INFO] [stdout] 81b1b4f65bf6f260e70d7dc5f0a7f3ca7bc4c7906400266ad7baf06705769326
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f40e5682385d0c40667bc8130a0bb8961b5d3defd534e6b99e0c963d05099b84
[INFO] running `Command { std: "docker" "start" "-a" "f40e5682385d0c40667bc8130a0bb8961b5d3defd534e6b99e0c963d05099b84", kill_on_drop: false }`
[INFO] [stderr]     Checking lock_api v0.4.14
[INFO] [stderr]     Checking signal-hook-registry v1.4.6
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]     Checking mio v1.1.0
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]     Checking tokio v1.48.0
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling cc v1.2.45
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling crc32fast v1.5.0
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling prost-derive v0.12.6
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling petgraph v0.6.5
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]    Compiling zstd-sys v2.0.16+zstd.1.5.7
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling tempfile v3.23.0
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling axum-core v0.3.4
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking inout v0.1.4
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling prost v0.12.6
[INFO] [stderr]     Checking simd-adler32 v0.3.7
[INFO] [stderr]    Compiling multimap v0.10.1
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling prost-types v0.12.6
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]     Checking universal-hash v0.5.1
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking actix-rt v2.11.0
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling prost-build v0.12.6
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]     Checking brotli-decompressor v5.0.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking actix-utils v3.0.1
[INFO] [stderr]    Compiling axum v0.6.20
[INFO] [stderr]    Compiling bytestring v1.5.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking actix-service v2.0.3
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]    Compiling protobuf v2.28.0
[INFO] [stderr]     Checking anstyle v1.0.13
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.2
[INFO] [stderr]    Compiling regex-lite v0.1.8
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking time v0.3.44
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]     Checking polyval v0.6.2
[INFO] [stderr]     Checking parking_lot_core v0.8.6
[INFO] [stderr]     Checking derive_more v2.0.1
[INFO] [stderr]     Checking brotli v8.0.2
[INFO] [stderr]    Compiling tonic-build v0.10.2
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]     Checking tokio-io-timeout v1.2.1
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking flate2 v1.1.5
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking local-channel v0.1.5
[INFO] [stderr]     Checking clap_lex v0.7.6
[INFO] [stderr]     Checking foldhash v0.1.5
[INFO] [stderr]    Compiling prometheus v0.13.4
[INFO] [stderr]     Checking clap_builder v4.5.51
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling structopt-derive v0.4.18
[INFO] [stderr]    Compiling mq v1.0.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking url v2.5.7
[INFO] [stderr]     Checking ghash v0.5.1
[INFO] [stderr]     Checking serde_json v1.0.145
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking aes v0.8.4
[INFO] [stderr]     Checking ctr v0.9.2
[INFO] [stderr]    Compiling clap_derive v4.5.49
[INFO] [stderr]     Checking aead v0.5.2
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking impl-more v0.1.9
[INFO] [stderr]     Checking tracing-subscriber v0.3.20
[INFO] [stderr]     Checking aes-gcm v0.10.3
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking chrono v0.4.42
[INFO] [stderr]     Checking structopt v0.3.26
[INFO] [stderr]     Checking uuid v1.18.1
[INFO] [stderr]     Checking tokio-test v0.4.4
[INFO] [stderr]     Checking clap v4.5.51
[INFO] [stderr]     Checking hyper-timeout v0.4.1
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking actix-http v3.11.2
[INFO] [stderr]     Checking tonic v0.10.2
[INFO] [stderr]     Checking actix-web v4.11.0
[INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64`
[INFO] [stdout]   --> src/message_queue.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64};
[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::collections::HashMap`
[INFO] [stdout]  --> src/server.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/client.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/monitoring.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Topic`
[INFO] [stdout]  --> src/monitoring.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic};
[INFO] [stdout]   |                                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Instant`
[INFO] [stdout]  --> src/monitoring.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::time::Instant;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts`
[INFO] [stdout]  --> src/metrics.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 |     Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry,
[INFO] [stdout]   |     ^^^^^^^  ^^^^^                                                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64`
[INFO] [stdout]   --> src/message_queue.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64};
[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: `tokio::sync::mpsc`
[INFO] [stdout]    --> src/server.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |     use tokio::sync::mpsc;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AtomicBool`
[INFO] [stdout]    --> src/client.rs:162:29
[INFO] [stdout]     |
[INFO] [stdout] 162 |     use std::sync::atomic::{AtomicBool, Ordering};
[INFO] [stdout]     |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::net::TcpListener`
[INFO] [stdout]    --> src/client.rs:163:9
[INFO] [stdout]     |
[INFO] [stdout] 163 |     use tokio::net::TcpListener;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]    --> src/client.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |     use std::net::SocketAddr;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Topic`
[INFO] [stdout]  --> src/monitoring.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic};
[INFO] [stdout]   |                                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Instant`
[INFO] [stdout]  --> src/monitoring.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::time::Instant;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts`
[INFO] [stdout]  --> src/metrics.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 |     Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry,
[INFO] [stdout]   |     ^^^^^^^  ^^^^^                                                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]    --> src/metrics.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     use std::time::Duration;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::time::sleep`
[INFO] [stdout]    --> src/metrics.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |     use tokio::time::sleep;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `storage` is never read
[INFO] [stdout]    --> src/message_queue.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 188 | pub struct MessageQueue {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] 189 |     topics: Arc<RwLock<HashMap<String, Topic>>>,
[INFO] [stdout] 190 |     storage: Arc<RwLock<sled::Db>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `consumer_id` is never read
[INFO] [stdout]   --> src/client.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct MQClient {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 20 |     client: MessageQueueServiceClient<Channel>,
[INFO] [stdout] 21 |     consumer_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MQClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duration` and `sleep`
[INFO] [stdout]  --> src/bin/client.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::time::{sleep, 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 imports: `Duration` and `sleep`
[INFO] [stdout]  --> src/bin/client.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::time::{sleep, 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: value captured by `received_count` is never read
[INFO] [stdout]   --> examples/client_example.rs:32:21
[INFO] [stdout]    |
[INFO] [stdout] 32 |                     received_count += 1;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: did you mean to capture by reference instead?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `received_count` is never read
[INFO] [stdout]   --> examples/client_example.rs:32:21
[INFO] [stdout]    |
[INFO] [stdout] 32 |                     received_count += 1;
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64`
[INFO] [stdout]   --> src/message_queue.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64};
[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: `tokio::sync::mpsc`
[INFO] [stdout]    --> src/server.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |     use tokio::sync::mpsc;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AtomicBool`
[INFO] [stdout]    --> src/client.rs:162:29
[INFO] [stdout]     |
[INFO] [stdout] 162 |     use std::sync::atomic::{AtomicBool, Ordering};
[INFO] [stdout]     |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::net::TcpListener`
[INFO] [stdout]    --> src/client.rs:163:9
[INFO] [stdout]     |
[INFO] [stdout] 163 |     use tokio::net::TcpListener;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]    --> src/client.rs:164:9
[INFO] [stdout]     |
[INFO] [stdout] 164 |     use std::net::SocketAddr;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Topic`
[INFO] [stdout]  --> src/monitoring.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic};
[INFO] [stdout]   |                                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Instant`
[INFO] [stdout]  --> src/monitoring.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::time::Instant;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts`
[INFO] [stdout]  --> src/metrics.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 |     Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry,
[INFO] [stdout]   |     ^^^^^^^  ^^^^^                                                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]    --> src/metrics.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     use std::time::Duration;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::time::sleep`
[INFO] [stdout]    --> src/metrics.rs:129:9
[INFO] [stdout]     |
[INFO] [stdout] 129 |     use tokio::time::sleep;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `storage` is never read
[INFO] [stdout]    --> src/message_queue.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 188 | pub struct MessageQueue {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] 189 |     topics: Arc<RwLock<HashMap<String, Topic>>>,
[INFO] [stdout] 190 |     storage: Arc<RwLock<sled::Db>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `consumer_id` is never read
[INFO] [stdout]   --> src/client.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct MQClient {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 20 |     client: MessageQueueServiceClient<Channel>,
[INFO] [stdout] 21 |     consumer_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MQClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose::STANDARD as BASE64`
[INFO] [stdout]   --> src/message_queue.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64};
[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::collections::HashMap`
[INFO] [stdout]  --> src/server.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/client.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/monitoring.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Topic`
[INFO] [stdout]  --> src/monitoring.rs:6:42
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::message_queue::{MessageQueue, Topic};
[INFO] [stdout]   |                                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Instant`
[INFO] [stdout]  --> src/monitoring.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::time::Instant;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Counter`, `Gauge`, and `Opts`
[INFO] [stdout]  --> src/metrics.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 |     Counter, Gauge, Histogram, HistogramOpts, IntCounter, IntGauge, Opts, Registry,
[INFO] [stdout]   |     ^^^^^^^  ^^^^^                                                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `addr` and `data_dir` are never read
[INFO] [stdout]   --> src/main.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | struct Opt {
[INFO] [stdout]    |        --- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 42 |     addr: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     data_dir: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NodeInfo` is never constructed
[INFO] [stdout]  --> src/coordinator/mod.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct NodeInfo {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Coordinator` is never constructed
[INFO] [stdout]   --> src/coordinator/mod.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Coordinator {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `register_node`, `elect_leader`, `get_leader`, and `get_nodes` are never used
[INFO] [stdout]   --> src/coordinator/mod.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Coordinator {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 20 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub async fn register_node(&self, node_id: Uuid, address: String) {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub async fn elect_leader(&self) -> Option<Uuid> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |     pub async fn get_leader(&self) -> Option<NodeInfo> {
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub async fn get_nodes(&self) -> Vec<NodeInfo> {
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `StorageError` is never used
[INFO] [stdout]  --> src/storage/mod.rs:8:10
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub enum StorageError {
[INFO] [stdout]   |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Message` is never constructed
[INFO] [stdout]   --> src/storage/mod.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Message {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MessageStatus` is never used
[INFO] [stdout]   --> src/storage/mod.rs:25:10
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub enum MessageStatus {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MessageStorage` is never constructed
[INFO] [stdout]   --> src/storage/mod.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub struct MessageStorage {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `store_message`, `get_message`, and `update_message_status` are never used
[INFO] [stdout]   --> src/storage/mod.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | impl MessageStorage {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 37 |     pub fn new(path: impl AsRef<Path>) -> Result<Self, StorageError> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn store_message(&self, message: &Message) -> Result<(), StorageError> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     pub fn get_message(&self, id: Uuid) -> Result<Message, StorageError> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn update_message_status(&self, id: Uuid, status: MessageStatus) -> Result<(), StorageError> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TransactionManager` is never constructed
[INFO] [stdout]  --> src/transaction/mod.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct TransactionManager {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `start_checking`, `check_pending_messages`, `prepare_message`, `commit_message`, and `rollback_message` are never used
[INFO] [stdout]   --> src/transaction/mod.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl TransactionManager {
[INFO] [stdout]    | ----------------------- associated items in this implementation
[INFO] [stdout] 13 |     pub fn new(storage: MessageStorage, check_interval: Duration) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub async fn start_checking(&self) {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     async fn check_pending_messages(&self) -> Result<(), StorageError> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn prepare_message(&self, topic: String, body: Vec<u8>) -> Result<Uuid, StorageError> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     pub fn commit_message(&self, id: Uuid) -> Result<(), StorageError> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58 |     pub fn rollback_message(&self, id: Uuid) -> Result<(), StorageError> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `ConsumerGroupNotFound` and `EncryptionError` are never constructed
[INFO] [stdout]   --> src/message_queue.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum MQError {
[INFO] [stdout]    |          ------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 23 |     ConsumerGroupNotFound(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     EncryptionError(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MQError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `encrypt`, and `decrypt` are never used
[INFO] [stdout]    --> src/message_queue.rs:45:12
[INFO] [stdout]     |
[INFO] [stdout]  44 | impl Message {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout]  45 |     pub fn new(topic: String, payload: Vec<u8>, headers: HashMap<String, String>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  96 |     pub fn encrypt(&mut self, key: &[u8]) -> Result<(), MQError> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn decrypt(&mut self, key: &[u8]) -> Result<(), MQError> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ConsumerGroup` is never constructed
[INFO] [stdout]    --> src/message_queue.rs:160:12
[INFO] [stdout]     |
[INFO] [stdout] 160 | pub struct ConsumerGroup {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]    --> src/message_queue.rs:168:9
[INFO] [stdout]     |
[INFO] [stdout] 167 | pub struct Partition {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] 168 |     pub id: usize,
[INFO] [stdout]     |         ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Partition` 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: field `storage` is never read
[INFO] [stdout]    --> src/message_queue.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 188 | pub struct MessageQueue {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] 189 |     topics: Arc<RwLock<HashMap<String, Topic>>>,
[INFO] [stdout] 190 |     storage: Arc<RwLock<sled::Db>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `create_topic`, `publish_dlq`, `replay_from_offset`, and `replay_from_timestamp` are never used
[INFO] [stdout]    --> src/message_queue.rs:248:18
[INFO] [stdout]     |
[INFO] [stdout] 193 | impl MessageQueue {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 248 |     pub async fn create_topic(&self, name: &str) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 261 |     pub async fn publish_dlq(&self, topic: &str, message: Message) -> Result<(), MQError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub async fn replay_from_offset(&self, topic: &str, partition: usize, offset: usize) -> Result<Vec<Message>, MQError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 331 |     pub async fn replay_from_timestamp(&self, topic: &str, partition: usize, timestamp: i64) -> Result<Vec<Message>, MQError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MQClient` is never constructed
[INFO] [stdout]   --> src/client.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct MQClient {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `set_encryption_key`, `create_topic`, `publish`, `subscribe`, and `commit_offset` are never used
[INFO] [stdout]    --> src/client.rs:26:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl MQClient {
[INFO] [stdout]     | ------------- associated items in this implementation
[INFO] [stdout]  26 |     pub async fn new(addr: String) -> Result<Self, Box<dyn StdError + Send + Sync>> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  36 |     pub fn set_encryption_key(&mut self, key: Vec<u8>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  40 |     pub async fn create_topic(&mut self, name: &str) -> Result<bool, Box<dyn StdError + Send + Sync>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  51 |     pub async fn publish(
[INFO] [stdout]     |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  85 |     pub async fn subscribe(
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     pub async fn commit_offset(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/metrics.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Metrics {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub messages_per_topic: IntGauge,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     pub publish_operations: IntCounter,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 22 |     pub subscribe_operations: IntCounter,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 23 |     pub publish_latency: Histogram,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 24 |     pub subscribe_latency: Histogram,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub publish_errors: IntCounter,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     pub subscribe_errors: IntCounter,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 29 |     pub compression_errors: IntCounter,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 30 |     pub encryption_errors: IntCounter,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Metrics` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `record_publish`, `record_subscribe`, `record_publish_error`, `record_subscribe_error`, `record_compression_error`, and `record_encryption_error` are never used
[INFO] [stdout]    --> src/metrics.rs:94:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl Metrics {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  94 |     pub fn record_publish(&self, latency: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  99 |     pub fn record_subscribe(&self, latency: f64) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn record_publish_error(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub fn record_subscribe_error(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn record_compression_error(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn record_encryption_error(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `addr` and `data_dir` are never read
[INFO] [stdout]   --> src/main.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | struct Opt {
[INFO] [stdout]    |        --- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 42 |     addr: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     data_dir: PathBuf,
[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 `ConsumerGroupNotFound` is never constructed
[INFO] [stdout]   --> src/message_queue.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub enum MQError {
[INFO] [stdout]    |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 23 |     ConsumerGroupNotFound(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MQError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ConsumerGroup` is never constructed
[INFO] [stdout]    --> src/message_queue.rs:160:12
[INFO] [stdout]     |
[INFO] [stdout] 160 | pub struct ConsumerGroup {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]    --> src/message_queue.rs:168:9
[INFO] [stdout]     |
[INFO] [stdout] 167 | pub struct Partition {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] 168 |     pub id: usize,
[INFO] [stdout]     |         ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Partition` 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: field `storage` is never read
[INFO] [stdout]    --> src/message_queue.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 188 | pub struct MessageQueue {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] 189 |     topics: Arc<RwLock<HashMap<String, Topic>>>,
[INFO] [stdout] 190 |     storage: Arc<RwLock<sled::Db>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageQueue` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `publish_dlq`, `replay_from_offset`, and `replay_from_timestamp` are never used
[INFO] [stdout]    --> src/message_queue.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 193 | impl MessageQueue {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 261 |     pub async fn publish_dlq(&self, topic: &str, message: Message) -> Result<(), MQError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 318 |     pub async fn replay_from_offset(&self, topic: &str, partition: usize, offset: usize) -> Result<Vec<Message>, MQError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 331 |     pub async fn replay_from_timestamp(&self, topic: &str, partition: usize, timestamp: i64) -> Result<Vec<Message>, MQError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `consumer_id` is never read
[INFO] [stdout]   --> src/client.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct MQClient {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 20 |     client: MessageQueueServiceClient<Channel>,
[INFO] [stdout] 21 |     consumer_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MQClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `messages_per_topic` is never read
[INFO] [stdout]   --> src/metrics.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct Metrics {
[INFO] [stdout]    |            ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub messages_per_topic: IntGauge,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Metrics` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 15s
[INFO] running `Command { std: "docker" "inspect" "f40e5682385d0c40667bc8130a0bb8961b5d3defd534e6b99e0c963d05099b84", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f40e5682385d0c40667bc8130a0bb8961b5d3defd534e6b99e0c963d05099b84", kill_on_drop: false }`
[INFO] [stdout] f40e5682385d0c40667bc8130a0bb8961b5d3defd534e6b99e0c963d05099b84
