[INFO] cloning repository https://github.com/ayan-goel/kalshi-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ayan-goel/kalshi-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayan-goel%2Fkalshi-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayan-goel%2Fkalshi-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f744cda04ac5e67e99f0de3a0ceb7b731fc0114 [INFO] checking ayan-goel/kalshi-bot against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayan-goel%2Fkalshi-bot" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ayan-goel/kalshi-bot [INFO] finished tweaking git repo https://github.com/ayan-goel/kalshi-bot [INFO] tweaked toml for git repo https://github.com/ayan-goel/kalshi-bot written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ayan-goel/kalshi-bot on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ayan-goel/kalshi-bot 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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 684a4c72044b572c0dd87ddc6cecbf823eed0c729046f48fdd5b89f58de411d0 [INFO] running `Command { std: "docker" "start" "-a" "684a4c72044b572c0dd87ddc6cecbf823eed0c729046f48fdd5b89f58de411d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "684a4c72044b572c0dd87ddc6cecbf823eed0c729046f48fdd5b89f58de411d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "684a4c72044b572c0dd87ddc6cecbf823eed0c729046f48fdd5b89f58de411d0", kill_on_drop: false }` [INFO] [stdout] 684a4c72044b572c0dd87ddc6cecbf823eed0c729046f48fdd5b89f58de411d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e981e513b994796b023da43f2d0bc10c8ffe57622dd8b0a53f7ff744bd1d6eb [INFO] running `Command { std: "docker" "start" "-a" "5e981e513b994796b023da43f2d0bc10c8ffe57622dd8b0a53f7ff744bd1d6eb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking itoa v1.0.18 [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking futures-core v0.3.32 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cc v1.2.58 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking mio v1.2.0 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling rust_decimal v1.41.0 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling tinyvec v1.11.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking openssl-probe v0.2.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking base64ct v1.8.3 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling uuid v1.23.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking ryu v1.0.23 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking ipnet v2.12.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking iri-string v0.7.12 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.1 [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 thiserror-impl v1.0.69 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking tungstenite v0.28.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking rsa v0.9.10 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-tungstenite v0.28.0 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking kalshi-bot v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `no_contracts` and `avg_no_price` are never read [INFO] [stdout] --> tests/pnl_tests.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct TestPosition { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 15 | yes_contracts: Decimal, [INFO] [stdout] 16 | no_contracts: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 17 | avg_yes_price: Option, [INFO] [stdout] 18 | avg_no_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestPosition` 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: method `is_running` is never used [INFO] [stdout] --> src/bot_state.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl BotStateMachine { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key_env` and `production` are never read [INFO] [stdout] --> src/config.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct ExchangeConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub api_key_env: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub production: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeConfig` 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 `rest_base_url`, `ws_url`, `api_key_env`, and `private_key_env` are never read [INFO] [stdout] --> src/config.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ExchangeEnvConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 35 | pub rest_base_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub ws_url: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub api_key_env: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 38 | pub private_key_env: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeEnvConfig` 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`, `private_key_path`, `production_api_key`, `production_private_key_base64`, and `exchange_urls_for_env` are never used [INFO] [stdout] --> src/config.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn api_key(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn private_key_path(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn production_api_key(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn production_private_key_base64(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn exchange_urls_for_env(&self, env: &str) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_order_status` is never used [INFO] [stdout] --> src/db/mod.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn update_order_status(pool: &PgPool, order_id: &str, status: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_config` is never used [INFO] [stdout] --> src/db/mod.rs:219:14 [INFO] [stdout] | [INFO] [stdout] 219 | pub async fn get_all_config(pool: &PgPool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderRow` is never constructed [INFO] [stdout] --> src/db/mod.rs:513:12 [INFO] [stdout] | [INFO] [stdout] 513 | pub struct OrderRow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_recent_orders` is never used [INFO] [stdout] --> src/db/mod.rs:524:14 [INFO] [stdout] | [INFO] [stdout] 524 | pub async fn get_recent_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `any_active` and `clear` are never used [INFO] [stdout] --> src/event_detector/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl EventDetector { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn any_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `api_key` is never used [INFO] [stdout] --> src/exchange/auth.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl KalshiAuth { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn api_key(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/exchange/models.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct MarketResponse { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub series_ticker: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | #[serde(default)] [INFO] [stdout] 27 | pub title: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub yes_sub_title: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | #[serde(default)] [INFO] [stdout] 37 | pub no_sub_title: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | #[serde(default)] [INFO] [stdout] 39 | pub open_time: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub expected_expiration_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub no_bid_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 54 | #[serde(default)] [INFO] [stdout] 55 | pub no_ask_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 56 | #[serde(default)] [INFO] [stdout] 57 | pub yes_bid_size_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 58 | #[serde(default)] [INFO] [stdout] 59 | pub yes_ask_size_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | #[serde(default)] [INFO] [stdout] 61 | pub last_price_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | #[serde(default)] [INFO] [stdout] 63 | pub previous_yes_bid_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 64 | #[serde(default)] [INFO] [stdout] 65 | pub previous_yes_ask_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 66 | #[serde(default)] [INFO] [stdout] 67 | pub previous_price_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | #[serde(default)] [INFO] [stdout] 69 | pub volume_fp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub notional_value_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | #[serde(default)] [INFO] [stdout] 77 | pub liquidity_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[serde(default)] [INFO] [stdout] 79 | pub price_level_structure: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fractional_trading_enabled: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | #[serde(default)] [INFO] [stdout] 85 | pub can_close_early: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fee_waiver_expiration_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | #[serde(default)] [INFO] [stdout] 91 | pub result: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 92 | #[serde(default)] [INFO] [stdout] 93 | pub settlement_timer_seconds: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketResponse` 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 `order_type`, `no_price`, `no_price_dollars`, `initial_count_fp`, and `created_time` are never read [INFO] [stdout] --> src/exchange/models.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct OrderResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 169 | pub order_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub no_price: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub no_price_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub initial_count_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | #[serde(default)] [INFO] [stdout] 189 | pub created_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResponse` 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 `cursor` is never read [INFO] [stdout] --> src/exchange/models.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct OrdersListResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 194 | pub orders: Vec, [INFO] [stdout] 195 | pub cursor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrdersListResponse` 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 `FillResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct FillResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FillsListResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct FillsListResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market_exposure_dollars`, `total_traded_dollars`, `market_exposure`, and `total_traded` are never read [INFO] [stdout] --> src/exchange/models.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 233 | pub struct PositionResponse { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 238 | pub market_exposure_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub total_traded_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub market_exposure: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub total_traded: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionResponse` 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 `cursor` is never read [INFO] [stdout] --> src/exchange/models.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct PositionsListResponse { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 256 | pub market_positions: Vec, [INFO] [stdout] 257 | pub cursor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionsListResponse` 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 `order_id`, `reduced_by_fp`, and `error` are never read [INFO] [stdout] --> src/exchange/models.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 271 | pub struct BatchCancelIndividualResponse { [INFO] [stdout] | ----------------------------- fields in this struct [INFO] [stdout] 272 | pub order_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub reduced_by_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 277 | #[serde(default)] [INFO] [stdout] 278 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BatchCancelIndividualResponse` 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 `reduced_by_fp` is never read [INFO] [stdout] --> src/exchange/models.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 287 | pub struct CancelOrderResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 290 | pub reduced_by_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelOrderResponse` 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 `EventResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct EventResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventsListResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:309:12 [INFO] [stdout] | [INFO] [stdout] 309 | pub struct EventsListResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/exchange/models.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct WsMessage { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 326 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsMessage` 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 `auth`, `base_url`, `get_fills`, `get_markets`, `get_markets_for_event`, and `get_events` are never used [INFO] [stdout] --> src/exchange/rest.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl KalshiRestClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn auth(&self) -> &KalshiAuth { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn base_url(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub async fn get_fills(&self, limit: Option) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn get_markets( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub async fn get_markets_for_event(&self, event_ticker: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub async fn get_events(&self, with_markets: bool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maker_fee_total` is never used [INFO] [stdout] --> src/market_scanner/mod.rs:341:8 [INFO] [stdout] | [INFO] [stdout] 341 | pub fn maker_fee_total(price: Decimal, count: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price` and `ts` are never read [INFO] [stdout] --> src/state/mod.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct RecentTrade { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 142 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 143 | pub taker_side: Side, [INFO] [stdout] 144 | pub ts: chrono::DateTime, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecentTrade` 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 `session_start_equity`, `disconnected_at`, `compute_realized_pnl`, `db_pool`, `event_groups`, and `sibling_tickers` are never used [INFO] [stdout] --> src/state/mod.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl StateEngine { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn session_start_equity(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn disconnected_at(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn compute_realized_pnl(&self) -> rust_decimal::Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn db_pool(&self) -> &PgPool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | pub fn event_groups(&self) -> &HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 393 | pub fn sibling_tickers(&self, ticker: &MarketTicker) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TimeInForce` is never used [INFO] [stdout] --> src/types.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum TimeInForce { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reconnecting` is never constructed [INFO] [stdout] --> src/types.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum ConnectivityState { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | Reconnecting, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectivityState` 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 `count` is never read [INFO] [stdout] --> src/types.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 127 | Trade { [INFO] [stdout] | ----- field in this variant [INFO] [stdout] ... [INFO] [stdout] 130 | count: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeEvent` 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 `client_order_id` is never read [INFO] [stdout] --> src/types.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 168 | CreateOrder { [INFO] [stdout] | ----------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 174 | client_order_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DesiredAction` 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 `CancelOrder` is never constructed [INFO] [stdout] --> src/types.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum DesiredAction { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 176 | CancelOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DesiredAction` 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 `market_ticker` is never read [INFO] [stdout] --> src/types.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct FairValue { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 194 | pub market_ticker: MarketTicker, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FairValue` 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 `KillSwitch` is never constructed [INFO] [stdout] --> src/types.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 201 | pub enum RiskDecision { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 204 | KillSwitch { reason: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskDecision` 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 `is_running` is never used [INFO] [stdout] --> src/bot_state.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl BotStateMachine { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key_env` and `production` are never read [INFO] [stdout] --> src/config.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct ExchangeConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | pub api_key_env: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub production: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeConfig` 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 `rest_base_url`, `ws_url`, `api_key_env`, and `private_key_env` are never read [INFO] [stdout] --> src/config.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ExchangeEnvConfig { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 35 | pub rest_base_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub ws_url: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | pub api_key_env: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 38 | pub private_key_env: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeEnvConfig` 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`, `private_key_path`, `production_api_key`, `production_private_key_base64`, and `exchange_urls_for_env` are never used [INFO] [stdout] --> src/config.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn api_key(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn private_key_path(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn production_api_key(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn production_private_key_base64(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn exchange_urls_for_env(&self, env: &str) -> (String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_order_status` is never used [INFO] [stdout] --> src/db/mod.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn update_order_status(pool: &PgPool, order_id: &str, status: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_config` is never used [INFO] [stdout] --> src/db/mod.rs:219:14 [INFO] [stdout] | [INFO] [stdout] 219 | pub async fn get_all_config(pool: &PgPool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderRow` is never constructed [INFO] [stdout] --> src/db/mod.rs:513:12 [INFO] [stdout] | [INFO] [stdout] 513 | pub struct OrderRow { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_recent_orders` is never used [INFO] [stdout] --> src/db/mod.rs:524:14 [INFO] [stdout] | [INFO] [stdout] 524 | pub async fn get_recent_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `any_active` and `clear` are never used [INFO] [stdout] --> src/event_detector/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl EventDetector { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn any_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `api_key` is never used [INFO] [stdout] --> src/exchange/auth.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl KalshiAuth { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn api_key(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/exchange/models.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct MarketResponse { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub series_ticker: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | #[serde(default)] [INFO] [stdout] 27 | pub title: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub yes_sub_title: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | #[serde(default)] [INFO] [stdout] 37 | pub no_sub_title: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | #[serde(default)] [INFO] [stdout] 39 | pub open_time: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub expected_expiration_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub no_bid_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 54 | #[serde(default)] [INFO] [stdout] 55 | pub no_ask_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 56 | #[serde(default)] [INFO] [stdout] 57 | pub yes_bid_size_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 58 | #[serde(default)] [INFO] [stdout] 59 | pub yes_ask_size_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 60 | #[serde(default)] [INFO] [stdout] 61 | pub last_price_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 62 | #[serde(default)] [INFO] [stdout] 63 | pub previous_yes_bid_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 64 | #[serde(default)] [INFO] [stdout] 65 | pub previous_yes_ask_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 66 | #[serde(default)] [INFO] [stdout] 67 | pub previous_price_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | #[serde(default)] [INFO] [stdout] 69 | pub volume_fp: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub notional_value_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | #[serde(default)] [INFO] [stdout] 77 | pub liquidity_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[serde(default)] [INFO] [stdout] 79 | pub price_level_structure: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fractional_trading_enabled: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 84 | #[serde(default)] [INFO] [stdout] 85 | pub can_close_early: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fee_waiver_expiration_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | #[serde(default)] [INFO] [stdout] 91 | pub result: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 92 | #[serde(default)] [INFO] [stdout] 93 | pub settlement_timer_seconds: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketResponse` 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 `order_type`, `no_price`, `no_price_dollars`, `initial_count_fp`, and `created_time` are never read [INFO] [stdout] --> src/exchange/models.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct OrderResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 169 | pub order_type: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub no_price: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub no_price_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub initial_count_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | #[serde(default)] [INFO] [stdout] 189 | pub created_time: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResponse` 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 `cursor` is never read [INFO] [stdout] --> src/exchange/models.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct OrdersListResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 194 | pub orders: Vec, [INFO] [stdout] 195 | pub cursor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrdersListResponse` 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 `FillResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct FillResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FillsListResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct FillsListResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `market_exposure_dollars`, `total_traded_dollars`, `market_exposure`, and `total_traded` are never read [INFO] [stdout] --> src/exchange/models.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 233 | pub struct PositionResponse { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 238 | pub market_exposure_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub total_traded_dollars: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub market_exposure: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub total_traded: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionResponse` 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 `cursor` is never read [INFO] [stdout] --> src/exchange/models.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct PositionsListResponse { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 256 | pub market_positions: Vec, [INFO] [stdout] 257 | pub cursor: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionsListResponse` 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 `order_id`, `reduced_by_fp`, and `error` are never read [INFO] [stdout] --> src/exchange/models.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 271 | pub struct BatchCancelIndividualResponse { [INFO] [stdout] | ----------------------------- fields in this struct [INFO] [stdout] 272 | pub order_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub reduced_by_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 277 | #[serde(default)] [INFO] [stdout] 278 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BatchCancelIndividualResponse` 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 `reduced_by_fp` is never read [INFO] [stdout] --> src/exchange/models.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 287 | pub struct CancelOrderResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 290 | pub reduced_by_fp: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelOrderResponse` 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 `EventResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct EventResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventsListResponse` is never constructed [INFO] [stdout] --> src/exchange/models.rs:309:12 [INFO] [stdout] | [INFO] [stdout] 309 | pub struct EventsListResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/exchange/models.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 318 | pub struct WsMessage { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 326 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsMessage` 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 `auth`, `base_url`, `get_fills`, `get_markets`, `get_markets_for_event`, and `get_events` are never used [INFO] [stdout] --> src/exchange/rest.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl KalshiRestClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn auth(&self) -> &KalshiAuth { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn base_url(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub async fn get_fills(&self, limit: Option) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn get_markets( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 326 | pub async fn get_markets_for_event(&self, event_ticker: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub async fn get_events(&self, with_markets: bool) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maker_fee_total` is never used [INFO] [stdout] --> src/market_scanner/mod.rs:341:8 [INFO] [stdout] | [INFO] [stdout] 341 | pub fn maker_fee_total(price: Decimal, count: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `price` and `ts` are never read [INFO] [stdout] --> src/state/mod.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct RecentTrade { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 142 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 143 | pub taker_side: Side, [INFO] [stdout] 144 | pub ts: chrono::DateTime, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecentTrade` 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 `session_start_equity`, `disconnected_at`, `compute_realized_pnl`, `db_pool`, `event_groups`, and `sibling_tickers` are never used [INFO] [stdout] --> src/state/mod.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl StateEngine { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn session_start_equity(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn disconnected_at(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn compute_realized_pnl(&self) -> rust_decimal::Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn db_pool(&self) -> &PgPool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 389 | pub fn event_groups(&self) -> &HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 393 | pub fn sibling_tickers(&self, ticker: &MarketTicker) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TimeInForce` is never used [INFO] [stdout] --> src/types.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum TimeInForce { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reconnecting` is never constructed [INFO] [stdout] --> src/types.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum ConnectivityState { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 108 | Reconnecting, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectivityState` 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 `count` is never read [INFO] [stdout] --> src/types.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 127 | Trade { [INFO] [stdout] | ----- field in this variant [INFO] [stdout] ... [INFO] [stdout] 130 | count: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeEvent` 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 `client_order_id` is never read [INFO] [stdout] --> src/types.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 168 | CreateOrder { [INFO] [stdout] | ----------- field in this variant [INFO] [stdout] ... [INFO] [stdout] 174 | client_order_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DesiredAction` 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 `CancelOrder` is never constructed [INFO] [stdout] --> src/types.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum DesiredAction { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 176 | CancelOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DesiredAction` 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 `market_ticker` is never read [INFO] [stdout] --> src/types.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct FairValue { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 194 | pub market_ticker: MarketTicker, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FairValue` 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 `KillSwitch` is never constructed [INFO] [stdout] --> src/types.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 201 | pub enum RiskDecision { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 204 | KillSwitch { reason: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskDecision` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 43s [INFO] running `Command { std: "docker" "inspect" "5e981e513b994796b023da43f2d0bc10c8ffe57622dd8b0a53f7ff744bd1d6eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e981e513b994796b023da43f2d0bc10c8ffe57622dd8b0a53f7ff744bd1d6eb", kill_on_drop: false }` [INFO] [stdout] 5e981e513b994796b023da43f2d0bc10c8ffe57622dd8b0a53f7ff744bd1d6eb