[INFO] cloning repository https://github.com/Seann2003/polymarket-tui [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Seann2003/polymarket-tui" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSeann2003%2Fpolymarket-tui", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSeann2003%2Fpolymarket-tui'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 67efd3b5c68cabe23de0387e5b2e0377337e9ab5 [INFO] checking Seann2003/polymarket-tui against master#d9563937fa3b030c5845811113505070109414d2 for pr-151830 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSeann2003%2Fpolymarket-tui" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Seann2003/polymarket-tui [INFO] finished tweaking git repo https://github.com/Seann2003/polymarket-tui [INFO] tweaked toml for git repo https://github.com/Seann2003/polymarket-tui written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Seann2003/polymarket-tui on toolchain d9563937fa3b030c5845811113505070109414d2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d9563937fa3b030c5845811113505070109414d2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Seann2003/polymarket-tui 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" "+d9563937fa3b030c5845811113505070109414d2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal_macros v1.40.0 [INFO] [stderr] Downloaded tokio-rusqlite v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+d9563937fa3b030c5845811113505070109414d2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b8a13da5a84e7c9ab4eba0bbe9bcbad213cd1bb0021c836af9736cf44d8f40c [INFO] running `Command { std: "docker" "start" "-a" "4b8a13da5a84e7c9ab4eba0bbe9bcbad213cd1bb0021c836af9736cf44d8f40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b8a13da5a84e7c9ab4eba0bbe9bcbad213cd1bb0021c836af9736cf44d8f40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b8a13da5a84e7c9ab4eba0bbe9bcbad213cd1bb0021c836af9736cf44d8f40c", kill_on_drop: false }` [INFO] [stdout] 4b8a13da5a84e7c9ab4eba0bbe9bcbad213cd1bb0021c836af9736cf44d8f40c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+d9563937fa3b030c5845811113505070109414d2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75063e43508b64619617f4e8efd0bf15ff067dc7420ed1dff9b543a2af67159d [INFO] running `Command { std: "docker" "start" "-a" "75063e43508b64619617f4e8efd0bf15ff067dc7420ed1dff9b543a2af67159d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling toml_parser v1.0.8+spec-1.1.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling camino v1.2.2 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking keccak v0.1.6 [INFO] [stderr] Checking regex-syntax v0.8.9 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.108 [INFO] [stderr] Compiling syn v2.0.116 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking tiny-keccak v2.0.2 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Checking const_format v0.2.35 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling bumpalo v3.19.1 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.108 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking deranged v0.5.6 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Checking tempfile v3.25.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking const-hex v1.17.0 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.108 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking salsa20 v0.10.2 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking send_wrapper v0.4.0 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Checking hashers v1.0.1 [INFO] [stderr] Checking scrypt v0.10.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking dunce v1.0.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling instability v0.3.11 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.5 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.108 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking num_enum v0.7.5 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking futures-locks v0.7.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking fallible-iterator v0.3.0 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking uuid v1.21.0 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Checking simple_asn1 v0.6.4 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking js-sys v0.3.85 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking impl-serde v0.4.0 [INFO] [stderr] Checking cargo-platform v0.1.9 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking coins-core v0.8.7 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking cargo_metadata v0.18.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking tracing-appender v0.2.4 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking coins-bip32 v0.8.7 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking scale-info v2.11.6 [INFO] [stderr] Checking impl-codec v0.6.0 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking enr v0.10.0 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Checking eth-keystore v0.5.0 [INFO] [stderr] Checking coins-bip39 v0.8.7 [INFO] [stderr] Checking rust_decimal v1.40.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking ethbloom v0.13.0 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking gloo-timers v0.2.6 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking ethereum-types v0.14.1 [INFO] [stderr] Checking open-fastrlp v0.1.4 [INFO] [stderr] Checking ethabi v18.0.0 [INFO] [stderr] Checking ethers-core v2.0.14 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking rusqlite v0.32.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tokio-rusqlite v0.6.0 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking ethers-contract-abigen v2.0.14 [INFO] [stderr] Checking ethers-signers v2.0.14 [INFO] [stderr] Checking ethers-addressbook v2.0.14 [INFO] [stderr] Checking ethers-providers v2.0.14 [INFO] [stderr] Compiling ethers-contract-derive v2.0.14 [INFO] [stderr] Checking ethers-contract v2.0.14 [INFO] [stderr] Checking ethers-middleware v2.0.14 [INFO] [stderr] Checking ethers v2.0.14 [INFO] [stderr] Checking polybot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Method` [INFO] [stdout] --> src/api/client.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::{Client, Method, RequestBuilder}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/api/data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/api/gamma.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/api/gamma.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::client::PolymarketClient` [INFO] [stdout] --> src/api/gamma.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::client::PolymarketClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::api::gamma` [INFO] [stdout] --> src/trading/arbitrage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::api::gamma; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/trading/engine.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/trading/lmsr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/trading/lmsr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/trading/lmsr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/trading/lmsr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/trading/lmsr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/whale/tracker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/whale/tracker.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/ws/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Method` [INFO] [stdout] --> src/api/client.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::{Client, Method, RequestBuilder}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/api/data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/api/gamma.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/api/gamma.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::client::PolymarketClient` [INFO] [stdout] --> src/api/gamma.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::client::PolymarketClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::api::gamma` [INFO] [stdout] --> src/trading/arbitrage.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::api::gamma; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/trading/engine.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/trading/lmsr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal_macros::dec` [INFO] [stdout] --> src/trading/lmsr.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rust_decimal_macros::dec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/trading/lmsr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/trading/lmsr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/trading/lmsr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/whale/tracker.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/whale/tracker.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/ws/handler.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rate_limiter` [INFO] [stdout] --> src/app.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | rate_limiter: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rate_limiter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/trading/lmsr.rs:216:29 [INFO] [stdout] | [INFO] [stdout] 216 | let price = if side == "YES" { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rate_limiter` [INFO] [stdout] --> src/app.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | rate_limiter: Arc, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rate_limiter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `open_orders` [INFO] [stdout] --> src/trading/risk.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | open_orders: usize, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_open_orders` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Render`, `UpdateOrderbook`, `UpdateApiCosts`, `ExecuteOrder`, and `ResumeTrading` are never constructed [INFO] [stdout] --> src/action.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | Render, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | UpdateOrderbook(OrderbookUpdate), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | UpdateApiCosts(ApiCostData), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | ExecuteOrder(OrderRequest), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | ResumeTrading, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/action.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct AccountData { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccountData` 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 `token_id` is never read [INFO] [stdout] --> src/action.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct PositionData { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 84 | pub market: String, [INFO] [stdout] 85 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionData` 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 `slug` and `category` are never read [INFO] [stdout] --> src/action.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct MarketData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | pub slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub category: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketData` 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 `price` is never read [INFO] [stdout] --> src/action.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct TokenData { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenData` 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 `id` is never read [INFO] [stdout] --> src/action.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct SignalData { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 118 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignalData` 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 `Whale` is never constructed [INFO] [stdout] --> src/action.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub enum SignalSource { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 131 | Whale, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignalSource` 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: multiple fields are never read [INFO] [stdout] --> src/action.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct OrderRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 136 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 137 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 138 | pub side: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 139 | pub size_usd: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 140 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 141 | pub order_type: OrderType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 142 | pub source: SignalSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderRequest` 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`, `market`, `side`, `size_usd`, and `price` are never read [INFO] [stdout] --> src/action.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct OrderResult { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 153 | pub order_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 154 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 155 | pub side: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 156 | pub size_usd: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResult` 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 `token_id`, `best_bid`, `best_ask`, and `midpoint` are never read [INFO] [stdout] --> src/action.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 163 | pub struct OrderbookUpdate { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 164 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 165 | pub best_bid: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 166 | pub best_ask: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 167 | pub midpoint: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderbookUpdate` 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 `whale_address`, `market`, `action`, `side`, `size`, and `price` are never read [INFO] [stdout] --> src/action.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct WhalePositionDiff { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 223 | pub whale_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 224 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 225 | pub action: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 226 | pub side: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 227 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 228 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhalePositionDiff` 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 `whale` is never read [INFO] [stdout] --> src/config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub whale: WhaleConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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 `log_level` is never read [INFO] [stdout] --> src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct GeneralConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 16 | pub paper_mode: bool, [INFO] [stdout] 17 | pub log_level: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeneralConfig` 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_position_usd` is never read [INFO] [stdout] --> src/config.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TradingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 22 | pub default_size_usd: f64, [INFO] [stdout] 23 | pub max_position_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct WhaleConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 67 | pub max_tracked: usize, [INFO] [stdout] 68 | pub poll_interval_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | pub min_pnl_usd: f64, [INFO] [stdout] 70 | pub min_win_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 71 | pub min_trades: u32, [INFO] [stdout] 72 | pub copy_mode: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | pub copy_size_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 74 | pub max_entry_drift_pct: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | pub min_hours_to_resolution: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhaleConfig` 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 `StatusBar` is never constructed [INFO] [stdout] --> src/components/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum PanelId { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | StatusBar, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PanelId` 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 `title` is never used [INFO] [stdout] --> src/components/mod.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl PanelId { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn title(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `neg_risk` is never read [INFO] [stdout] --> src/api/client.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct GammaMarket { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | neg_risk: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GammaMarket` 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 `ClobMarket` is never constructed [INFO] [stdout] --> src/api/client.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct ClobMarket { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobToken` is never constructed [INFO] [stdout] --> src/api/client.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct ClobToken { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderbookResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct OrderbookResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/api/client.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MidpointResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | struct MidpointResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct PriceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `slug` is never read [INFO] [stdout] --> src/api/client.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 121 | struct DataPositionMarket { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | slug: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataPositionMarket` 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 `BalanceResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | struct BalanceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_orderbook`, `get_midpoint`, `get_price`, `get_market_by_slug`, and `cancel_order` are never used [INFO] [stdout] --> src/api/client.rs:234:18 [INFO] [stdout] | [INFO] [stdout] 154 | impl PolymarketClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 234 | pub async fn get_orderbook(&self, token_id: &str) -> Result<(Decimal, Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn get_midpoint(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_price(&self, token_id: &str, side: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub async fn get_market_by_slug(&self, slug: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub async fn cancel_order(&self, order_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `portfolio_value_cents` is never used [INFO] [stdout] --> src/api/data.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn portfolio_value_cents(balance_usdc: Decimal, positions: &[PositionData]) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_arb_candidates` is never used [INFO] [stdout] --> src/api/gamma.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn find_arb_candidates(markets: &[MarketData], fee_pct: Decimal) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_high_prob_candidates` is never used [INFO] [stdout] --> src/api/gamma.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn find_high_prob_candidates( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_short_duration_crypto` is never used [INFO] [stdout] --> src/api/gamma.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn filter_short_duration_crypto( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArbCandidate` is never constructed [INFO] [stdout] --> src/api/gamma.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct ArbCandidate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HighProbCandidate` is never constructed [INFO] [stdout] --> src/api/gamma.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct HighProbCandidate { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition_id` and `spread` are never read [INFO] [stdout] --> src/trading/arbitrage.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct ArbSignal { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 76 | pub market: String, [INFO] [stdout] 77 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub spread: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArbSignal` 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 `store` is never read [INFO] [stdout] --> src/trading/engine.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TradingEngine { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | store: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `risk_manager` is never used [INFO] [stdout] --> src/trading/engine.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl TradingEngine { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn risk_manager(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition_id`, `expected_return`, and `liquidity` are never read [INFO] [stdout] --> src/trading/high_prob.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct HighProbSignal { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 103 | pub market: String, [INFO] [stdout] 104 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub expected_return: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 108 | pub return_pct: f64, [INFO] [stdout] 109 | pub liquidity: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HighProbSignal` 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 `condition_id`, `posterior`, `edge`, `kelly`, `spot_price`, and `asset` are never read [INFO] [stdout] --> src/trading/lmsr.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 270 | pub struct LmsrSignal { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 271 | pub market: String, [INFO] [stdout] 272 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub posterior: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 276 | pub market_price: f64, [INFO] [stdout] 277 | pub edge: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 278 | pub kelly: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 279 | pub size_usd: f64, [INFO] [stdout] 280 | pub spot_price: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 281 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LmsrSignal` 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: constant `CTF_EXCHANGE` is never used [INFO] [stdout] --> src/trading/order.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const CTF_EXCHANGE: &str = "0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AMOUNT_DECIMALS` is never used [INFO] [stdout] --> src/trading/order.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const AMOUNT_DECIMALS: u64 = 1_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_any` is never used [INFO] [stdout] --> src/trading/price_cache.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl PriceCache { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn get_any(&self, symbol: &str) -> Option<(f64, Duration)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_exposure` is never read [INFO] [stdout] --> src/trading/risk.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct RiskManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub total_exposure: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_daily_pnl`, `update_exposure`, `activate_kill_switch`, and `deactivate_kill_switch` are never used [INFO] [stdout] --> src/trading/risk.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn update_daily_pnl(&mut self, pnl: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn update_exposure(&mut self, positions: &[PositionData]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn activate_kill_switch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn deactivate_kill_switch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhaleCopier` is never constructed [INFO] [stdout] --> src/whale/copier.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct WhaleCopier { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `evaluate_and_copy` are never used [INFO] [stdout] --> src/whale/copier.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl WhaleCopier { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(config: WhaleConfig, executor: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn evaluate_and_copy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert_signal` is never used [INFO] [stdout] --> src/db/store.rs:143:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl Store { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn insert_signal( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLYMARKET_WS` is never used [INFO] [stdout] --> src/ws/handler.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const POLYMARKET_WS: &str = "wss://ws-subscriptions-clob.polymarket.com/ws/market"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolymarketWsMsg` is never constructed [INFO] [stdout] --> src/ws/handler.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PolymarketWsMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/ws/handler.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct BinanceTradeMsg { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceTradeMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_polymarket_stream` is never used [INFO] [stdout] --> src/ws/handler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl WebSocketManager { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn start_polymarket_stream(&self, token_ids: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_polymarket_ws` is never used [INFO] [stdout] --> src/ws/handler.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | async fn connect_polymarket_ws( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/trading/lmsr.rs:216:29 [INFO] [stdout] | [INFO] [stdout] 216 | let price = if side == "YES" { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `open_orders` [INFO] [stdout] --> src/trading/risk.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | open_orders: usize, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_open_orders` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Render`, `UpdateOrderbook`, `UpdateApiCosts`, `ExecuteOrder`, and `ResumeTrading` are never constructed [INFO] [stdout] --> src/action.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | Render, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | UpdateOrderbook(OrderbookUpdate), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | UpdateApiCosts(ApiCostData), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | ExecuteOrder(OrderRequest), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | ResumeTrading, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/action.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct AccountData { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | pub address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AccountData` 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 `token_id` is never read [INFO] [stdout] --> src/action.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct PositionData { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 84 | pub market: String, [INFO] [stdout] 85 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionData` 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 `slug` and `category` are never read [INFO] [stdout] --> src/action.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 95 | pub struct MarketData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 98 | pub slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub category: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketData` 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 `price` is never read [INFO] [stdout] --> src/action.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct TokenData { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenData` 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 `id` is never read [INFO] [stdout] --> src/action.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct SignalData { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 118 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignalData` 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 `Whale` is never constructed [INFO] [stdout] --> src/action.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub enum SignalSource { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 131 | Whale, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignalSource` 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: multiple fields are never read [INFO] [stdout] --> src/action.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 135 | pub struct OrderRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 136 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 137 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 138 | pub side: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 139 | pub size_usd: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 140 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 141 | pub order_type: OrderType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 142 | pub source: SignalSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderRequest` 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`, `market`, `side`, `size_usd`, and `price` are never read [INFO] [stdout] --> src/action.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct OrderResult { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 153 | pub order_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 154 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 155 | pub side: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 156 | pub size_usd: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResult` 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 `token_id`, `best_bid`, `best_ask`, and `midpoint` are never read [INFO] [stdout] --> src/action.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 163 | pub struct OrderbookUpdate { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 164 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 165 | pub best_bid: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 166 | pub best_ask: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 167 | pub midpoint: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderbookUpdate` 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 `whale_address`, `market`, `action`, `side`, `size`, and `price` are never read [INFO] [stdout] --> src/action.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 222 | pub struct WhalePositionDiff { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 223 | pub whale_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 224 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 225 | pub action: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 226 | pub side: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 227 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 228 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhalePositionDiff` 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 `whale` is never read [INFO] [stdout] --> src/config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub whale: WhaleConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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 `log_level` is never read [INFO] [stdout] --> src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct GeneralConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 16 | pub paper_mode: bool, [INFO] [stdout] 17 | pub log_level: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeneralConfig` 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_position_usd` is never read [INFO] [stdout] --> src/config.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TradingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 22 | pub default_size_usd: f64, [INFO] [stdout] 23 | pub max_position_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct WhaleConfig { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 66 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 67 | pub max_tracked: usize, [INFO] [stdout] 68 | pub poll_interval_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | pub min_pnl_usd: f64, [INFO] [stdout] 70 | pub min_win_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 71 | pub min_trades: u32, [INFO] [stdout] 72 | pub copy_mode: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 73 | pub copy_size_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 74 | pub max_entry_drift_pct: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | pub min_hours_to_resolution: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhaleConfig` 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 `StatusBar` is never constructed [INFO] [stdout] --> src/components/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum PanelId { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 29 | StatusBar, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PanelId` 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 `title` is never used [INFO] [stdout] --> src/components/mod.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl PanelId { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn title(&self) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `neg_risk` is never read [INFO] [stdout] --> src/api/client.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct GammaMarket { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 47 | neg_risk: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GammaMarket` 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 `ClobMarket` is never constructed [INFO] [stdout] --> src/api/client.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct ClobMarket { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClobToken` is never constructed [INFO] [stdout] --> src/api/client.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct ClobToken { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderbookResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct OrderbookResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceLevel` is never constructed [INFO] [stdout] --> src/api/client.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | struct PriceLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MidpointResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | struct MidpointResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct PriceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `slug` is never read [INFO] [stdout] --> src/api/client.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 121 | struct DataPositionMarket { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | slug: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataPositionMarket` 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 `BalanceResponse` is never constructed [INFO] [stdout] --> src/api/client.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | struct BalanceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_orderbook`, `get_midpoint`, `get_price`, `get_market_by_slug`, and `cancel_order` are never used [INFO] [stdout] --> src/api/client.rs:234:18 [INFO] [stdout] | [INFO] [stdout] 154 | impl PolymarketClient { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 234 | pub async fn get_orderbook(&self, token_id: &str) -> Result<(Decimal, Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn get_midpoint(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_price(&self, token_id: &str, side: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | pub async fn get_market_by_slug(&self, slug: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub async fn cancel_order(&self, order_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `portfolio_value_cents` is never used [INFO] [stdout] --> src/api/data.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn portfolio_value_cents(balance_usdc: Decimal, positions: &[PositionData]) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_arb_candidates` is never used [INFO] [stdout] --> src/api/gamma.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn find_arb_candidates(markets: &[MarketData], fee_pct: Decimal) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_high_prob_candidates` is never used [INFO] [stdout] --> src/api/gamma.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn find_high_prob_candidates( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_short_duration_crypto` is never used [INFO] [stdout] --> src/api/gamma.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn filter_short_duration_crypto( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ArbCandidate` is never constructed [INFO] [stdout] --> src/api/gamma.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct ArbCandidate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HighProbCandidate` is never constructed [INFO] [stdout] --> src/api/gamma.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct HighProbCandidate { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition_id` and `spread` are never read [INFO] [stdout] --> src/trading/arbitrage.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct ArbSignal { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 76 | pub market: String, [INFO] [stdout] 77 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub spread: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArbSignal` 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 `store` is never read [INFO] [stdout] --> src/trading/engine.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct TradingEngine { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | store: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `risk_manager` is never used [INFO] [stdout] --> src/trading/engine.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl TradingEngine { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn risk_manager(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition_id`, `expected_return`, and `liquidity` are never read [INFO] [stdout] --> src/trading/high_prob.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct HighProbSignal { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 103 | pub market: String, [INFO] [stdout] 104 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub expected_return: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 108 | pub return_pct: f64, [INFO] [stdout] 109 | pub liquidity: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HighProbSignal` 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 `condition_id`, `posterior`, `edge`, `kelly`, `spot_price`, and `asset` are never read [INFO] [stdout] --> src/trading/lmsr.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 270 | pub struct LmsrSignal { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 271 | pub market: String, [INFO] [stdout] 272 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub posterior: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 276 | pub market_price: f64, [INFO] [stdout] 277 | pub edge: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 278 | pub kelly: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 279 | pub size_usd: f64, [INFO] [stdout] 280 | pub spot_price: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 281 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LmsrSignal` 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: constant `CTF_EXCHANGE` is never used [INFO] [stdout] --> src/trading/order.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const CTF_EXCHANGE: &str = "0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AMOUNT_DECIMALS` is never used [INFO] [stdout] --> src/trading/order.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const AMOUNT_DECIMALS: u64 = 1_000_000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_any` is never used [INFO] [stdout] --> src/trading/price_cache.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl PriceCache { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn get_any(&self, symbol: &str) -> Option<(f64, Duration)> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_exposure` is never read [INFO] [stdout] --> src/trading/risk.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct RiskManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub total_exposure: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_daily_pnl`, `update_exposure`, `activate_kill_switch`, and `deactivate_kill_switch` are never used [INFO] [stdout] --> src/trading/risk.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn update_daily_pnl(&mut self, pnl: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn update_exposure(&mut self, positions: &[PositionData]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn activate_kill_switch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn deactivate_kill_switch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhaleCopier` is never constructed [INFO] [stdout] --> src/whale/copier.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct WhaleCopier { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `evaluate_and_copy` are never used [INFO] [stdout] --> src/whale/copier.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl WhaleCopier { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(config: WhaleConfig, executor: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub async fn evaluate_and_copy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `insert_signal` is never used [INFO] [stdout] --> src/db/store.rs:143:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl Store { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn insert_signal( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POLYMARKET_WS` is never used [INFO] [stdout] --> src/ws/handler.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const POLYMARKET_WS: &str = "wss://ws-subscriptions-clob.polymarket.com/ws/market"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolymarketWsMsg` is never constructed [INFO] [stdout] --> src/ws/handler.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct PolymarketWsMsg { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/ws/handler.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct BinanceTradeMsg { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceTradeMsg` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_polymarket_stream` is never used [INFO] [stdout] --> src/ws/handler.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl WebSocketManager { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn start_polymarket_stream(&self, token_ids: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_polymarket_ws` is never used [INFO] [stdout] --> src/ws/handler.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | async fn connect_polymarket_ws( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 15s [INFO] running `Command { std: "docker" "inspect" "75063e43508b64619617f4e8efd0bf15ff067dc7420ed1dff9b543a2af67159d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75063e43508b64619617f4e8efd0bf15ff067dc7420ed1dff9b543a2af67159d", kill_on_drop: false }` [INFO] [stdout] 75063e43508b64619617f4e8efd0bf15ff067dc7420ed1dff9b543a2af67159d