[INFO] cloning repository https://github.com/DEYLNN/axumrouter-backend
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DEYLNN/axumrouter-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDEYLNN%2Faxumrouter-backend", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDEYLNN%2Faxumrouter-backend'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6bb33cd3fe36fd83d113a7ff4028d556816ae8fd
[INFO] checking DEYLNN/axumrouter-backend against 6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa for pr-159356
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDEYLNN%2Faxumrouter-backend" "/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/DEYLNN/axumrouter-backend
[INFO] finished tweaking git repo https://github.com/DEYLNN/axumrouter-backend
[INFO] tweaked toml for git repo https://github.com/DEYLNN/axumrouter-backend written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/DEYLNN/axumrouter-backend on toolchain 6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/DEYLNN/axumrouter-backend 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" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:c36f533e8924a726b63f9d01e781fa8c8c28c96d1d595403829afb31452ee0f5" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101
[INFO] running `Command { std: "docker" "start" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101", 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" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101" "/opt/rustwide/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101", 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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101" "/opt/rustwide/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking smallvec v1.15.2
[INFO] [stderr]     Checking bytes v1.12.0
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]     Checking log v0.4.33
[INFO] [stderr]    Compiling syn v2.0.118
[INFO] [stderr]     Checking mio v1.2.1
[INFO] [stderr]     Checking socket2 v0.6.4
[INFO] [stderr]    Compiling serde_json v1.0.150
[INFO] [stderr]    Compiling memchr v2.8.2
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling typenum v1.20.1
[INFO] [stderr]    Compiling openssl-sys v0.9.117
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]     Checking bitflags v2.13.0
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]     Checking ahash v0.8.12
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling ucd-trie v0.1.7
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling openssl v0.10.81
[INFO] [stderr]    Compiling getrandom v0.4.3
[INFO] [stderr]     Checking http v1.4.2
[INFO] [stderr]    Compiling crc-catalog v2.5.0
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling chrono v0.4.45
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling pest v2.8.6
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling const-random-macro v0.1.16
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling tokio v1.52.3
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling uuid v1.23.4
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]     Checking const-random v0.1.18
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling time-core v0.1.9
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling time-macros v0.2.31
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking dlv-list v0.5.2
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]     Checking unicase v2.9.0
[INFO] [stderr]     Checking deranged v0.5.8
[INFO] [stderr]     Checking regex-syntax v0.8.11
[INFO] [stderr]     Checking ordered-multimap v0.7.3
[INFO] [stderr]     Checking num-bigint v0.4.8
[INFO] [stderr]     Checking hashlink v0.8.4
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling pest_meta v2.8.6
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling anyhow v1.0.103
[INFO] [stderr]     Checking zeroize v1.9.0
[INFO] [stderr]     Checking arraydeque v0.5.1
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking http-range-header v0.4.2
[INFO] [stderr]     Checking unicode-segmentation v1.13.3
[INFO] [stderr]     Checking rustls-pki-types v1.14.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking yaml-rust2 v0.8.1
[INFO] [stderr]     Checking nom v7.1.3
[INFO] [stderr]     Checking rust-ini v0.20.0
[INFO] [stderr]     Checking time v0.3.53
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking pem v3.0.6
[INFO] [stderr]     Checking convert_case v0.6.0
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking dotenvy v0.15.7
[INFO] [stderr]    Compiling futures-executor v0.3.32
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling pest_generator v2.8.6
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling displaydoc v0.2.6
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling pest_derive v2.8.6
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking zerofrom v0.1.8
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling yoke v0.8.3
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking simple_asn1 v0.6.4
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]    Compiling icu_provider v2.2.0
[INFO] [stderr]    Compiling either v1.16.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling icu_properties v2.2.0
[INFO] [stderr]    Compiling icu_normalizer v2.2.0
[INFO] [stderr]     Checking toml_datetime v0.6.11
[INFO] [stderr]     Checking serde_spanned v0.6.9
[INFO] [stderr]     Checking ron v0.8.1
[INFO] [stderr]     Checking json5 v0.4.1
[INFO] [stderr]     Checking toml_edit v0.22.27
[INFO] [stderr]     Checking tracing-serde v0.2.0
[INFO] [stderr]     Checking jsonwebtoken v9.3.1
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking toml v0.8.23
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking config v0.14.1
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking sqlx-core v0.8.6
[INFO] [stderr]     Checking h2 v0.4.15
[INFO] [stderr]     Checking tower-http v0.6.11
[INFO] [stderr]    Compiling sqlx-sqlite v0.8.6
[INFO] [stderr]     Checking hyper v1.10.1
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking reqwest v0.12.28
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking axumrouter v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `serde::de::Error`
[INFO] [stdout]   --> src/admin/routes/keys.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     use serde::de::Error;
[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: `api_add_custom_model_for_provider`, `api_list_custom_models`, and `api_remove_custom_model_for_provider`
[INFO] [stdout]   --> src/admin/routes/providers/mod.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub use custom_models::{api_list_custom_models, api_add_custom_model_for_provider, api_remove_custom_model_for_provider};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/providers/key_manager.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::sync::broadcast`
[INFO] [stdout]   --> src/services/usage_tracking.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use tokio::sync::broadcast;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::de::Error`
[INFO] [stdout]   --> src/admin/routes/keys.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     use serde::de::Error;
[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: `api_add_custom_model_for_provider`, `api_list_custom_models`, and `api_remove_custom_model_for_provider`
[INFO] [stdout]   --> src/admin/routes/providers/mod.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub use custom_models::{api_list_custom_models, api_add_custom_model_for_provider, api_remove_custom_model_for_provider};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/providers/key_manager.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::sync::Arc;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::sync::broadcast`
[INFO] [stdout]   --> src/services/usage_tracking.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use tokio::sync::broadcast;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/admin/routes/sources.rs:32:37
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub async fn api_list_sources(State(state): State<Arc<crate::state::AppState>>) -> Json<SourcesResponse> {
[INFO] [stdout]    |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let state_for_track = state.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `endpoint_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let endpoint_for_track = endpoint.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoint_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `provider_id_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let provider_id_for_track = provider_id.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider_id_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `model_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let model_for_track = model.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_model_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gateway_key_id_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let gateway_key_id_for_track = gateway_key_id.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gateway_key_id_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `started`
[INFO] [stdout]   --> src/api/chat/streaming.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let started = start;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_started`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/admin/routes/sources.rs:32:37
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub async fn api_list_sources(State(state): State<Arc<crate::state::AppState>>) -> Json<SourcesResponse> {
[INFO] [stdout]    |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let state_for_track = state.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `endpoint_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let endpoint_for_track = endpoint.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endpoint_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `provider_id_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let provider_id_for_track = provider_id.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider_id_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `model_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let model_for_track = model.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_model_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gateway_key_id_for_track`
[INFO] [stdout]   --> src/api/chat/streaming.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let gateway_key_id_for_track = gateway_key_id.clone();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gateway_key_id_for_track`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `started`
[INFO] [stdout]   --> src/api/chat/streaming.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let started = start;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_started`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `last_attempted_key_id` is assigned to, but never used
[INFO] [stdout]   --> src/providers/apikey/cline/provider.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |         let mut last_attempted_key_id: Option<String> = None;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_last_attempted_key_id` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `last_attempted_key_id` is never read
[INFO] [stdout]   --> src/providers/apikey/cline/provider.rs:85:13
[INFO] [stdout]    |
[INFO] [stdout] 85 |             last_attempted_key_id = Some(key_id.clone());
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `last_attempted_key_id` is never read
[INFO] [stdout]    --> src/providers/apikey/cline/provider.rs:121:57
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let mut last_attempted_key_id: Option<String> = None;
[INFO] [stdout]     |                                                         ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 125 |             last_attempted_key_id = Some(key_id.clone());
[INFO] [stdout]     |             --------------------- `last_attempted_key_id` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]  --> src/providers/apikey/cloudflare/auth.rs:7:30
[INFO] [stdout]   |
[INFO] [stdout] 5 |     #[serde(default, alias = "apiKey")]
[INFO] [stdout]   |                              -------- matches all the relevant values
[INFO] [stdout] 6 |     pub api_key: String,
[INFO] [stdout] 7 |     #[serde(default, alias = "apiKey")]
[INFO] [stdout]   |                              ^^^^^^^^ no value can reach this
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/providers/apikey/cloudflare/auth.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout]  9 |     #[serde(default, alias = "accountId")]
[INFO] [stdout]    |                              ----------- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 12 |     pub accountId: String,
[INFO] [stdout]    |         ^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `last_attempted_key_id` is assigned to, but never used
[INFO] [stdout]   --> src/providers/apikey/cline/provider.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |         let mut last_attempted_key_id: Option<String> = None;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_last_attempted_key_id` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `last_attempted_key_id` is never read
[INFO] [stdout]   --> src/providers/apikey/cline/provider.rs:85:13
[INFO] [stdout]    |
[INFO] [stdout] 85 |             last_attempted_key_id = Some(key_id.clone());
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `last_attempted_key_id` is never read
[INFO] [stdout]    --> src/providers/apikey/cline/provider.rs:121:57
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let mut last_attempted_key_id: Option<String> = None;
[INFO] [stdout]     |                                                         ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 125 |             last_attempted_key_id = Some(key_id.clone());
[INFO] [stdout]     |             --------------------- `last_attempted_key_id` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]  --> src/providers/apikey/cloudflare/auth.rs:7:30
[INFO] [stdout]   |
[INFO] [stdout] 5 |     #[serde(default, alias = "apiKey")]
[INFO] [stdout]   |                              -------- matches all the relevant values
[INFO] [stdout] 6 |     pub api_key: String,
[INFO] [stdout] 7 |     #[serde(default, alias = "apiKey")]
[INFO] [stdout]   |                              ^^^^^^^^ no value can reach this
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/providers/apikey/cloudflare/auth.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout]  9 |     #[serde(default, alias = "accountId")]
[INFO] [stdout]    |                              ----------- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 12 |     pub accountId: String,
[INFO] [stdout]    |         ^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CustomProviderResp` is never constructed
[INFO] [stdout]   --> src/admin/routes/custom_providers.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct CustomProviderResp {
[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 `CustomModelResp` is never constructed
[INFO] [stdout]   --> src/admin/routes/custom_providers.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct CustomModelResp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `gateway_key_id` is never read
[INFO] [stdout]   --> src/admin/routes/usage.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct UsageKeysQuery {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 24 |     pub gateway_key_id: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `UsageKeysQuery` 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 `ProviderConfig` is never constructed
[INFO] [stdout]   --> src/config/models.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct ProviderConfig {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `provider_id` is never read
[INFO] [stdout]    --> src/db/mod.rs:416:9
[INFO] [stdout]     |
[INFO] [stdout] 415 | pub struct CustomProviderModelRow {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 416 |     pub provider_id: String,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `CustomProviderModelRow` 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 `api_key` and `anthropic_version` are never used
[INFO] [stdout]   --> src/engine/anthropic_compat/auth.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl ApiKeyAuth {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub fn api_key(&self) -> &str {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn anthropic_version(&self) -> &'static str {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_auth` is never used
[INFO] [stdout]   --> src/engine/anthropic_compat/client.rs:94:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Client {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub async fn validate_auth(&self, auth: &ApiKeyAuth) -> Result<(), GatewayError> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `max_tokens`, `supports_vision`, and `supports_tools` are never read
[INFO] [stdout]   --> src/engine/anthropic_compat/config.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct ModelDef {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 20 |     pub id: String,
[INFO] [stdout] 21 |     pub name: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 22 |     pub max_tokens: Option<u32>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 23 |     pub context_length: u32,
[INFO] [stdout] 24 |     pub supports_vision: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 25 |     pub supports_tools: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModelDef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/engine/anthropic_compat/config.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | impl ModelDef {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 29 |     pub fn new(id: &str, name: &str, context_length: u32, supports_vision: bool, supports_tools: bool) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `type_`, `role`, and `stop_sequence` are never read
[INFO] [stdout]   --> src/engine/anthropic_compat/types.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub struct AnthropicResponse {
[INFO] [stdout]    |            ----------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 85 |     pub type_: String,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 86 |     pub role: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub stop_sequence: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AnthropicResponse` 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: fields `thinking` and `signature` are never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:105:16
[INFO] [stdout]     |
[INFO] [stdout] 105 |     Thinking { thinking: String, signature: Option<String> },
[INFO] [stdout]     |     --------   ^^^^^^^^          ^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResponseContentBlock` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub struct MessageStartEvent {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] 122 |     #[serde(rename = "type")]
[INFO] [stdout] 123 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageStartEvent` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:130:9
[INFO] [stdout]     |
[INFO] [stdout] 128 | pub struct ContentBlockStartEvent {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 129 |     #[serde(rename = "type")]
[INFO] [stdout] 130 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentBlockStartEvent` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:138:9
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub struct ContentBlockDeltaEvent {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 137 |     #[serde(rename = "type")]
[INFO] [stdout] 138 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentBlockDeltaEvent` 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 `thinking` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:151:21
[INFO] [stdout]     |
[INFO] [stdout] 151 |     ThinkingDelta { thinking: String },
[INFO] [stdout]     |     -------------   ^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     field in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentDelta` 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 `signature` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:153:22
[INFO] [stdout]     |
[INFO] [stdout] 153 |     SignatureDelta { signature: String },
[INFO] [stdout]     |     --------------   ^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     field in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentDelta` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:159:9
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub struct ContentBlockStopEvent {
[INFO] [stdout]     |            --------------------- field in this struct
[INFO] [stdout] 158 |     #[serde(rename = "type")]
[INFO] [stdout] 159 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentBlockStopEvent` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 164 | pub struct MessageDeltaEvent {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] 165 |     #[serde(rename = "type")]
[INFO] [stdout] 166 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageDeltaEvent` 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 `stop_sequence` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:177:9
[INFO] [stdout]     |
[INFO] [stdout] 173 | pub struct MessageDelta {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 177 |     pub stop_sequence: Option<String>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageDelta` 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: struct `MessageStopEvent` is never constructed
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:181:12
[INFO] [stdout]     |
[INFO] [stdout] 181 | pub struct MessageStopEvent {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `bearer_token` and `to_header` are never used
[INFO] [stdout]   --> src/engine/openai_compat/auth.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ApiKeyAuth {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub fn bearer_token(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn to_header(&self, auth_header: crate::providers::spec::AuthHeader) -> (String, String) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_auth` is never used
[INFO] [stdout]    --> src/engine/openai_compat/client.rs:131:18
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl Client {
[INFO] [stdout]     | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub async fn validate_auth(&self, auth: &ApiKeyAuth) -> Result<(), GatewayError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `max_tokens`, `supports_vision`, and `supports_tools` are never read
[INFO] [stdout]   --> src/engine/openai_compat/config.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct ModelDef {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 26 |     pub id: String,
[INFO] [stdout] 27 |     pub name: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 28 |     pub max_tokens: Option<u32>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 29 |     pub context_length: u32,
[INFO] [stdout] 30 |     pub supports_vision: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 31 |     pub supports_tools: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModelDef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/engine/openai_compat/config.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl ModelDef {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 35 |     pub fn new(id: &str, name: &str, context_length: u32, supports_vision: bool, supports_tools: bool) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `parse_stream_chunk`, `to_gateway_chunk`, and `token_economy` are never used
[INFO] [stdout]    --> src/engine/openai_compat/mapper.rs:112:12
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl Mapper {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn parse_stream_chunk(&self, line: &str) -> Result<StreamChunk, GatewayError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn to_gateway_chunk(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub fn token_economy(&self, _model_id: &str) -> (u32, u32) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StreamChunk` is never constructed
[INFO] [stdout]   --> src/engine/openai_compat/types.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct StreamChunk {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StreamChoice` is never constructed
[INFO] [stdout]   --> src/engine/openai_compat/types.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub struct StreamChoice {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StreamDelta` is never constructed
[INFO] [stdout]   --> src/engine/openai_compat/types.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub struct StreamDelta {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `MissingField`, `InvalidJsonBody`, `MissingAuthHeader`, `InvalidApiKey`, `ProviderDisabled`, and `AllKeysRateLimited` are never constructed
[INFO] [stdout]   --> src/error.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub enum GatewayError {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 20 |     MissingField(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     InvalidJsonBody(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     MissingAuthHeader,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     InvalidApiKey,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     ProviderDisabled(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |     AllKeysRateLimited(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GatewayError` 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 `is_auth_error` and `is_rate_limit_error` are never used
[INFO] [stdout]    --> src/error.rs:108:12
[INFO] [stdout]     |
[INFO] [stdout]  68 | impl GatewayError {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub fn is_auth_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn is_rate_limit_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cursor` and `provider_id` are never read
[INFO] [stdout]   --> src/providers/key_manager.rs:88:5
[INFO] [stdout]    |
[INFO] [stdout] 84 | pub struct KeyManager {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 88 |     cursor: AtomicUsize,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 94 |     provider_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_strategy`, `with_config`, `set_active`, and `key_ids` are never used
[INFO] [stdout]    --> src/providers/key_manager.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout]  99 | impl KeyManager {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 100 |     pub fn new(keys: Vec<ApiKey>, provider_id: &str) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn with_strategy(mut self, strategy: Box<dyn KeyStrategy>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 134 |     pub fn with_config(mut self, config: KeyLockConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 376 |     pub fn set_active(&self, key_id: &str, active: bool) -> Result<(), GatewayError> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 394 |     pub fn key_ids(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `last_attempted_key_id` is never read
[INFO] [stdout]   --> src/providers/result.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct ChatStreamResult {
[INFO] [stdout]    |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub last_attempted_key_id: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/providers/spec.rs:5:9
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub struct ProviderSpec {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout]  5 |     pub id: &'static str,
[INFO] [stdout]    |         ^^
[INFO] [stdout]  6 |     pub name: &'static str,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]  7 |     pub full_name: &'static str,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]  8 |     pub category: &'static str,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]  9 |     pub base_url: &'static str,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 10 |     pub validate_url: &'static str,
[INFO] [stdout] 11 |     pub compatible_api: &'static str,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     pub supports_streaming: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     pub supports_tools: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     pub supports_vision: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     pub color: &'static str,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 16 |     pub icon_name: &'static str,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 17 |     pub usage_url: Option<&'static str>,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 18 |     pub quirks: ProviderQuirks,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProviderSpec` 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 `supports_stream_usage` is never read
[INFO] [stdout]   --> src/providers/spec.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct ProviderQuirks {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub supports_stream_usage: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProviderQuirks` 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 `health_check` and `authenticate` are never used
[INFO] [stdout]   --> src/providers/traits.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub trait Provider: Send + Sync {
[INFO] [stdout]    |           -------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 32 |     async fn health_check(&self) -> Result<bool, GatewayError>;
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     async fn authenticate(&self) -> Result<(), GatewayError>;
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `first_chunk_timeout` and `stall_timeout` are never read
[INFO] [stdout]   --> src/providers/apikey/cline/client.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ClClient {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 12 |     http: Client,
[INFO] [stdout] 13 |     first_chunk_timeout: std::time::Duration,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     stall_timeout: std::time::Duration,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `max_tokens`, `supports_vision`, and `supports_tools` are never read
[INFO] [stdout]   --> src/providers/apikey/cloudflare/constants.rs:32:49
[INFO] [stdout]    |
[INFO] [stdout] 32 | ...ct ModelDef { pub id: &'static str, pub name: &'static str, pub max_tokens: Option<u32>, pub context_length: u32, pub supports_vision: bool, pub supports_tools: b...
[INFO] [stdout]    |       -------- fields in this struct       ^^^^                    ^^^^^^^^^^                                            ^^^^^^^^^^^^^^^            ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModelDef` 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 `email` is never read
[INFO] [stdout]  --> src/providers/oauth/kilocode/auth.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct KcOAuthCredential {
[INFO] [stdout]   |            ----------------- field in this struct
[INFO] [stdout] 4 |     pub access_token: String,
[INFO] [stdout] 5 |     pub email: Option<String>,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `KcOAuthCredential` 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 `max_tokens` is never read
[INFO] [stdout]  --> src/providers/oauth/kilocode/constants.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct ModelDef {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 5 |     pub max_tokens: Option<u32>,
[INFO] [stdout]   |         ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `ModelDef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `box_clone` is never used
[INFO] [stdout]   --> src/services/key_strategy.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub trait KeyStrategy: Send + Sync {
[INFO] [stdout]    |           ----------- method in this trait
[INFO] [stdout] 20 |     fn select<'a>(&self, ctx: &StrategyCtx<'a>) -> Option<&'a KeyState>;
[INFO] [stdout] 21 |     fn box_clone(&self) -> Box<dyn KeyStrategy>;
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_valid_ipv4` is never used
[INFO] [stdout]   --> src/utils/mod.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub fn is_valid_ipv4(s: &str) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `apiToken` should have a snake case name
[INFO] [stdout]  --> src/providers/apikey/cloudflare/auth.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub apiToken: String,
[INFO] [stdout]   |         ^^^^^^^^ help: convert the identifier to snake case: `api_token`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `accountId` should have a snake case name
[INFO] [stdout]   --> src/providers/apikey/cloudflare/auth.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub accountId: String,
[INFO] [stdout]    |         ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CustomProviderResp` is never constructed
[INFO] [stdout]   --> src/admin/routes/custom_providers.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub struct CustomProviderResp {
[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 `CustomModelResp` is never constructed
[INFO] [stdout]   --> src/admin/routes/custom_providers.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 | pub struct CustomModelResp {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `gateway_key_id` is never read
[INFO] [stdout]   --> src/admin/routes/usage.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct UsageKeysQuery {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 24 |     pub gateway_key_id: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `UsageKeysQuery` 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 `ProviderConfig` is never constructed
[INFO] [stdout]   --> src/config/models.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct ProviderConfig {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `provider_id` is never read
[INFO] [stdout]    --> src/db/mod.rs:416:9
[INFO] [stdout]     |
[INFO] [stdout] 415 | pub struct CustomProviderModelRow {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 416 |     pub provider_id: String,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `CustomProviderModelRow` 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 `api_key` and `anthropic_version` are never used
[INFO] [stdout]   --> src/engine/anthropic_compat/auth.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl ApiKeyAuth {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19 |     pub fn api_key(&self) -> &str {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn anthropic_version(&self) -> &'static str {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_auth` is never used
[INFO] [stdout]   --> src/engine/anthropic_compat/client.rs:94:18
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Client {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub async fn validate_auth(&self, auth: &ApiKeyAuth) -> Result<(), GatewayError> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `max_tokens`, `supports_vision`, and `supports_tools` are never read
[INFO] [stdout]   --> src/engine/anthropic_compat/config.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct ModelDef {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 20 |     pub id: String,
[INFO] [stdout] 21 |     pub name: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 22 |     pub max_tokens: Option<u32>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 23 |     pub context_length: u32,
[INFO] [stdout] 24 |     pub supports_vision: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 25 |     pub supports_tools: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModelDef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/engine/anthropic_compat/config.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | impl ModelDef {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 29 |     pub fn new(id: &str, name: &str, context_length: u32, supports_vision: bool, supports_tools: bool) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `type_`, `role`, and `stop_sequence` are never read
[INFO] [stdout]   --> src/engine/anthropic_compat/types.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub struct AnthropicResponse {
[INFO] [stdout]    |            ----------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 85 |     pub type_: String,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 86 |     pub role: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub stop_sequence: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AnthropicResponse` 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: fields `thinking` and `signature` are never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:105:16
[INFO] [stdout]     |
[INFO] [stdout] 105 |     Thinking { thinking: String, signature: Option<String> },
[INFO] [stdout]     |     --------   ^^^^^^^^          ^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResponseContentBlock` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub struct MessageStartEvent {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] 122 |     #[serde(rename = "type")]
[INFO] [stdout] 123 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageStartEvent` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:130:9
[INFO] [stdout]     |
[INFO] [stdout] 128 | pub struct ContentBlockStartEvent {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 129 |     #[serde(rename = "type")]
[INFO] [stdout] 130 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentBlockStartEvent` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:138:9
[INFO] [stdout]     |
[INFO] [stdout] 136 | pub struct ContentBlockDeltaEvent {
[INFO] [stdout]     |            ---------------------- field in this struct
[INFO] [stdout] 137 |     #[serde(rename = "type")]
[INFO] [stdout] 138 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentBlockDeltaEvent` 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 `thinking` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:151:21
[INFO] [stdout]     |
[INFO] [stdout] 151 |     ThinkingDelta { thinking: String },
[INFO] [stdout]     |     -------------   ^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     field in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentDelta` 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 `signature` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:153:22
[INFO] [stdout]     |
[INFO] [stdout] 153 |     SignatureDelta { signature: String },
[INFO] [stdout]     |     --------------   ^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     field in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentDelta` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:159:9
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub struct ContentBlockStopEvent {
[INFO] [stdout]     |            --------------------- field in this struct
[INFO] [stdout] 158 |     #[serde(rename = "type")]
[INFO] [stdout] 159 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ContentBlockStopEvent` 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 `type_` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:166:9
[INFO] [stdout]     |
[INFO] [stdout] 164 | pub struct MessageDeltaEvent {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] 165 |     #[serde(rename = "type")]
[INFO] [stdout] 166 |     pub type_: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageDeltaEvent` 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 `stop_sequence` is never read
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:177:9
[INFO] [stdout]     |
[INFO] [stdout] 173 | pub struct MessageDelta {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 177 |     pub stop_sequence: Option<String>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MessageDelta` 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: struct `MessageStopEvent` is never constructed
[INFO] [stdout]    --> src/engine/anthropic_compat/types.rs:181:12
[INFO] [stdout]     |
[INFO] [stdout] 181 | pub struct MessageStopEvent {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `bearer_token` and `to_header` are never used
[INFO] [stdout]   --> src/engine/openai_compat/auth.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ApiKeyAuth {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub fn bearer_token(&self) -> String {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn to_header(&self, auth_header: crate::providers::spec::AuthHeader) -> (String, String) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_auth` is never used
[INFO] [stdout]    --> src/engine/openai_compat/client.rs:131:18
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl Client {
[INFO] [stdout]     | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub async fn validate_auth(&self, auth: &ApiKeyAuth) -> Result<(), GatewayError> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `max_tokens`, `supports_vision`, and `supports_tools` are never read
[INFO] [stdout]   --> src/engine/openai_compat/config.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct ModelDef {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 26 |     pub id: String,
[INFO] [stdout] 27 |     pub name: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 28 |     pub max_tokens: Option<u32>,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 29 |     pub context_length: u32,
[INFO] [stdout] 30 |     pub supports_vision: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 31 |     pub supports_tools: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModelDef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/engine/openai_compat/config.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl ModelDef {
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] 35 |     pub fn new(id: &str, name: &str, context_length: u32, supports_vision: bool, supports_tools: bool) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `parse_stream_chunk`, `to_gateway_chunk`, and `token_economy` are never used
[INFO] [stdout]    --> src/engine/openai_compat/mapper.rs:112:12
[INFO] [stdout]     |
[INFO] [stdout]  16 | impl Mapper {
[INFO] [stdout]     | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn parse_stream_chunk(&self, line: &str) -> Result<StreamChunk, GatewayError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn to_gateway_chunk(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     pub fn token_economy(&self, _model_id: &str) -> (u32, u32) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StreamChunk` is never constructed
[INFO] [stdout]   --> src/engine/openai_compat/types.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub struct StreamChunk {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StreamChoice` is never constructed
[INFO] [stdout]   --> src/engine/openai_compat/types.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub struct StreamChoice {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StreamDelta` is never constructed
[INFO] [stdout]   --> src/engine/openai_compat/types.rs:77:12
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub struct StreamDelta {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `MissingField`, `InvalidJsonBody`, `InvalidApiKey`, `ProviderDisabled`, and `AllKeysRateLimited` are never constructed
[INFO] [stdout]   --> src/error.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub enum GatewayError {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 20 |     MissingField(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |     InvalidJsonBody(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     InvalidApiKey,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     ProviderDisabled(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 |     AllKeysRateLimited(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GatewayError` 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 `is_auth_error` and `is_rate_limit_error` are never used
[INFO] [stdout]    --> src/error.rs:108:12
[INFO] [stdout]     |
[INFO] [stdout]  68 | impl GatewayError {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 108 |     pub fn is_auth_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 112 |     pub fn is_rate_limit_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cursor` and `provider_id` are never read
[INFO] [stdout]   --> src/providers/key_manager.rs:88:5
[INFO] [stdout]    |
[INFO] [stdout] 84 | pub struct KeyManager {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 88 |     cursor: AtomicUsize,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 94 |     provider_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `with_strategy`, `with_config`, `set_active`, and `key_ids` are never used
[INFO] [stdout]    --> src/providers/key_manager.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout]  99 | impl KeyManager {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] 100 |     pub fn new(keys: Vec<ApiKey>, provider_id: &str) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn with_strategy(mut self, strategy: Box<dyn KeyStrategy>) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 134 |     pub fn with_config(mut self, config: KeyLockConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 376 |     pub fn set_active(&self, key_id: &str, active: bool) -> Result<(), GatewayError> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 394 |     pub fn key_ids(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `last_attempted_key_id` is never read
[INFO] [stdout]   --> src/providers/result.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct ChatStreamResult {
[INFO] [stdout]    |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub last_attempted_key_id: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/providers/spec.rs:5:9
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub struct ProviderSpec {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout]  5 |     pub id: &'static str,
[INFO] [stdout]    |         ^^
[INFO] [stdout]  6 |     pub name: &'static str,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]  7 |     pub full_name: &'static str,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]  8 |     pub category: &'static str,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout]  9 |     pub base_url: &'static str,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 10 |     pub validate_url: &'static str,
[INFO] [stdout] 11 |     pub compatible_api: &'static str,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     pub supports_streaming: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |     pub supports_tools: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     pub supports_vision: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     pub color: &'static str,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 16 |     pub icon_name: &'static str,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 17 |     pub usage_url: Option<&'static str>,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 18 |     pub quirks: ProviderQuirks,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProviderSpec` 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 `supports_stream_usage` is never read
[INFO] [stdout]   --> src/providers/spec.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct ProviderQuirks {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub supports_stream_usage: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ProviderQuirks` 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 `health_check` and `authenticate` are never used
[INFO] [stdout]   --> src/providers/traits.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub trait Provider: Send + Sync {
[INFO] [stdout]    |           -------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 32 |     async fn health_check(&self) -> Result<bool, GatewayError>;
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     async fn authenticate(&self) -> Result<(), GatewayError>;
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `first_chunk_timeout` and `stall_timeout` are never read
[INFO] [stdout]   --> src/providers/apikey/cline/client.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ClClient {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 12 |     http: Client,
[INFO] [stdout] 13 |     first_chunk_timeout: std::time::Duration,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     stall_timeout: std::time::Duration,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name`, `max_tokens`, `supports_vision`, and `supports_tools` are never read
[INFO] [stdout]   --> src/providers/apikey/cloudflare/constants.rs:32:49
[INFO] [stdout]    |
[INFO] [stdout] 32 | ...ct ModelDef { pub id: &'static str, pub name: &'static str, pub max_tokens: Option<u32>, pub context_length: u32, pub supports_vision: bool, pub supports_tools: b...
[INFO] [stdout]    |       -------- fields in this struct       ^^^^                    ^^^^^^^^^^                                            ^^^^^^^^^^^^^^^            ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ModelDef` 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 `email` is never read
[INFO] [stdout]  --> src/providers/oauth/kilocode/auth.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct KcOAuthCredential {
[INFO] [stdout]   |            ----------------- field in this struct
[INFO] [stdout] 4 |     pub access_token: String,
[INFO] [stdout] 5 |     pub email: Option<String>,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `KcOAuthCredential` 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 `max_tokens` is never read
[INFO] [stdout]  --> src/providers/oauth/kilocode/constants.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct ModelDef {
[INFO] [stdout]   |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 5 |     pub max_tokens: Option<u32>,
[INFO] [stdout]   |         ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `ModelDef` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `box_clone` is never used
[INFO] [stdout]   --> src/services/key_strategy.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub trait KeyStrategy: Send + Sync {
[INFO] [stdout]    |           ----------- method in this trait
[INFO] [stdout] 20 |     fn select<'a>(&self, ctx: &StrategyCtx<'a>) -> Option<&'a KeyState>;
[INFO] [stdout] 21 |     fn box_clone(&self) -> Box<dyn KeyStrategy>;
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_valid_ipv4` is never used
[INFO] [stdout]   --> src/utils/mod.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub fn is_valid_ipv4(s: &str) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `apiToken` should have a snake case name
[INFO] [stdout]  --> src/providers/apikey/cloudflare/auth.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub apiToken: String,
[INFO] [stdout]   |         ^^^^^^^^ help: convert the identifier to snake case: `api_token`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `accountId` should have a snake case name
[INFO] [stdout]   --> src/providers/apikey/cloudflare/auth.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     pub accountId: String,
[INFO] [stdout]    |         ^^^^^^^^^ help: convert the identifier to snake case: `account_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s
[INFO] running `Command { std: "docker" "inspect" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101", kill_on_drop: false }`
[INFO] [stdout] 3c434ca08bda66f2ce784c08d54e413d8734d05f6385648a564454cc43166101
