[INFO] cloning repository https://github.com/willgdjones/slipstream [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/willgdjones/slipstream" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwillgdjones%2Fslipstream", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwillgdjones%2Fslipstream'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0da98600902f73f09e86cd054db19223fc421fe [INFO] checking willgdjones/slipstream against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwillgdjones%2Fslipstream" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/willgdjones/slipstream [INFO] finished tweaking git repo https://github.com/willgdjones/slipstream [INFO] tweaked toml for git repo https://github.com/willgdjones/slipstream written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/willgdjones/slipstream on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/willgdjones/slipstream 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be9769cecdcd0ec1a2a05381ea545360525b34f72e5ba5bf6b98a6c74128ac28 [INFO] running `Command { std: "docker" "start" "-a" "be9769cecdcd0ec1a2a05381ea545360525b34f72e5ba5bf6b98a6c74128ac28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be9769cecdcd0ec1a2a05381ea545360525b34f72e5ba5bf6b98a6c74128ac28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be9769cecdcd0ec1a2a05381ea545360525b34f72e5ba5bf6b98a6c74128ac28", kill_on_drop: false }` [INFO] [stdout] be9769cecdcd0ec1a2a05381ea545360525b34f72e5ba5bf6b98a6c74128ac28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6282ca0d9f1c4955ca3dbf9d5098c344edad395fc02a76e1e0ec3215feda346f [INFO] running `Command { std: "docker" "start" "-a" "6282ca0d9f1c4955ca3dbf9d5098c344edad395fc02a76e1e0ec3215feda346f", kill_on_drop: false }` [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.13 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking const-hex v1.17.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling syn-solidity v0.8.26 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling erasable v1.3.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Compiling include_dir_macros v0.7.4 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling alloy-sol-macro-input v0.8.26 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling alloy-sol-macro-expander v0.8.26 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking alloy-rlp v0.3.13 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking ruint v1.17.2 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Checking iana-time-zone v0.1.65 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking alloy-primitives v0.8.26 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling include_dir v0.7.4 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking uuid v1.21.0 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking rc-box v1.3.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking takecell v0.1.1 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking alloy-eip2930 v0.1.0 [INFO] [stderr] Checking alloy-serde v0.6.4 [INFO] [stderr] Checking alloy-eip7702 v0.4.2 [INFO] [stderr] Checking alloy-signer v0.6.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Compiling teloxide-macros v0.8.0 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling aquamarine v0.5.0 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking alloy-eips v0.6.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking dptree v0.3.0 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking alloy-consensus v0.6.4 [INFO] [stderr] Compiling alloy-sol-macro v0.8.26 [INFO] [stderr] Checking alloy-sol-types v0.8.26 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking alloy-network-primitives v0.6.4 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking teloxide-core v0.10.1 [INFO] [stderr] Checking alloy-rpc-types-eth v0.6.4 [INFO] [stderr] Checking alloy-json-rpc v0.6.4 [INFO] [stderr] Checking rusqlite v0.32.1 [INFO] [stderr] Checking statrs v0.17.1 [INFO] [stderr] Checking alloy-network v0.6.4 [INFO] [stderr] Checking alloy-signer-local v0.6.4 [INFO] [stderr] Checking teloxide v0.13.0 [INFO] [stderr] Checking slipstream v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/polymarket/api.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{debug, info, warn}; [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: `info` [INFO] [stdout] --> src/risk/manager.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/wallet/signer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/polymarket/api.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{debug, info, warn}; [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: `info` [INFO] [stdout] --> src/risk/manager.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/wallet/signer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/binance/ws.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use futures_util::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloy_signer::Signer` [INFO] [stdout] --> src/wallet/signer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use alloy_signer::Signer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_update_id` is assigned to, but never used [INFO] [stdout] --> src/binance/ws.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | let mut last_update_id = snapshot_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_update_id` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_update_id` is never read [INFO] [stdout] --> src/binance/ws.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | last_update_id = update.final_update_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/binance/ws.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use futures_util::{SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloy_signer::Signer` [INFO] [stdout] --> src/wallet/signer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use alloy_signer::Signer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_update_id` is assigned to, but never used [INFO] [stdout] --> src/binance/ws.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | let mut last_update_id = snapshot_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_update_id` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_update_id` is never read [INFO] [stdout] --> src/binance/ws.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | last_update_id = update.final_update_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let (poly_ws, mut contract_rx, contracts_state) = [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_of_book` [INFO] [stdout] --> src/main.rs:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | let (binance_client, mut price_rx, top_of_book) = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_of_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract_rx` [INFO] [stdout] --> src/main.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let (poly_ws, mut contract_rx, contracts_state) = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trading_cfg` [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | let trading_cfg = cfg.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trading_cfg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `best_bid`, `best_ask`, and `timestamp_ms` are never read [INFO] [stdout] --> src/binance/ws.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TopOfBook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 14 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | pub mid_price: f64, [INFO] [stdout] 17 | pub timestamp_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopOfBook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wallet` is never read [INFO] [stdout] --> src/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub wallet: WalletConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_reprice_lag_secs` and `reprice_lag_window_hours` are never read [INFO] [stdout] --> src/config.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct RiskConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub min_reprice_lag_secs: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub reprice_lag_window_hours: u32, [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: fields `key_path`, `polygon_rpc`, and `chain_id` are never read [INFO] [stdout] --> src/config.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct WalletConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | pub key_path: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 53 | pub polygon_rpc: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub chain_id: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `daily_report_hour_utc` is never read [INFO] [stdout] --> src/config.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct GeneralConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | pub daily_report_hour_utc: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeneralConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/db/trades.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TradeRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub exit_price: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub pnl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | pub entry_divergence: f64, [INFO] [stdout] 19 | pub exit_divergence: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub entry_time: DateTime, [INFO] [stdout] 21 | pub exit_time: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub entry_spot: f64, [INFO] [stdout] 23 | pub exit_spot: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub reprice_lag_ms: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignalRecord` is never constructed [INFO] [stdout] --> src/db/trades.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct SignalRecord { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RepriceLagRecord` is never constructed [INFO] [stdout] --> src/db/trades.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct RepriceLagRecord { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_signal`, `insert_reprice_lag`, and `get_recent_trades` are never used [INFO] [stdout] --> src/db/trades.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl TradeDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn insert_signal(&self, signal: &SignalRecord) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn insert_reprice_lag(&self, record: &RepriceLagRecord) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn get_recent_trades(&self, limit: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fair_value`, `depth_usd`, and `timestamp` are never read [INFO] [stdout] --> src/engine/signal.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Signal { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub fair_value: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub depth_usd: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Signal` 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 `MarketResponse` is never constructed [INFO] [stdout] --> src/polymarket/api.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct MarketResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketData` is never constructed [INFO] [stdout] --> src/polymarket/api.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct MarketData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenData` is never constructed [INFO] [stdout] --> src/polymarket/api.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct TokenData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status` and `error` are never read [INFO] [stdout] --> src/polymarket/api.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct OrderResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 70 | pub id: Option, [INFO] [stdout] 71 | pub status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 72 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_credentials`, `refresh_book`, `cancel_order`, `get_positions`, and `get_balance` are never used [INFO] [stdout] --> src/polymarket/api.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl PolymarketApi { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn set_credentials(&mut self, key: String, secret: String, passphrase: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub async fn refresh_book(&self, contract: &mut super::contracts::Contract) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub async fn get_positions(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | pub async fn get_balance(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_id`, `best_bid`, `best_ask`, `bid_depth_usd`, `ask_depth_usd`, and `timestamp_ms` are never read [INFO] [stdout] --> src/polymarket/ws.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ContractUpdate { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 16 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub bid_depth_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub ask_depth_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub timestamp_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractUpdate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg_type`, `price`, `side`, and `size` are never read [INFO] [stdout] --> src/polymarket/ws.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct WsMessage { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | #[serde(rename = "type")] [INFO] [stdout] 27 | msg_type: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | market: Option, [INFO] [stdout] 29 | price: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | side: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reprice_lag_samples` is never read [INFO] [stdout] --> src/risk/manager.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RiskManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | reprice_lag_samples: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_reprice_lag` is never used [INFO] [stdout] --> src/risk/manager.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl RiskManager { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn record_reprice_lag(&mut self, lag_ms: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily_pnl`, `total_trades`, `winning_trades`, and `win_rate` are never read [INFO] [stdout] --> src/risk/manager.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct RiskStats { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 201 | pub daily_pnl: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 202 | pub total_trades: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 203 | pub winning_trades: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 204 | pub win_rate: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_alert` and `send_trade_notification` are never used [INFO] [stdout] --> src/telegram/reporter.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl TelegramReporter { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub async fn send_alert(&self, alert: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn send_trade_notification(&self, action: &str, question: &str, size: f64, price: f64, pnl: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletSigner` is never constructed [INFO] [stdout] --> src/wallet/signer.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct WalletSigner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_file`, `address`, and `sign_order` are never used [INFO] [stdout] --> src/wallet/signer.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl WalletSigner { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 13 | /// Load wallet from encrypted key file [INFO] [stdout] 14 | pub fn from_file(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn address(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn sign_order( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha3_hash` is never used [INFO] [stdout] --> src/wallet/signer.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn sha3_hash(data: &[u8]) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let (poly_ws, mut contract_rx, contracts_state) = [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_of_book` [INFO] [stdout] --> src/main.rs:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | let (binance_client, mut price_rx, top_of_book) = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_of_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contract_rx` [INFO] [stdout] --> src/main.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let (poly_ws, mut contract_rx, contracts_state) = [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contract_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trading_cfg` [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | let trading_cfg = cfg.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trading_cfg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `best_bid`, `best_ask`, and `timestamp_ms` are never read [INFO] [stdout] --> src/binance/ws.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct TopOfBook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 14 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 16 | pub mid_price: f64, [INFO] [stdout] 17 | pub timestamp_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopOfBook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wallet` is never read [INFO] [stdout] --> src/config.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub wallet: WalletConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_reprice_lag_secs` and `reprice_lag_window_hours` are never read [INFO] [stdout] --> src/config.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct RiskConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub min_reprice_lag_secs: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub reprice_lag_window_hours: u32, [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: fields `key_path`, `polygon_rpc`, and `chain_id` are never read [INFO] [stdout] --> src/config.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct WalletConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | pub key_path: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 53 | pub polygon_rpc: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub chain_id: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WalletConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `daily_report_hour_utc` is never read [INFO] [stdout] --> src/config.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct GeneralConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | pub daily_report_hour_utc: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeneralConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/db/trades.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TradeRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub exit_price: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub pnl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | pub entry_divergence: f64, [INFO] [stdout] 19 | pub exit_divergence: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub entry_time: DateTime, [INFO] [stdout] 21 | pub exit_time: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub entry_spot: f64, [INFO] [stdout] 23 | pub exit_spot: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub reprice_lag_ms: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignalRecord` is never constructed [INFO] [stdout] --> src/db/trades.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct SignalRecord { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RepriceLagRecord` is never constructed [INFO] [stdout] --> src/db/trades.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct RepriceLagRecord { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_signal`, `insert_reprice_lag`, and `get_recent_trades` are never used [INFO] [stdout] --> src/db/trades.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl TradeDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn insert_signal(&self, signal: &SignalRecord) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn insert_reprice_lag(&self, record: &RepriceLagRecord) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn get_recent_trades(&self, limit: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fair_value`, `depth_usd`, and `timestamp` are never read [INFO] [stdout] --> src/engine/signal.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Signal { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub fair_value: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub depth_usd: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Signal` 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 `MarketResponse` is never constructed [INFO] [stdout] --> src/polymarket/api.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct MarketResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketData` is never constructed [INFO] [stdout] --> src/polymarket/api.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct MarketData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenData` is never constructed [INFO] [stdout] --> src/polymarket/api.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct TokenData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status` and `error` are never read [INFO] [stdout] --> src/polymarket/api.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct OrderResponse { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 70 | pub id: Option, [INFO] [stdout] 71 | pub status: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 72 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_credentials`, `refresh_book`, `cancel_order`, `get_positions`, and `get_balance` are never used [INFO] [stdout] --> src/polymarket/api.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl PolymarketApi { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn set_credentials(&mut self, key: String, secret: String, passphrase: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub async fn refresh_book(&self, contract: &mut super::contracts::Contract) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub async fn get_positions(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 388 | pub async fn get_balance(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_id`, `best_bid`, `best_ask`, `bid_depth_usd`, `ask_depth_usd`, and `timestamp_ms` are never read [INFO] [stdout] --> src/polymarket/ws.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ContractUpdate { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 16 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub bid_depth_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub ask_depth_usd: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub timestamp_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractUpdate` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `msg_type`, `price`, `side`, and `size` are never read [INFO] [stdout] --> src/polymarket/ws.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct WsMessage { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 26 | #[serde(rename = "type")] [INFO] [stdout] 27 | msg_type: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | market: Option, [INFO] [stdout] 29 | price: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | side: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | size: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WsMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reprice_lag_samples` is never read [INFO] [stdout] --> src/risk/manager.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RiskManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | reprice_lag_samples: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_reprice_lag` is never used [INFO] [stdout] --> src/risk/manager.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl RiskManager { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn record_reprice_lag(&mut self, lag_ms: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily_pnl`, `total_trades`, `winning_trades`, and `win_rate` are never read [INFO] [stdout] --> src/risk/manager.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct RiskStats { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 201 | pub daily_pnl: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 202 | pub total_trades: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 203 | pub winning_trades: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 204 | pub win_rate: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `send_alert` and `send_trade_notification` are never used [INFO] [stdout] --> src/telegram/reporter.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl TelegramReporter { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub async fn send_alert(&self, alert: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn send_trade_notification(&self, action: &str, question: &str, size: f64, price: f64, pnl: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletSigner` is never constructed [INFO] [stdout] --> src/wallet/signer.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct WalletSigner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_file`, `address`, and `sign_order` are never used [INFO] [stdout] --> src/wallet/signer.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl WalletSigner { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 13 | /// Load wallet from encrypted key file [INFO] [stdout] 14 | pub fn from_file(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn address(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn sign_order( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha3_hash` is never used [INFO] [stdout] --> src/wallet/signer.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn sha3_hash(data: &[u8]) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "6282ca0d9f1c4955ca3dbf9d5098c344edad395fc02a76e1e0ec3215feda346f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6282ca0d9f1c4955ca3dbf9d5098c344edad395fc02a76e1e0ec3215feda346f", kill_on_drop: false }` [INFO] [stdout] 6282ca0d9f1c4955ca3dbf9d5098c344edad395fc02a76e1e0ec3215feda346f