[INFO] cloning repository https://github.com/XeanYu/grok2api-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/XeanYu/grok2api-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXeanYu%2Fgrok2api-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXeanYu%2Fgrok2api-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a9228bf1fe0bc0a240dffefc4e7484e6aab3128c
[INFO] testing XeanYu/grok2api-rs against 1.98.0-beta.1 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXeanYu%2Fgrok2api-rs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/XeanYu/grok2api-rs
[INFO] finished tweaking git repo https://github.com/XeanYu/grok2api-rs
[INFO] tweaked toml for git repo https://github.com/XeanYu/grok2api-rs written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/XeanYu/grok2api-rs on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/XeanYu/grok2api-rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782
[INFO] running `Command { std: "docker" "start" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling zerocopy v0.8.38
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling socket2 v0.6.2
[INFO] [stderr]    Compiling rustls-pki-types v1.14.0
[INFO] [stderr]    Compiling cc v1.2.55
[INFO] [stderr]    Compiling glob v0.3.3
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling regex-syntax v0.8.9
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling libloading v0.8.9
[INFO] [stderr]    Compiling bindgen v0.72.1
[INFO] [stderr]    Compiling zmij v1.0.19
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling rustc-hash v2.1.1
[INFO] [stderr]    Compiling itertools v0.13.0
[INFO] [stderr]    Compiling fslock v0.2.1
[INFO] [stderr]    Compiling rustls v0.23.36
[INFO] [stderr]    Compiling flate2 v1.1.9
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling compression-core v0.4.31
[INFO] [stderr]    Compiling clang-sys v1.8.1
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling foreign-types-shared v0.3.1
[INFO] [stderr]    Compiling webpki-roots v1.0.6
[INFO] [stderr]    Compiling iri-string v0.7.10
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling unicase v2.9.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling multer v3.1.0
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling hashbrown v0.13.2
[INFO] [stderr]    Compiling rust-embed-utils v8.11.0
[INFO] [stderr]    Compiling webpki-root-certs v1.0.6
[INFO] [stderr]    Compiling serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling headers-core v0.3.0
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling cmake v0.1.57
[INFO] [stderr]    Compiling headers v0.4.1
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling uuid v1.20.0
[INFO] [stderr]    Compiling fs2 v0.4.3
[INFO] [stderr]    Compiling urlencoding v2.1.3
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling zstd-sys v2.0.16+zstd.1.5.7
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling schnellru v0.2.4
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling rustls-webpki v0.103.9
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling foreign-types-macros v0.2.3
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling axum-macros v0.4.2
[INFO] [stderr]    Compiling compression-codecs v0.4.36
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling foreign-types v0.5.0
[INFO] [stderr]    Compiling typed-builder-macro v0.23.2
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling rust-embed-impl v8.11.0
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling rust-embed v8.11.0
[INFO] [stderr]    Compiling typed-builder v0.23.2
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling toml_datetime v0.6.11
[INFO] [stderr]    Compiling serde_spanned v0.6.9
[INFO] [stderr]    Compiling tracing-serde v0.2.0
[INFO] [stderr]    Compiling chrono v0.4.43
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling axum-core v0.4.5
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling tungstenite v0.26.2
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling boring-sys2 v5.0.0-alpha.12
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling toml v0.8.23
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling async-compression v0.4.37
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling http2 v0.5.11
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling axum-extra v0.9.6
[INFO] [stderr]    Compiling boring2 v5.0.0-alpha.12
[INFO] [stderr]    Compiling tokio-boring2 v5.0.0-alpha.12
[INFO] [stderr]    Compiling wreq v6.0.0-rc.27
[INFO] [stderr]    Compiling wreq-util v3.0.0-rc.9
[INFO] [stderr]    Compiling grok2api-rs v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Stream`
[INFO] [stdout]   --> src/api/v1/admin.rs:10:15
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::{Stream, StreamExt};
[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: `ShouldCancel`
[INFO] [stdout]   --> src/api/v1/admin.rs:23:44
[INFO] [stdout]    |
[INFO] [stdout] 23 | use crate::services::grok::batch::{OnItem, ShouldCancel, run_in_batches};
[INFO] [stdout]    |                                            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/api/v1/chat.rs:7:38
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::{Value as JsonValue, json};
[INFO] [stdout]   |                                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::pin::Pin`
[INFO] [stdout]  --> src/services/grok/processor.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::pin::Pin;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Poll`
[INFO] [stdout]  --> src/services/grok/processor.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::task::{Context, Poll};
[INFO] [stdout]   |                 ^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FAIL_THRESHOLD`
[INFO] [stdout]   --> src/services/token/manager.rs:12:32
[INFO] [stdout]    |
[INFO] [stdout] 12 |     DEFAULT_QUOTA, EffortType, FAIL_THRESHOLD, TokenInfo, TokenPoolStats, TokenStatus,
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenInfo` and `TokenStatus`
[INFO] [stdout]  --> src/services/token/mod.rs:8:30
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub use models::{EffortType, TokenInfo, TokenStatus};
[INFO] [stdout]   |                              ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/services/grok/processor.rs:551:23
[INFO] [stdout]     |
[INFO] [stdout] 551 |     pub fn process<S>(mut self, input: S) -> impl Stream<Item = Result<Bytes, Infallible>>
[INFO] [stdout]     |                       ----^^^^
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StreamExt`
[INFO] [stdout]   --> src/api/v1/admin.rs:10:23
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::{Stream, StreamExt};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_path`
[INFO] [stdout]    --> src/services/grok/assets.rs:194:49
[INFO] [stdout]     |
[INFO] [stdout] 194 |     pub async fn dl_headers(&self, token: &str, file_path: &str) -> reqwest::header::HeaderMap {
[INFO] [stdout]     |                                                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/services/grok/model.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let mut models = vec![
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `quality` and `style` are never read
[INFO] [stdout]   --> src/api/v1/image.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct ImageRequest {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub quality: Option<String>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 31 |     pub response_format: Option<String>,
[INFO] [stdout] 32 |     pub style: Option<String>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImageRequest` has a derived impl for the trait `Debug`, 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: fields `error` and `created_at` are never read
[INFO] [stdout]   --> src/core/batch_tasks.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct BatchTask {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub error: Option<String>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 20 |     pub created_at: f64,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BatchTask` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `fail_task` is never used
[INFO] [stdout]    --> src/core/batch_tasks.rs:118:12
[INFO] [stdout]     |
[INFO] [stdout]  26 | impl BatchTask {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn fail_task(&mut self, error: String) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `PermissionError` and `ServiceUnavailableError` are never constructed
[INFO] [stdout]   --> src/core/exceptions.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum ErrorType {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 11 |     PermissionError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     ServiceUnavailableError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ErrorType` 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: associated function `permission` is never used
[INFO] [stdout]   --> src/core/exceptions.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 38 | impl ApiError {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 79 |     pub fn permission(message: impl Into<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `lock` is never read
[INFO] [stdout]    --> src/services/grok/assets.rs:110:5
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub struct BaseService {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 110 |     lock: ArcMutex,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `BaseService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `client` is never used
[INFO] [stdout]    --> src/services/grok/assets.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl BaseService {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 134 |     pub fn client(&self) -> Client {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `base_dir` is never read
[INFO] [stdout]    --> src/services/grok/assets.rs:491:5
[INFO] [stdout]     |
[INFO] [stdout] 489 | pub struct DownloadService {
[INFO] [stdout]     |            --------------- field in this struct
[INFO] [stdout] 490 |     base: BaseService,
[INFO] [stdout] 491 |     base_dir: PathBuf,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DownloadService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_public_url` is never used
[INFO] [stdout]    --> src/services/grok/assets.rs:801:18
[INFO] [stdout]     |
[INFO] [stdout] 497 | impl DownloadService {
[INFO] [stdout]     | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 801 |     pub async fn get_public_url(&self, file_path: &str) -> String {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Json` is never constructed
[INFO] [stdout]    --> src/services/grok/chat.rs:427:5
[INFO] [stdout]     |
[INFO] [stdout] 419 | pub enum ChatResult {
[INFO] [stdout]     |          ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 427 |     Json(JsonValue),
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `http_equiv` is never used
[INFO] [stdout]    --> src/services/grok/grpc_web.rs:120:12
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl GrpcStatus {
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn http_equiv(&self) -> u16 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `count` is never read
[INFO] [stdout]   --> src/services/grok/imagine_nsfw.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct ImagineResult {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub count: usize,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImagineResult` 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 `url` is never read
[INFO] [stdout]   --> src/services/grok/imagine_nsfw.rs:74:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct ImageProgress {
[INFO] [stdout]    |        ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 74 |     url: String,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImageProgress` 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: variant `Json` is never constructed
[INFO] [stdout]    --> src/services/grok/media.rs:361:5
[INFO] [stdout]     |
[INFO] [stdout] 353 | pub enum VideoResult {
[INFO] [stdout]     |          ----------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 361 |     Json(JsonValue),
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `partial_index` is never read
[INFO] [stdout]    --> src/services/grok/processor.rs:525:5
[INFO] [stdout]     |
[INFO] [stdout] 523 | pub struct ImageStreamProcessor {
[INFO] [stdout]     |            -------------------- field in this struct
[INFO] [stdout] 524 |     base: BaseProcessor,
[INFO] [stdout] 525 |     partial_index: usize,
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RetryContext` is never constructed
[INFO] [stdout]  --> src/services/grok/retry.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct RetryContext {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `should_retry` are never used
[INFO] [stdout]   --> src/services/grok/retry.rs:13:18
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl RetryContext {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] 13 |     pub async fn new() -> Self {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn should_retry(&self, status: u16) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `retry_on_status` is never used
[INFO] [stdout]   --> src/services/grok/retry.rs:29:14
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub async fn retry_on_status<F, Fut, T, E>(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/services/token/manager.rs:174:18
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl TokenManager {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 174 |     pub async fn record_fail(&mut self, token_str: &str, status_code: u16, reason: &str) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 186 |     pub async fn add(&mut self, token: &str, pool_name: &str) -> bool {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 200 |     pub async fn remove(&mut self, token: &str) -> bool {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 210 |     pub async fn reset_all(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |     pub async fn reset_token(&mut self, token_str: &str) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 233 |     pub fn get_stats(&self) -> HashMap<String, TokenPoolStats> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 241 |     pub fn get_pool_tokens(&self, pool_name: &str) -> Vec<TokenInfo> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 248 |     pub fn has_tag(&self, token: &str, tag: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FAIL_THRESHOLD` is never used
[INFO] [stdout]   --> src/services/token/models.rs:27:11
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub const FAIL_THRESHOLD: i32 = 5;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `is_available`, `reset`, and `record_fail` are never used
[INFO] [stdout]    --> src/services/token/models.rs:51:12
[INFO] [stdout]     |
[INFO] [stdout]  50 | impl TokenInfo {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout]  51 |     pub fn new(token: String) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub fn is_available(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  98 |     pub fn reset(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn record_fail(&mut self, status_code: u16, reason: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenPoolStats` is never constructed
[INFO] [stdout]    --> src/services/token/models.rs:150:12
[INFO] [stdout]     |
[INFO] [stdout] 150 | pub struct TokenPoolStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `name` is never read
[INFO] [stdout]  --> src/services/token/pool.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct TokenPool {
[INFO] [stdout]   |            --------- field in this struct
[INFO] [stdout] 7 |     pub name: String,
[INFO] [stdout]   |         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `TokenPool` 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: methods `remove` and `stats` are never used
[INFO] [stdout]   --> src/services/token/pool.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl TokenPool {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn remove(&mut self, token: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 60 |     pub fn stats(&self) -> TokenPoolStats {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `stop` is never used
[INFO] [stdout]   --> src/services/token/scheduler.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl TokenRefreshScheduler {
[INFO] [stdout]    | -------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn stop(&mut self) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 48s
[INFO] running `Command { std: "docker" "inspect" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling grok2api-rs v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Stream`
[INFO] [stdout]   --> src/api/v1/admin.rs:10:15
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::{Stream, StreamExt};
[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: `ShouldCancel`
[INFO] [stdout]   --> src/api/v1/admin.rs:23:44
[INFO] [stdout]    |
[INFO] [stdout] 23 | use crate::services::grok::batch::{OnItem, ShouldCancel, run_in_batches};
[INFO] [stdout]    |                                            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/api/v1/chat.rs:7:38
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::{Value as JsonValue, json};
[INFO] [stdout]   |                                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::pin::Pin`
[INFO] [stdout]  --> src/services/grok/processor.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::pin::Pin;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Context` and `Poll`
[INFO] [stdout]  --> src/services/grok/processor.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::task::{Context, Poll};
[INFO] [stdout]   |                 ^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FAIL_THRESHOLD`
[INFO] [stdout]   --> src/services/token/manager.rs:12:32
[INFO] [stdout]    |
[INFO] [stdout] 12 |     DEFAULT_QUOTA, EffortType, FAIL_THRESHOLD, TokenInfo, TokenPoolStats, TokenStatus,
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenInfo` and `TokenStatus`
[INFO] [stdout]  --> src/services/token/mod.rs:8:30
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub use models::{EffortType, TokenInfo, TokenStatus};
[INFO] [stdout]   |                              ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/services/grok/processor.rs:551:23
[INFO] [stdout]     |
[INFO] [stdout] 551 |     pub fn process<S>(mut self, input: S) -> impl Stream<Item = Result<Bytes, Infallible>>
[INFO] [stdout]     |                       ----^^^^
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StreamExt`
[INFO] [stdout]   --> src/api/v1/admin.rs:10:23
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::{Stream, StreamExt};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_path`
[INFO] [stdout]    --> src/services/grok/assets.rs:194:49
[INFO] [stdout]     |
[INFO] [stdout] 194 |     pub async fn dl_headers(&self, token: &str, file_path: &str) -> reqwest::header::HeaderMap {
[INFO] [stdout]     |                                                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/services/grok/model.rs:50:13
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let mut models = vec![
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `quality` and `style` are never read
[INFO] [stdout]   --> src/api/v1/image.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct ImageRequest {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub quality: Option<String>,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 31 |     pub response_format: Option<String>,
[INFO] [stdout] 32 |     pub style: Option<String>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImageRequest` has a derived impl for the trait `Debug`, 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: fields `error` and `created_at` are never read
[INFO] [stdout]   --> src/core/batch_tasks.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct BatchTask {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub error: Option<String>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 20 |     pub created_at: f64,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BatchTask` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `fail_task` is never used
[INFO] [stdout]    --> src/core/batch_tasks.rs:118:12
[INFO] [stdout]     |
[INFO] [stdout]  26 | impl BatchTask {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn fail_task(&mut self, error: String) {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `PermissionError` and `ServiceUnavailableError` are never constructed
[INFO] [stdout]   --> src/core/exceptions.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum ErrorType {
[INFO] [stdout]    |          --------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 11 |     PermissionError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     ServiceUnavailableError,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ErrorType` 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: associated function `permission` is never used
[INFO] [stdout]   --> src/core/exceptions.rs:79:12
[INFO] [stdout]    |
[INFO] [stdout] 38 | impl ApiError {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 79 |     pub fn permission(message: impl Into<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `lock` is never read
[INFO] [stdout]    --> src/services/grok/assets.rs:110:5
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub struct BaseService {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 110 |     lock: ArcMutex,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `BaseService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `client` is never used
[INFO] [stdout]    --> src/services/grok/assets.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl BaseService {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 134 |     pub fn client(&self) -> Client {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `base_dir` is never read
[INFO] [stdout]    --> src/services/grok/assets.rs:491:5
[INFO] [stdout]     |
[INFO] [stdout] 489 | pub struct DownloadService {
[INFO] [stdout]     |            --------------- field in this struct
[INFO] [stdout] 490 |     base: BaseService,
[INFO] [stdout] 491 |     base_dir: PathBuf,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DownloadService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_public_url` is never used
[INFO] [stdout]    --> src/services/grok/assets.rs:801:18
[INFO] [stdout]     |
[INFO] [stdout] 497 | impl DownloadService {
[INFO] [stdout]     | -------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 801 |     pub async fn get_public_url(&self, file_path: &str) -> String {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Json` is never constructed
[INFO] [stdout]    --> src/services/grok/chat.rs:427:5
[INFO] [stdout]     |
[INFO] [stdout] 419 | pub enum ChatResult {
[INFO] [stdout]     |          ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 427 |     Json(JsonValue),
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `http_equiv` is never used
[INFO] [stdout]    --> src/services/grok/grpc_web.rs:120:12
[INFO] [stdout]     |
[INFO] [stdout] 115 | impl GrpcStatus {
[INFO] [stdout]     | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn http_equiv(&self) -> u16 {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `count` is never read
[INFO] [stdout]   --> src/services/grok/imagine_nsfw.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct ImagineResult {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub count: usize,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImagineResult` 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 `url` is never read
[INFO] [stdout]   --> src/services/grok/imagine_nsfw.rs:74:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct ImageProgress {
[INFO] [stdout]    |        ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 74 |     url: String,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ImageProgress` 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: variant `Json` is never constructed
[INFO] [stdout]    --> src/services/grok/media.rs:361:5
[INFO] [stdout]     |
[INFO] [stdout] 353 | pub enum VideoResult {
[INFO] [stdout]     |          ----------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 361 |     Json(JsonValue),
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `partial_index` is never read
[INFO] [stdout]    --> src/services/grok/processor.rs:525:5
[INFO] [stdout]     |
[INFO] [stdout] 523 | pub struct ImageStreamProcessor {
[INFO] [stdout]     |            -------------------- field in this struct
[INFO] [stdout] 524 |     base: BaseProcessor,
[INFO] [stdout] 525 |     partial_index: usize,
[INFO] [stdout]     |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RetryContext` is never constructed
[INFO] [stdout]  --> src/services/grok/retry.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct RetryContext {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `should_retry` are never used
[INFO] [stdout]   --> src/services/grok/retry.rs:13:18
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl RetryContext {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] 13 |     pub async fn new() -> Self {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn should_retry(&self, status: u16) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `retry_on_status` is never used
[INFO] [stdout]   --> src/services/grok/retry.rs:29:14
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub async fn retry_on_status<F, Fut, T, E>(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/services/token/manager.rs:174:18
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl TokenManager {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 174 |     pub async fn record_fail(&mut self, token_str: &str, status_code: u16, reason: &str) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 186 |     pub async fn add(&mut self, token: &str, pool_name: &str) -> bool {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 200 |     pub async fn remove(&mut self, token: &str) -> bool {
[INFO] [stdout]     |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 210 |     pub async fn reset_all(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |     pub async fn reset_token(&mut self, token_str: &str) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 233 |     pub fn get_stats(&self) -> HashMap<String, TokenPoolStats> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 241 |     pub fn get_pool_tokens(&self, pool_name: &str) -> Vec<TokenInfo> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 248 |     pub fn has_tag(&self, token: &str, tag: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FAIL_THRESHOLD` is never used
[INFO] [stdout]   --> src/services/token/models.rs:27:11
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub const FAIL_THRESHOLD: i32 = 5;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `is_available`, `reset`, and `record_fail` are never used
[INFO] [stdout]    --> src/services/token/models.rs:51:12
[INFO] [stdout]     |
[INFO] [stdout]  50 | impl TokenInfo {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout]  51 |     pub fn new(token: String) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub fn is_available(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  98 |     pub fn reset(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub fn record_fail(&mut self, status_code: u16, reason: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenPoolStats` is never constructed
[INFO] [stdout]    --> src/services/token/models.rs:150:12
[INFO] [stdout]     |
[INFO] [stdout] 150 | pub struct TokenPoolStats {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `name` is never read
[INFO] [stdout]  --> src/services/token/pool.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct TokenPool {
[INFO] [stdout]   |            --------- field in this struct
[INFO] [stdout] 7 |     pub name: String,
[INFO] [stdout]   |         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `TokenPool` 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: methods `remove` and `stats` are never used
[INFO] [stdout]   --> src/services/token/pool.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl TokenPool {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 23 |     pub fn remove(&mut self, token: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 60 |     pub fn stats(&self) -> TokenPoolStats {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `stop` is never used
[INFO] [stdout]   --> src/services/token/scheduler.rs:39:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl TokenRefreshScheduler {
[INFO] [stdout]    | -------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn stop(&mut self) {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 9.46s
[INFO] running `Command { std: "docker" "inspect" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `Stream`
[INFO] [stderr]   --> src/api/v1/admin.rs:10:15
[INFO] [stderr]    |
[INFO] [stderr] 10 | use futures::{Stream, StreamExt};
[INFO] [stderr]    |               ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `ShouldCancel`
[INFO] [stderr]   --> src/api/v1/admin.rs:23:44
[INFO] [stderr]    |
[INFO] [stderr] 23 | use crate::services::grok::batch::{OnItem, ShouldCancel, run_in_batches};
[INFO] [stderr]    |                                            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `json`
[INFO] [stderr]  --> src/api/v1/chat.rs:7:38
[INFO] [stderr]   |
[INFO] [stderr] 7 | use serde_json::{Value as JsonValue, json};
[INFO] [stderr]   |                                      ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::pin::Pin`
[INFO] [stderr]  --> src/services/grok/processor.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::pin::Pin;
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Context` and `Poll`
[INFO] [stderr]  --> src/services/grok/processor.rs:3:17
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::task::{Context, Poll};
[INFO] [stderr]   |                 ^^^^^^^  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `FAIL_THRESHOLD`
[INFO] [stderr]   --> src/services/token/manager.rs:12:32
[INFO] [stderr]    |
[INFO] [stderr] 12 |     DEFAULT_QUOTA, EffortType, FAIL_THRESHOLD, TokenInfo, TokenPoolStats, TokenStatus,
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `TokenInfo` and `TokenStatus`
[INFO] [stderr]  --> src/services/token/mod.rs:8:30
[INFO] [stderr]   |
[INFO] [stderr] 8 | pub use models::{EffortType, TokenInfo, TokenStatus};
[INFO] [stderr]   |                              ^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/services/grok/processor.rs:551:23
[INFO] [stderr]     |
[INFO] [stderr] 551 |     pub fn process<S>(mut self, input: S) -> impl Stream<Item = Result<Bytes, Infallible>>
[INFO] [stderr]     |                       ----^^^^
[INFO] [stderr]     |                       |
[INFO] [stderr]     |                       help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `StreamExt`
[INFO] [stderr]   --> src/api/v1/admin.rs:10:23
[INFO] [stderr]    |
[INFO] [stderr] 10 | use futures::{Stream, StreamExt};
[INFO] [stderr]    |                       ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `file_path`
[INFO] [stderr]    --> src/services/grok/assets.rs:194:49
[INFO] [stderr]     |
[INFO] [stderr] 194 |     pub async fn dl_headers(&self, token: &str, file_path: &str) -> reqwest::header::HeaderMap {
[INFO] [stderr]     |                                                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/services/grok/model.rs:50:13
[INFO] [stderr]    |
[INFO] [stderr] 50 |         let mut models = vec![
[INFO] [stderr]    |             ----^^^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: fields `quality` and `style` are never read
[INFO] [stderr]   --> src/api/v1/image.rs:30:9
[INFO] [stderr]    |
[INFO] [stderr] 25 | pub struct ImageRequest {
[INFO] [stderr]    |            ------------ fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 30 |     pub quality: Option<String>,
[INFO] [stderr]    |         ^^^^^^^
[INFO] [stderr] 31 |     pub response_format: Option<String>,
[INFO] [stderr] 32 |     pub style: Option<String>,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ImageRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `error` and `created_at` are never read
[INFO] [stderr]   --> src/core/batch_tasks.rs:19:9
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub struct BatchTask {
[INFO] [stderr]    |            --------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 19 |     pub error: Option<String>,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr] 20 |     pub created_at: f64,
[INFO] [stderr]    |         ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `BatchTask` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `fail_task` is never used
[INFO] [stderr]    --> src/core/batch_tasks.rs:118:12
[INFO] [stderr]     |
[INFO] [stderr]  26 | impl BatchTask {
[INFO] [stderr]     | -------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 118 |     pub fn fail_task(&mut self, error: String) {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `PermissionError` and `ServiceUnavailableError` are never constructed
[INFO] [stderr]   --> src/core/exceptions.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr]  8 | pub enum ErrorType {
[INFO] [stderr]    |          --------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr] 11 |     PermissionError,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 15 |     ServiceUnavailableError,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ErrorType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `permission` is never used
[INFO] [stderr]   --> src/core/exceptions.rs:79:12
[INFO] [stderr]    |
[INFO] [stderr] 38 | impl ApiError {
[INFO] [stderr]    | ------------- associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 79 |     pub fn permission(message: impl Into<String>) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `lock` is never read
[INFO] [stderr]    --> src/services/grok/assets.rs:110:5
[INFO] [stderr]     |
[INFO] [stderr] 106 | pub struct BaseService {
[INFO] [stderr]     |            ----------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 110 |     lock: ArcMutex,
[INFO] [stderr]     |     ^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `BaseService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `client` is never used
[INFO] [stderr]    --> src/services/grok/assets.rs:134:12
[INFO] [stderr]     |
[INFO] [stderr] 115 | impl BaseService {
[INFO] [stderr]     | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 134 |     pub fn client(&self) -> Client {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `base_dir` is never read
[INFO] [stderr]    --> src/services/grok/assets.rs:491:5
[INFO] [stderr]     |
[INFO] [stderr] 489 | pub struct DownloadService {
[INFO] [stderr]     |            --------------- field in this struct
[INFO] [stderr] 490 |     base: BaseService,
[INFO] [stderr] 491 |     base_dir: PathBuf,
[INFO] [stderr]     |     ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `DownloadService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_public_url` is never used
[INFO] [stderr]    --> src/services/grok/assets.rs:801:18
[INFO] [stderr]     |
[INFO] [stderr] 497 | impl DownloadService {
[INFO] [stderr]     | -------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 801 |     pub async fn get_public_url(&self, file_path: &str) -> String {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variant `Json` is never constructed
[INFO] [stderr]    --> src/services/grok/chat.rs:427:5
[INFO] [stderr]     |
[INFO] [stderr] 419 | pub enum ChatResult {
[INFO] [stderr]     |          ---------- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 427 |     Json(JsonValue),
[INFO] [stderr]     |     ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `http_equiv` is never used
[INFO] [stderr]    --> src/services/grok/grpc_web.rs:120:12
[INFO] [stderr]     |
[INFO] [stderr] 115 | impl GrpcStatus {
[INFO] [stderr]     | --------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 120 |     pub fn http_equiv(&self) -> u16 {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `count` is never read
[INFO] [stderr]   --> src/services/grok/imagine_nsfw.rs:39:9
[INFO] [stderr]    |
[INFO] [stderr] 35 | pub struct ImagineResult {
[INFO] [stderr]    |            ------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 39 |     pub count: usize,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ImagineResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `url` is never read
[INFO] [stderr]   --> src/services/grok/imagine_nsfw.rs:74:5
[INFO] [stderr]    |
[INFO] [stderr] 69 | struct ImageProgress {
[INFO] [stderr]    |        ------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 74 |     url: String,
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ImageProgress` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: variant `Json` is never constructed
[INFO] [stderr]    --> src/services/grok/media.rs:361:5
[INFO] [stderr]     |
[INFO] [stderr] 353 | pub enum VideoResult {
[INFO] [stderr]     |          ----------- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 361 |     Json(JsonValue),
[INFO] [stderr]     |     ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `partial_index` is never read
[INFO] [stderr]    --> src/services/grok/processor.rs:525:5
[INFO] [stderr]     |
[INFO] [stderr] 523 | pub struct ImageStreamProcessor {
[INFO] [stderr]     |            -------------------- field in this struct
[INFO] [stderr] 524 |     base: BaseProcessor,
[INFO] [stderr] 525 |     partial_index: usize,
[INFO] [stderr]     |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `RetryContext` is never constructed
[INFO] [stderr]  --> src/services/grok/retry.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct RetryContext {
[INFO] [stderr]   |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `should_retry` are never used
[INFO] [stderr]   --> src/services/grok/retry.rs:13:18
[INFO] [stderr]    |
[INFO] [stderr] 12 | impl RetryContext {
[INFO] [stderr]    | ----------------- associated items in this implementation
[INFO] [stderr] 13 |     pub async fn new() -> Self {
[INFO] [stderr]    |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr] 24 |     pub fn should_retry(&self, status: u16) -> bool {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `retry_on_status` is never used
[INFO] [stderr]   --> src/services/grok/retry.rs:29:14
[INFO] [stderr]    |
[INFO] [stderr] 29 | pub async fn retry_on_status<F, Fut, T, E>(
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple methods are never used
[INFO] [stderr]    --> src/services/token/manager.rs:174:18
[INFO] [stderr]     |
[INFO] [stderr]  23 | impl TokenManager {
[INFO] [stderr]     | ----------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 174 |     pub async fn record_fail(&mut self, token_str: &str, status_code: u16, reason: &str) -> bool {
[INFO] [stderr]     |                  ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 186 |     pub async fn add(&mut self, token: &str, pool_name: &str) -> bool {
[INFO] [stderr]     |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr] 200 |     pub async fn remove(&mut self, token: &str) -> bool {
[INFO] [stderr]     |                  ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 210 |     pub async fn reset_all(&mut self) {
[INFO] [stderr]     |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 221 |     pub async fn reset_token(&mut self, token_str: &str) -> bool {
[INFO] [stderr]     |                  ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 233 |     pub fn get_stats(&self) -> HashMap<String, TokenPoolStats> {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 241 |     pub fn get_pool_tokens(&self, pool_name: &str) -> Vec<TokenInfo> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 248 |     pub fn has_tag(&self, token: &str, tag: &str) -> bool {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `FAIL_THRESHOLD` is never used
[INFO] [stderr]   --> src/services/token/models.rs:27:11
[INFO] [stderr]    |
[INFO] [stderr] 27 | pub const FAIL_THRESHOLD: i32 = 5;
[INFO] [stderr]    |           ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `is_available`, `reset`, and `record_fail` are never used
[INFO] [stderr]    --> src/services/token/models.rs:51:12
[INFO] [stderr]     |
[INFO] [stderr]  50 | impl TokenInfo {
[INFO] [stderr]     | -------------- associated items in this implementation
[INFO] [stderr]  51 |     pub fn new(token: String) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr]  69 |     pub fn is_available(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  98 |     pub fn reset(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 105 |     pub fn record_fail(&mut self, status_code: u16, reason: &str) {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `TokenPoolStats` is never constructed
[INFO] [stderr]    --> src/services/token/models.rs:150:12
[INFO] [stderr]     |
[INFO] [stderr] 150 | pub struct TokenPoolStats {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `name` is never read
[INFO] [stderr]  --> src/services/token/pool.rs:7:9
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct TokenPool {
[INFO] [stderr]   |            --------- field in this struct
[INFO] [stderr] 7 |     pub name: String,
[INFO] [stderr]   |         ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `TokenPool` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `remove` and `stats` are never used
[INFO] [stderr]   --> src/services/token/pool.rs:23:12
[INFO] [stderr]    |
[INFO] [stderr] 11 | impl TokenPool {
[INFO] [stderr]    | -------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 23 |     pub fn remove(&mut self, token: &str) -> bool {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 60 |     pub fn stats(&self) -> TokenPoolStats {
[INFO] [stderr]    |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `stop` is never used
[INFO] [stderr]   --> src/services/token/scheduler.rs:39:12
[INFO] [stderr]    |
[INFO] [stderr] 14 | impl TokenRefreshScheduler {
[INFO] [stderr]    | -------------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 39 |     pub fn stop(&mut self) {
[INFO] [stderr]    |            ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `grok2api-rs` (bin "grok2api-rs" test) generated 36 warnings (run `cargo fix --bin "grok2api-rs" -p grok2api-rs --tests` to apply 10 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/grok2api_rs-5b1bac51b220cf2a)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782", kill_on_drop: false }`
[INFO] [stdout] e0d72750f630e8c0c576b1fc9832174a30604e5aae860596128c74b13ef8e782
