[INFO] cloning repository https://github.com/stuartoffabean/polymarket-bot
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stuartoffabean/polymarket-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstuartoffabean%2Fpolymarket-bot", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstuartoffabean%2Fpolymarket-bot'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e49337b2f4eab6f10a584067d0409c44fa97741e
[INFO] testing stuartoffabean/polymarket-bot against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstuartoffabean%2Fpolymarket-bot" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/stuartoffabean/polymarket-bot
[INFO] finished tweaking git repo https://github.com/stuartoffabean/polymarket-bot
[INFO] tweaked toml for git repo https://github.com/stuartoffabean/polymarket-bot written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/stuartoffabean/polymarket-bot on toolchain 33835004928d3bf65db4d4712e1330766263b0bd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/stuartoffabean/polymarket-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" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b34339f614f430ddd3ac023f1d48a738dee71a5791c57c84d14245791ec47ea7
[INFO] running `Command { std: "docker" "start" "-a" "b34339f614f430ddd3ac023f1d48a738dee71a5791c57c84d14245791ec47ea7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b34339f614f430ddd3ac023f1d48a738dee71a5791c57c84d14245791ec47ea7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b34339f614f430ddd3ac023f1d48a738dee71a5791c57c84d14245791ec47ea7", kill_on_drop: false }`
[INFO] [stdout] b34339f614f430ddd3ac023f1d48a738dee71a5791c57c84d14245791ec47ea7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 33a50f33a6edacddc0f120d43dca3d9a14d008c9f13256b55881a2d32a848b81
[INFO] running `Command { std: "docker" "start" "-a" "33a50f33a6edacddc0f120d43dca3d9a14d008c9f13256b55881a2d32a848b81", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.23
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling libc v0.2.181
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling cc v1.2.55
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling zerocopy v0.8.39
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling rustls v0.23.36
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling regex-syntax v0.8.9
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling data-encoding v2.10.0
[INFO] [stderr]    Compiling unicase v2.9.0
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling indexmap v2.11.1
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling chrono v0.4.43
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling owo-colors v4.2.3
[INFO] [stderr]    Compiling object v0.37.3
[INFO] [stderr]    Compiling color-spantrace v0.3.0
[INFO] [stderr]    Compiling adler2 v2.0.1
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling gimli v0.32.3
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling miniz_oxide v0.8.9
[INFO] [stderr]    Compiling http-range-header v0.4.2
[INFO] [stderr]    Compiling bitflags v2.9.4
[INFO] [stderr]    Compiling indenter v0.3.4
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling openssl-probe v0.2.1
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling rustc-demangle v0.1.27
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling socket2 v0.6.2
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling rand_core v0.9.5
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling rustls-native-certs v0.8.3
[INFO] [stderr]    Compiling eyre v0.6.12
[INFO] [stderr]    Compiling matchit v0.8.4
[INFO] [stderr]    Compiling uuid v1.20.0
[INFO] [stderr]    Compiling crossbeam-channel v0.5.15
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling addr2line v0.25.1
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling backtrace v0.3.76
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[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 serde_derive v1.0.217
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling rustls-webpki v0.103.9
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling tungstenite v0.26.2
[INFO] [stderr]    Compiling axum-core v0.5.6
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling tungstenite v0.24.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling tokio-tungstenite v0.24.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling tracing-serde v0.2.0
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]    Compiling tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling axum v0.8.4
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling tracing-error v0.2.1
[INFO] [stderr]    Compiling color-eyre v0.6.5
[INFO] [stderr]    Compiling sqlx-sqlite v0.8.6
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]    Compiling sqlx v0.8.6
[INFO] [stderr]    Compiling polymarket-bot v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Side`
[INFO] [stdout]   --> src/engine/order_manager.rs:10:60
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::domain::{Order, OrderStatus, OrderType, Signal, Side, Trade};
[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: `Side`
[INFO] [stdout]   --> src/engine/order_manager.rs:10:60
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::domain::{Order, OrderStatus, OrderType, Signal, Side, Trade};
[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 variable: `token_id`
[INFO] [stdout]   --> src/strategy/intra_arb.rs:62:22
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 for (token_id, price) in &prices {
[INFO] [stdout]    |                      ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderRequest` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct OrderRequest {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct OrderResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PriceResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:46:8
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct PriceResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MidpointResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct MidpointResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 | struct OrderBookResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookLevel` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | struct OrderBookLevel {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenOrder` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | pub struct OpenOrder {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_price`, `get_midpoint`, `get_orderbook`, `post_order`, `cancel_order`, and `get_open_orders` are never used
[INFO] [stdout]    --> src/adapters/polymarket.rs:121:18
[INFO] [stdout]     |
[INFO] [stdout]  77 | impl PolymarketClient {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub async fn get_price(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub async fn get_midpoint(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_orderbook(&self, token_id: &str) -> Result<OrderBook> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 193 |     pub async fn post_order(
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 241 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub async fn get_open_orders(&self) -> Result<Vec<OpenOrder>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `WS_URL` is never used
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const WS_URL: &str = "wss://ws-subscriptions-clob.polymarket.com/ws/market";
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WsMessage` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | struct WsMessage {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WsLevel` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct WsLevel {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PolymarketWsFeed` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct PolymarketWsFeed {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `connect_and_listen`, and `handle_message` are never used
[INFO] [stdout]    --> src/adapters/polymarket_ws.rs:36:12
[INFO] [stdout]     |
[INFO] [stdout]  35 | impl PolymarketWsFeed {
[INFO] [stdout]     | --------------------- associated items in this implementation
[INFO] [stdout]  36 |     pub fn new(tx: broadcast::Sender<MarketData>, market_ids: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  40 |     pub async fn run(self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  60 |     async fn connect_and_listen(&self) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     fn handle_message(&self, text: &str) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BinanceTicker` is never constructed
[INFO] [stdout]   --> src/adapters/binance.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | struct BinanceTicker {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BinanceWsFeed` is never constructed
[INFO] [stdout]   --> src/adapters/binance.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub struct BinanceWsFeed {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `WS_ENDPOINTS` is never used
[INFO] [stdout]   --> src/adapters/binance.rs:26:7
[INFO] [stdout]    |
[INFO] [stdout] 26 | const WS_ENDPOINTS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REST_ENDPOINTS` is never used
[INFO] [stdout]   --> src/adapters/binance.rs:31:7
[INFO] [stdout]    |
[INFO] [stdout] 31 | const REST_ENDPOINTS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `try_websocket`, `rest_poll_loop`, `handle_rest_price`, and `handle_message` are never used
[INFO] [stdout]    --> src/adapters/binance.rs:37:12
[INFO] [stdout]     |
[INFO] [stdout]  36 | impl BinanceWsFeed {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout]  37 |     pub fn new(tx: broadcast::Sender<MarketData>, symbols: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  41 |     pub async fn run(self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  65 |     async fn try_websocket(&self) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     async fn rest_poll_loop(&self) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     fn handle_rest_price(&self, text: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     fn handle_message(&self, text: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/adapters/database.rs:83:18
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Database {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  83 |     pub async fn insert_trade(&self, trade: &Trade) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub async fn upsert_position(&self, pos: &Position) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     pub async fn delete_position(&self, market_id: &str, token_id: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn insert_order(&self, order: &Order) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub async fn update_order_status(&self, order_id: &str, status: &OrderStatus) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 202 |     pub async fn record_pnl_snapshot(&self, bankroll: f64, pnl_total: f64) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     pub async fn set_config(&self, key: &str, value: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub async fn get_config(&self, key: &str) -> Result<Option<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_position_pct`, `max_drawdown_pct`, `min_bankroll`, and `max_exposure` are never read
[INFO] [stdout]   --> src/config.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct RiskConfig {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 17 |     pub max_position_pct: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     pub max_drawdown_pct: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     pub min_bankroll: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 20 |     pub starting_bankroll: f64,
[INFO] [stdout] 21 |     pub max_exposure: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RiskConfig` 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 `Market` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Market {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenInfo` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct TokenInfo {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Signal` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:87:12
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub struct Signal {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BookLevel` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:97:12
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub struct BookLevel {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBook` is never constructed
[INFO] [stdout]    --> src/domain/mod.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub struct OrderBook {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `midpoint` and `spread` are never used
[INFO] [stdout]    --> src/domain/mod.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl OrderBook {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] 110 |     pub fn midpoint(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn spread(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MarketData` is never used
[INFO] [stdout]    --> src/domain/mod.rs:125:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | pub enum MarketData {
[INFO] [stdout]     |          ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderManager` is never constructed
[INFO] [stdout]   --> src/engine/order_manager.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct OrderManager {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `handle_signal`, and `cancel_all` are never used
[INFO] [stdout]    --> src/engine/order_manager.rs:22:12
[INFO] [stdout]     |
[INFO] [stdout]  21 | impl OrderManager {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout]  22 |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  38 |     pub async fn run(mut self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     async fn handle_signal(&self, signal: Signal) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub async fn cancel_all(&self) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `peak_bankroll` are never read
[INFO] [stdout]   --> src/engine/risk.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct RiskManager {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 12 |     config: RiskConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 13 |     peak_bankroll: Arc<RwLock<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RiskManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_bankroll`, `check_signal`, and `resume` are never used
[INFO] [stdout]    --> src/engine/risk.rs:28:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl RiskManager {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  28 |     pub async fn update_bankroll(&self, current_bankroll: f64) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  62 |     pub async fn check_signal(&self, signal: &Signal, current_bankroll: f64, total_exposure: f64) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 107 |     pub fn resume(&self) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FeedAggregator` is never constructed
[INFO] [stdout]   --> src/feeds.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct FeedAggregator {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `update_state`, and `run_strategies` are never used
[INFO] [stdout]   --> src/feeds.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl FeedAggregator {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 21 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub async fn run(mut self) {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 58 |     async fn update_state(&self, event: &MarketData) {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72 |     async fn run_strategies(&self, event: &MarketData) {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StrategyContext` is never constructed
[INFO] [stdout]  --> src/strategy/mod.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct StrategyContext {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/strategy/mod.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl StrategyContext {
[INFO] [stdout]    | -------------------- associated function in this implementation
[INFO] [stdout] 19 |     pub fn new(bankroll: f64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Strategy` is never used
[INFO] [stdout]   --> src/strategy/mod.rs:32:11
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub trait Strategy: Send + Sync {
[INFO] [stdout]    |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LatencyArbStrategy` is never constructed
[INFO] [stdout]  --> src/strategy/latency_arb.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct LatencyArbStrategy {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `kelly_size` are never used
[INFO] [stdout]   --> src/strategy/latency_arb.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl LatencyArbStrategy {
[INFO] [stdout]    | ----------------------- associated items in this implementation
[INFO] [stdout] 25 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     fn kelly_size(&self, confidence: f64, price: f64, bankroll: f64) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IntraArbStrategy` is never constructed
[INFO] [stdout]  --> src/strategy/intra_arb.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct IntraArbStrategy {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/strategy/intra_arb.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl IntraArbStrategy {
[INFO] [stdout]    | --------------------- associated function in this implementation
[INFO] [stdout] 16 |     pub fn new(markets: Vec<(String, Vec<String>)>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_id`
[INFO] [stdout]   --> src/strategy/intra_arb.rs:62:22
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 for (token_id, price) in &prices {
[INFO] [stdout]    |                      ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PriceResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:46:8
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct PriceResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MidpointResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct MidpointResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 | struct OrderBookResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookLevel` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | struct OrderBookLevel {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenOrder` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | pub struct OpenOrder {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_price`, `get_midpoint`, `get_orderbook`, `cancel_order`, and `get_open_orders` are never used
[INFO] [stdout]    --> src/adapters/polymarket.rs:121:18
[INFO] [stdout]     |
[INFO] [stdout]  77 | impl PolymarketClient {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub async fn get_price(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub async fn get_midpoint(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_orderbook(&self, token_id: &str) -> Result<OrderBook> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 241 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub async fn get_open_orders(&self) -> Result<Vec<OpenOrder>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `upsert_position`, `delete_position`, `set_config`, and `get_config` are never used
[INFO] [stdout]    --> src/adapters/database.rs:115:18
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Database {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub async fn upsert_position(&self, pos: &Position) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     pub async fn delete_position(&self, market_id: &str, token_id: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     pub async fn set_config(&self, key: &str, value: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub async fn get_config(&self, key: &str) -> Result<Option<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Market` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Market {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenInfo` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct TokenInfo {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `midpoint` and `spread` are never used
[INFO] [stdout]    --> src/domain/mod.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl OrderBook {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] 110 |     pub fn midpoint(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn spread(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cancel_all` is never used
[INFO] [stdout]    --> src/engine/order_manager.rs:158:18
[INFO] [stdout]     |
[INFO] [stdout]  21 | impl OrderManager {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub async fn cancel_all(&self) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `resume` is never used
[INFO] [stdout]    --> src/engine/risk.rs:107:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl RiskManager {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 107 |     pub fn resume(&self) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `orderbooks` and `latest_event` are never read
[INFO] [stdout]   --> src/strategy/mod.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct StrategyContext {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub orderbooks: HashMap<String, OrderBook>,  // token_id -> orderbook
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub binance_prices: HashMap<String, f64>,    // symbol -> price
[INFO] [stdout] 15 |     pub latest_event: Option<MarketData>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `StrategyContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/strategy/mod.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl StrategyContext {
[INFO] [stdout]    | -------------------- associated function in this implementation
[INFO] [stdout] 19 |     pub fn new(bankroll: f64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `no_token_id` is never read
[INFO] [stdout]   --> src/strategy/latency_arb.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct LatencyArbStrategy {
[INFO] [stdout]    |            ------------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub no_token_id: String,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 32s
[INFO] running `Command { std: "docker" "inspect" "33a50f33a6edacddc0f120d43dca3d9a14d008c9f13256b55881a2d32a848b81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "33a50f33a6edacddc0f120d43dca3d9a14d008c9f13256b55881a2d32a848b81", kill_on_drop: false }`
[INFO] [stdout] 33a50f33a6edacddc0f120d43dca3d9a14d008c9f13256b55881a2d32a848b81
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ec3b9e21b0f55494cb0e75ff7c4a0efa96ca0b7dbb59212223ed69fafe346114
[INFO] running `Command { std: "docker" "start" "-a" "ec3b9e21b0f55494cb0e75ff7c4a0efa96ca0b7dbb59212223ed69fafe346114", kill_on_drop: false }`
[INFO] [stderr]    Compiling polymarket-bot v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Side`
[INFO] [stdout]   --> src/engine/order_manager.rs:10:60
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::domain::{Order, OrderStatus, OrderType, Signal, Side, Trade};
[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: `Side`
[INFO] [stdout]   --> src/engine/order_manager.rs:10:60
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::domain::{Order, OrderStatus, OrderType, Signal, Side, Trade};
[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 variable: `token_id`
[INFO] [stdout]   --> src/strategy/intra_arb.rs:62:22
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 for (token_id, price) in &prices {
[INFO] [stdout]    |                      ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderRequest` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct OrderRequest {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct OrderResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PriceResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:46:8
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct PriceResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MidpointResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct MidpointResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 | struct OrderBookResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookLevel` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | struct OrderBookLevel {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenOrder` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | pub struct OpenOrder {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_price`, `get_midpoint`, `get_orderbook`, `post_order`, `cancel_order`, and `get_open_orders` are never used
[INFO] [stdout]    --> src/adapters/polymarket.rs:121:18
[INFO] [stdout]     |
[INFO] [stdout]  77 | impl PolymarketClient {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub async fn get_price(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub async fn get_midpoint(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_orderbook(&self, token_id: &str) -> Result<OrderBook> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 193 |     pub async fn post_order(
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 241 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub async fn get_open_orders(&self) -> Result<Vec<OpenOrder>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `WS_URL` is never used
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const WS_URL: &str = "wss://ws-subscriptions-clob.polymarket.com/ws/market";
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WsMessage` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | struct WsMessage {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WsLevel` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | struct WsLevel {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PolymarketWsFeed` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket_ws.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct PolymarketWsFeed {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `connect_and_listen`, and `handle_message` are never used
[INFO] [stdout]    --> src/adapters/polymarket_ws.rs:36:12
[INFO] [stdout]     |
[INFO] [stdout]  35 | impl PolymarketWsFeed {
[INFO] [stdout]     | --------------------- associated items in this implementation
[INFO] [stdout]  36 |     pub fn new(tx: broadcast::Sender<MarketData>, market_ids: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  40 |     pub async fn run(self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  60 |     async fn connect_and_listen(&self) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 101 |     fn handle_message(&self, text: &str) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BinanceTicker` is never constructed
[INFO] [stdout]   --> src/adapters/binance.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | struct BinanceTicker {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BinanceWsFeed` is never constructed
[INFO] [stdout]   --> src/adapters/binance.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub struct BinanceWsFeed {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `WS_ENDPOINTS` is never used
[INFO] [stdout]   --> src/adapters/binance.rs:26:7
[INFO] [stdout]    |
[INFO] [stdout] 26 | const WS_ENDPOINTS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REST_ENDPOINTS` is never used
[INFO] [stdout]   --> src/adapters/binance.rs:31:7
[INFO] [stdout]    |
[INFO] [stdout] 31 | const REST_ENDPOINTS: &[&str] = &[
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `try_websocket`, `rest_poll_loop`, `handle_rest_price`, and `handle_message` are never used
[INFO] [stdout]    --> src/adapters/binance.rs:37:12
[INFO] [stdout]     |
[INFO] [stdout]  36 | impl BinanceWsFeed {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout]  37 |     pub fn new(tx: broadcast::Sender<MarketData>, symbols: Vec<String>) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  41 |     pub async fn run(self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  65 |     async fn try_websocket(&self) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     async fn rest_poll_loop(&self) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     fn handle_rest_price(&self, text: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 |     fn handle_message(&self, text: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/adapters/database.rs:83:18
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Database {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  83 |     pub async fn insert_trade(&self, trade: &Trade) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub async fn upsert_position(&self, pos: &Position) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     pub async fn delete_position(&self, market_id: &str, token_id: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn insert_order(&self, order: &Order) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub async fn update_order_status(&self, order_id: &str, status: &OrderStatus) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 202 |     pub async fn record_pnl_snapshot(&self, bankroll: f64, pnl_total: f64) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     pub async fn set_config(&self, key: &str, value: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub async fn get_config(&self, key: &str) -> Result<Option<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_position_pct`, `max_drawdown_pct`, `min_bankroll`, and `max_exposure` are never read
[INFO] [stdout]   --> src/config.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct RiskConfig {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 17 |     pub max_position_pct: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     pub max_drawdown_pct: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     pub min_bankroll: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 20 |     pub starting_bankroll: f64,
[INFO] [stdout] 21 |     pub max_exposure: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RiskConfig` 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 `Market` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Market {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenInfo` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct TokenInfo {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Signal` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:87:12
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub struct Signal {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BookLevel` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:97:12
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub struct BookLevel {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBook` is never constructed
[INFO] [stdout]    --> src/domain/mod.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout] 103 | pub struct OrderBook {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `midpoint` and `spread` are never used
[INFO] [stdout]    --> src/domain/mod.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl OrderBook {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] 110 |     pub fn midpoint(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn spread(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MarketData` is never used
[INFO] [stdout]    --> src/domain/mod.rs:125:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | pub enum MarketData {
[INFO] [stdout]     |          ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderManager` is never constructed
[INFO] [stdout]   --> src/engine/order_manager.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct OrderManager {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `handle_signal`, and `cancel_all` are never used
[INFO] [stdout]    --> src/engine/order_manager.rs:22:12
[INFO] [stdout]     |
[INFO] [stdout]  21 | impl OrderManager {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout]  22 |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  38 |     pub async fn run(mut self) -> Result<()> {
[INFO] [stdout]     |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout]  61 |     async fn handle_signal(&self, signal: Signal) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub async fn cancel_all(&self) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `peak_bankroll` are never read
[INFO] [stdout]   --> src/engine/risk.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct RiskManager {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 12 |     config: RiskConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 13 |     peak_bankroll: Arc<RwLock<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RiskManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_bankroll`, `check_signal`, and `resume` are never used
[INFO] [stdout]    --> src/engine/risk.rs:28:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl RiskManager {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  28 |     pub async fn update_bankroll(&self, current_bankroll: f64) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  62 |     pub async fn check_signal(&self, signal: &Signal, current_bankroll: f64, total_exposure: f64) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 107 |     pub fn resume(&self) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FeedAggregator` is never constructed
[INFO] [stdout]   --> src/feeds.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct FeedAggregator {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `run`, `update_state`, and `run_strategies` are never used
[INFO] [stdout]   --> src/feeds.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl FeedAggregator {
[INFO] [stdout]    | ------------------- associated items in this implementation
[INFO] [stdout] 21 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub async fn run(mut self) {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 58 |     async fn update_state(&self, event: &MarketData) {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72 |     async fn run_strategies(&self, event: &MarketData) {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StrategyContext` is never constructed
[INFO] [stdout]  --> src/strategy/mod.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct StrategyContext {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/strategy/mod.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl StrategyContext {
[INFO] [stdout]    | -------------------- associated function in this implementation
[INFO] [stdout] 19 |     pub fn new(bankroll: f64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Strategy` is never used
[INFO] [stdout]   --> src/strategy/mod.rs:32:11
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub trait Strategy: Send + Sync {
[INFO] [stdout]    |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LatencyArbStrategy` is never constructed
[INFO] [stdout]  --> src/strategy/latency_arb.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct LatencyArbStrategy {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `kelly_size` are never used
[INFO] [stdout]   --> src/strategy/latency_arb.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl LatencyArbStrategy {
[INFO] [stdout]    | ----------------------- associated items in this implementation
[INFO] [stdout] 25 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     fn kelly_size(&self, confidence: f64, price: f64, bankroll: f64) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `IntraArbStrategy` is never constructed
[INFO] [stdout]  --> src/strategy/intra_arb.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct IntraArbStrategy {
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/strategy/intra_arb.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl IntraArbStrategy {
[INFO] [stdout]    | --------------------- associated function in this implementation
[INFO] [stdout] 16 |     pub fn new(markets: Vec<(String, Vec<String>)>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_id`
[INFO] [stdout]   --> src/strategy/intra_arb.rs:62:22
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 for (token_id, price) in &prices {
[INFO] [stdout]    |                      ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PriceResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:46:8
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct PriceResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MidpointResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | struct MidpointResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookResponse` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 | struct OrderBookResponse {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OrderBookLevel` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | struct OrderBookLevel {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OpenOrder` is never constructed
[INFO] [stdout]   --> src/adapters/polymarket.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 68 | pub struct OpenOrder {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_price`, `get_midpoint`, `get_orderbook`, `cancel_order`, and `get_open_orders` are never used
[INFO] [stdout]    --> src/adapters/polymarket.rs:121:18
[INFO] [stdout]     |
[INFO] [stdout]  77 | impl PolymarketClient {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub async fn get_price(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 140 |     pub async fn get_midpoint(&self, token_id: &str) -> Result<f64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_orderbook(&self, token_id: &str) -> Result<OrderBook> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 241 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 271 |     pub async fn get_open_orders(&self) -> Result<Vec<OpenOrder>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `upsert_position`, `delete_position`, `set_config`, and `get_config` are never used
[INFO] [stdout]    --> src/adapters/database.rs:115:18
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Database {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub async fn upsert_position(&self, pos: &Position) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 148 |     pub async fn delete_position(&self, market_id: &str, token_id: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 235 |     pub async fn set_config(&self, key: &str, value: &str) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub async fn get_config(&self, key: &str) -> Result<Option<String>> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Market` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Market {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TokenInfo` is never constructed
[INFO] [stdout]   --> src/domain/mod.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub struct TokenInfo {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `midpoint` and `spread` are never used
[INFO] [stdout]    --> src/domain/mod.rs:110:12
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl OrderBook {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] 110 |     pub fn midpoint(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn spread(&self) -> Option<f64> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cancel_all` is never used
[INFO] [stdout]    --> src/engine/order_manager.rs:158:18
[INFO] [stdout]     |
[INFO] [stdout]  21 | impl OrderManager {
[INFO] [stdout]     | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 158 |     pub async fn cancel_all(&self) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `resume` is never used
[INFO] [stdout]    --> src/engine/risk.rs:107:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl RiskManager {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 107 |     pub fn resume(&self) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `orderbooks` and `latest_event` are never read
[INFO] [stdout]   --> src/strategy/mod.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct StrategyContext {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub orderbooks: HashMap<String, OrderBook>,  // token_id -> orderbook
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 14 |     pub binance_prices: HashMap<String, f64>,    // symbol -> price
[INFO] [stdout] 15 |     pub latest_event: Option<MarketData>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `StrategyContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/strategy/mod.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl StrategyContext {
[INFO] [stdout]    | -------------------- associated function in this implementation
[INFO] [stdout] 19 |     pub fn new(bankroll: f64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `no_token_id` is never read
[INFO] [stdout]   --> src/strategy/latency_arb.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct LatencyArbStrategy {
[INFO] [stdout]    |            ------------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub no_token_id: String,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.61s
[INFO] running `Command { std: "docker" "inspect" "ec3b9e21b0f55494cb0e75ff7c4a0efa96ca0b7dbb59212223ed69fafe346114", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ec3b9e21b0f55494cb0e75ff7c4a0efa96ca0b7dbb59212223ed69fafe346114", kill_on_drop: false }`
[INFO] [stdout] ec3b9e21b0f55494cb0e75ff7c4a0efa96ca0b7dbb59212223ed69fafe346114
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] bdcd83f2029143693dea35bf44ba21b672021662eed9756debb941bc958689e7
[INFO] running `Command { std: "docker" "start" "-a" "bdcd83f2029143693dea35bf44ba21b672021662eed9756debb941bc958689e7", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `Side`
[INFO] [stderr]   --> src/engine/order_manager.rs:10:60
[INFO] [stderr]    |
[INFO] [stderr] 10 | use crate::domain::{Order, OrderStatus, OrderType, Signal, Side, Trade};
[INFO] [stderr]    |                                                            ^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `token_id`
[INFO] [stderr]   --> src/strategy/intra_arb.rs:62:22
[INFO] [stderr]    |
[INFO] [stderr] 62 |                 for (token_id, price) in &prices {
[INFO] [stderr]    |                      ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PriceResponse` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:46:8
[INFO] [stderr]    |
[INFO] [stderr] 46 | struct PriceResponse {
[INFO] [stderr]    |        ^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `MidpointResponse` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:51:8
[INFO] [stderr]    |
[INFO] [stderr] 51 | struct MidpointResponse {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OrderBookResponse` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:56:8
[INFO] [stderr]    |
[INFO] [stderr] 56 | struct OrderBookResponse {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OrderBookLevel` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:62:8
[INFO] [stderr]    |
[INFO] [stderr] 62 | struct OrderBookLevel {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OpenOrder` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:68:12
[INFO] [stderr]    |
[INFO] [stderr] 68 | pub struct OpenOrder {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get_price`, `get_midpoint`, `get_orderbook`, `cancel_order`, and `get_open_orders` are never used
[INFO] [stderr]    --> src/adapters/polymarket.rs:121:18
[INFO] [stderr]     |
[INFO] [stderr]  77 | impl PolymarketClient {
[INFO] [stderr]     | --------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 121 |     pub async fn get_price(&self, token_id: &str) -> Result<f64> {
[INFO] [stderr]     |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 140 |     pub async fn get_midpoint(&self, token_id: &str) -> Result<f64> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub async fn get_orderbook(&self, token_id: &str) -> Result<OrderBook> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 241 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 271 |     pub async fn get_open_orders(&self) -> Result<Vec<OpenOrder>> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `upsert_position`, `delete_position`, `set_config`, and `get_config` are never used
[INFO] [stderr]    --> src/adapters/database.rs:115:18
[INFO] [stderr]     |
[INFO] [stderr]  12 | impl Database {
[INFO] [stderr]     | ------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 115 |     pub async fn upsert_position(&self, pos: &Position) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 148 |     pub async fn delete_position(&self, market_id: &str, token_id: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 235 |     pub async fn set_config(&self, key: &str, value: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 246 |     pub async fn get_config(&self, key: &str) -> Result<Option<String>> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Market` is never constructed
[INFO] [stderr]   --> src/domain/mod.rs:36:12
[INFO] [stderr]    |
[INFO] [stderr] 36 | pub struct Market {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `TokenInfo` is never constructed
[INFO] [stderr]   --> src/domain/mod.rs:45:12
[INFO] [stderr]    |
[INFO] [stderr] 45 | pub struct TokenInfo {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `midpoint` and `spread` are never used
[INFO] [stderr]    --> src/domain/mod.rs:110:12
[INFO] [stderr]     |
[INFO] [stderr] 109 | impl OrderBook {
[INFO] [stderr]     | -------------- methods in this implementation
[INFO] [stderr] 110 |     pub fn midpoint(&self) -> Option<f64> {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 116 |     pub fn spread(&self) -> Option<f64> {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `cancel_all` is never used
[INFO] [stderr]    --> src/engine/order_manager.rs:158:18
[INFO] [stderr]     |
[INFO] [stderr]  21 | impl OrderManager {
[INFO] [stderr]     | ----------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 158 |     pub async fn cancel_all(&self) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `resume` is never used
[INFO] [stderr]    --> src/engine/risk.rs:107:12
[INFO] [stderr]     |
[INFO] [stderr]  17 | impl RiskManager {
[INFO] [stderr]     | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 107 |     pub fn resume(&self) {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `orderbooks` and `latest_event` are never read
[INFO] [stderr]   --> src/strategy/mod.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub struct StrategyContext {
[INFO] [stderr]    |            --------------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 13 |     pub orderbooks: HashMap<String, OrderBook>,  // token_id -> orderbook
[INFO] [stderr]    |         ^^^^^^^^^^
[INFO] [stderr] 14 |     pub binance_prices: HashMap<String, f64>,    // symbol -> price
[INFO] [stderr] 15 |     pub latest_event: Option<MarketData>,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `StrategyContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/strategy/mod.rs:19:12
[INFO] [stderr]    |
[INFO] [stderr] 18 | impl StrategyContext {
[INFO] [stderr]    | -------------------- associated function in this implementation
[INFO] [stderr] 19 |     pub fn new(bankroll: f64) -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `no_token_id` is never read
[INFO] [stderr]   --> src/strategy/latency_arb.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr]  6 | pub struct LatencyArbStrategy {
[INFO] [stderr]    |            ------------------ field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 13 |     pub no_token_id: String,
[INFO] [stderr]    |         ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OrderRequest` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:24:8
[INFO] [stderr]    |
[INFO] [stderr] 24 | struct OrderRequest {
[INFO] [stderr]    |        ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OrderResponse` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:37:12
[INFO] [stderr]    |
[INFO] [stderr] 37 | pub struct OrderResponse {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PriceResponse` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket.rs:46:8
[INFO] [stderr]    |
[INFO] [stderr] 46 | struct PriceResponse {
[INFO] [stderr]    |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get_price`, `get_midpoint`, `get_orderbook`, `post_order`, `cancel_order`, and `get_open_orders` are never used
[INFO] [stderr]    --> src/adapters/polymarket.rs:121:18
[INFO] [stderr]     |
[INFO] [stderr]  77 | impl PolymarketClient {
[INFO] [stderr]     | --------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 121 |     pub async fn get_price(&self, token_id: &str) -> Result<f64> {
[INFO] [stderr]     |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 140 |     pub async fn get_midpoint(&self, token_id: &str) -> Result<f64> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub async fn get_orderbook(&self, token_id: &str) -> Result<OrderBook> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 193 |     pub async fn post_order(
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 241 |     pub async fn cancel_order(&self, order_id: &str) -> Result<bool> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 271 |     pub async fn get_open_orders(&self) -> Result<Vec<OpenOrder>> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `WS_URL` is never used
[INFO] [stderr]   --> src/adapters/polymarket_ws.rs:11:7
[INFO] [stderr]    |
[INFO] [stderr] 11 | const WS_URL: &str = "wss://ws-subscriptions-clob.polymarket.com/ws/market";
[INFO] [stderr]    |       ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `WsMessage` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket_ws.rs:14:8
[INFO] [stderr]    |
[INFO] [stderr] 14 | struct WsMessage {
[INFO] [stderr]    |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `WsLevel` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket_ws.rs:25:8
[INFO] [stderr]    |
[INFO] [stderr] 25 | struct WsLevel {
[INFO] [stderr]    |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PolymarketWsFeed` is never constructed
[INFO] [stderr]   --> src/adapters/polymarket_ws.rs:30:12
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub struct PolymarketWsFeed {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `run`, `connect_and_listen`, and `handle_message` are never used
[INFO] [stderr]    --> src/adapters/polymarket_ws.rs:36:12
[INFO] [stderr]     |
[INFO] [stderr]  35 | impl PolymarketWsFeed {
[INFO] [stderr]     | --------------------- associated items in this implementation
[INFO] [stderr]  36 |     pub fn new(tx: broadcast::Sender<MarketData>, market_ids: Vec<String>) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr]  40 |     pub async fn run(self) -> Result<()> {
[INFO] [stderr]     |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr]  60 |     async fn connect_and_listen(&self) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 101 |     fn handle_message(&self, text: &str) -> Result<()> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `BinanceTicker` is never constructed
[INFO] [stderr]   --> src/adapters/binance.rs:13:8
[INFO] [stderr]    |
[INFO] [stderr] 13 | struct BinanceTicker {
[INFO] [stderr]    |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `BinanceWsFeed` is never constructed
[INFO] [stderr]   --> src/adapters/binance.rs:20:12
[INFO] [stderr]    |
[INFO] [stderr] 20 | pub struct BinanceWsFeed {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `WS_ENDPOINTS` is never used
[INFO] [stderr]   --> src/adapters/binance.rs:26:7
[INFO] [stderr]    |
[INFO] [stderr] 26 | const WS_ENDPOINTS: &[&str] = &[
[INFO] [stderr]    |       ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `REST_ENDPOINTS` is never used
[INFO] [stderr]   --> src/adapters/binance.rs:31:7
[INFO] [stderr]    |
[INFO] [stderr] 31 | const REST_ENDPOINTS: &[&str] = &[
[INFO] [stderr]    |       ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `run`, `try_websocket`, `rest_poll_loop`, `handle_rest_price`, and `handle_message` are never used
[INFO] [stderr]    --> src/adapters/binance.rs:37:12
[INFO] [stderr]     |
[INFO] [stderr]  36 | impl BinanceWsFeed {
[INFO] [stderr]     | ------------------ associated items in this implementation
[INFO] [stderr]  37 |     pub fn new(tx: broadcast::Sender<MarketData>, symbols: Vec<String>) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr]  41 |     pub async fn run(self) -> Result<()> {
[INFO] [stderr]     |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr]  65 |     async fn try_websocket(&self) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 114 |     async fn rest_poll_loop(&self) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 152 |     fn handle_rest_price(&self, text: &str) {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 170 |     fn handle_message(&self, text: &str) {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple methods are never used
[INFO] [stderr]    --> src/adapters/database.rs:83:18
[INFO] [stderr]     |
[INFO] [stderr]  12 | impl Database {
[INFO] [stderr]     | ------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  83 |     pub async fn insert_trade(&self, trade: &Trade) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 115 |     pub async fn upsert_position(&self, pos: &Position) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 148 |     pub async fn delete_position(&self, market_id: &str, token_id: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub async fn insert_order(&self, order: &Order) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 181 |     pub async fn update_order_status(&self, order_id: &str, status: &OrderStatus) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 202 |     pub async fn record_pnl_snapshot(&self, bankroll: f64, pnl_total: f64) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 235 |     pub async fn set_config(&self, key: &str, value: &str) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 246 |     pub async fn get_config(&self, key: &str) -> Result<Option<String>> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `max_position_pct`, `max_drawdown_pct`, `min_bankroll`, and `max_exposure` are never read
[INFO] [stderr]   --> src/config.rs:17:9
[INFO] [stderr]    |
[INFO] [stderr] 16 | pub struct RiskConfig {
[INFO] [stderr]    |            ---------- fields in this struct
[INFO] [stderr] 17 |     pub max_position_pct: f64,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^
[INFO] [stderr] 18 |     pub max_drawdown_pct: f64,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^
[INFO] [stderr] 19 |     pub min_bankroll: f64,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr] 20 |     pub starting_bankroll: f64,
[INFO] [stderr] 21 |     pub max_exposure: f64,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RiskConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Signal` is never constructed
[INFO] [stderr]   --> src/domain/mod.rs:87:12
[INFO] [stderr]    |
[INFO] [stderr] 87 | pub struct Signal {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `BookLevel` is never constructed
[INFO] [stderr]   --> src/domain/mod.rs:97:12
[INFO] [stderr]    |
[INFO] [stderr] 97 | pub struct BookLevel {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OrderBook` is never constructed
[INFO] [stderr]    --> src/domain/mod.rs:103:12
[INFO] [stderr]     |
[INFO] [stderr] 103 | pub struct OrderBook {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `MarketData` is never used
[INFO] [stderr]    --> src/domain/mod.rs:125:10
[INFO] [stderr]     |
[INFO] [stderr] 125 | pub enum MarketData {
[INFO] [stderr]     |          ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OrderManager` is never constructed
[INFO] [stderr]   --> src/engine/order_manager.rs:13:12
[INFO] [stderr]    |
[INFO] [stderr] 13 | pub struct OrderManager {
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `run`, `handle_signal`, and `cancel_all` are never used
[INFO] [stderr]    --> src/engine/order_manager.rs:22:12
[INFO] [stderr]     |
[INFO] [stderr]  21 | impl OrderManager {
[INFO] [stderr]     | ----------------- associated items in this implementation
[INFO] [stderr]  22 |     pub fn new(
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr]  38 |     pub async fn run(mut self) -> Result<()> {
[INFO] [stderr]     |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr]  61 |     async fn handle_signal(&self, signal: Signal) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 158 |     pub async fn cancel_all(&self) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `config` and `peak_bankroll` are never read
[INFO] [stderr]   --> src/engine/risk.rs:12:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct RiskManager {
[INFO] [stderr]    |            ----------- fields in this struct
[INFO] [stderr] 12 |     config: RiskConfig,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 13 |     peak_bankroll: Arc<RwLock<f64>>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `RiskManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `update_bankroll`, `check_signal`, and `resume` are never used
[INFO] [stderr]    --> src/engine/risk.rs:28:18
[INFO] [stderr]     |
[INFO] [stderr]  17 | impl RiskManager {
[INFO] [stderr]     | ---------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  28 |     pub async fn update_bankroll(&self, current_bankroll: f64) -> bool {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  62 |     pub async fn check_signal(&self, signal: &Signal, current_bankroll: f64, total_exposure: f64) -> Result<bool> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 107 |     pub fn resume(&self) {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `FeedAggregator` is never constructed
[INFO] [stderr]   --> src/feeds.rs:10:12
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub struct FeedAggregator {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `run`, `update_state`, and `run_strategies` are never used
[INFO] [stderr]   --> src/feeds.rs:21:12
[INFO] [stderr]    |
[INFO] [stderr] 20 | impl FeedAggregator {
[INFO] [stderr]    | ------------------- associated items in this implementation
[INFO] [stderr] 21 |     pub fn new(
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 38 |     pub async fn run(mut self) {
[INFO] [stderr]    |                  ^^^
[INFO] [stderr] ...
[INFO] [stderr] 58 |     async fn update_state(&self, event: &MarketData) {
[INFO] [stderr]    |              ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 72 |     async fn run_strategies(&self, event: &MarketData) {
[INFO] [stderr]    |              ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `StrategyContext` is never constructed
[INFO] [stderr]  --> src/strategy/mod.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub struct StrategyContext {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: trait `Strategy` is never used
[INFO] [stderr]   --> src/strategy/mod.rs:32:11
[INFO] [stderr]    |
[INFO] [stderr] 32 | pub trait Strategy: Send + Sync {
[INFO] [stderr]    |           ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `LatencyArbStrategy` is never constructed
[INFO] [stderr]  --> src/strategy/latency_arb.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct LatencyArbStrategy {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `kelly_size` are never used
[INFO] [stderr]   --> src/strategy/latency_arb.rs:25:12
[INFO] [stderr]    |
[INFO] [stderr] 24 | impl LatencyArbStrategy {
[INFO] [stderr]    | ----------------------- associated items in this implementation
[INFO] [stderr] 25 |     pub fn new(
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 46 |     fn kelly_size(&self, confidence: f64, price: f64, bankroll: f64) -> f64 {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `IntraArbStrategy` is never constructed
[INFO] [stderr]  --> src/strategy/intra_arb.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct IntraArbStrategy {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/strategy/intra_arb.rs:16:12
[INFO] [stderr]    |
[INFO] [stderr] 15 | impl IntraArbStrategy {
[INFO] [stderr]    | --------------------- associated function in this implementation
[INFO] [stderr] 16 |     pub fn new(markets: Vec<(String, Vec<String>)>) -> Self {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `polymarket-bot` (bin "bot" test) generated 17 warnings (run `cargo fix --bin "bot" -p polymarket-bot --tests` to apply 2 suggestions)
[INFO] [stderr] warning: `polymarket-bot` (bin "server" test) generated 42 warnings (10 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/bot-cbb3f52fa60bc35f)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/server.rs (/opt/rustwide/target/debug/deps/server-a4acc323f30b0213)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "bdcd83f2029143693dea35bf44ba21b672021662eed9756debb941bc958689e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bdcd83f2029143693dea35bf44ba21b672021662eed9756debb941bc958689e7", kill_on_drop: false }`
[INFO] [stdout] bdcd83f2029143693dea35bf44ba21b672021662eed9756debb941bc958689e7
