[INFO] cloning repository https://github.com/Foruse959/polybot_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Foruse959/polybot_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForuse959%2Fpolybot_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForuse959%2Fpolybot_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 85dd2b417909998e88289c66ad88ddb7090f8d7d [INFO] checking Foruse959/polybot_rust against master#c290daa1e5274a52e54a0f49e31bd70192abc606 for pr-133502-23 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForuse959%2Fpolybot_rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Foruse959/polybot_rust [INFO] finished tweaking git repo https://github.com/Foruse959/polybot_rust [INFO] tweaked toml for git repo https://github.com/Foruse959/polybot_rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Foruse959/polybot_rust on toolchain c290daa1e5274a52e54a0f49e31bd70192abc606 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Foruse959/polybot_rust 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" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/Polymarket/rs-clob-client-v2` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_html_form v0.4.0 [INFO] [stderr] Downloaded bon v3.9.1 [INFO] [stderr] Downloaded rust_decimal_macros v1.40.0 [INFO] [stderr] Downloaded alloy v1.8.3 [INFO] [stderr] Downloaded alloy-rpc-types-any v1.8.3 [INFO] [stderr] Downloaded konst_macro_rules v0.2.19 [INFO] [stderr] Downloaded bon-macros v3.9.1 [INFO] [stderr] Downloaded alloy-eip2930 v0.2.3 [INFO] [stderr] Downloaded alloy-rlp-derive v0.3.15 [INFO] [stderr] Downloaded keccak-asm v0.1.7 [INFO] [stderr] Downloaded alloy-rlp v0.3.15 [INFO] [stderr] Downloaded alloy-tx-macros v1.8.3 [INFO] [stderr] Downloaded macro-string v0.2.0 [INFO] [stderr] Downloaded alloy-trie v0.9.5 [INFO] [stderr] Downloaded keccak v0.2.0 [INFO] [stderr] Downloaded alloy-sol-type-parser v1.6.0 [INFO] [stderr] Downloaded alloy-signer v1.8.3 [INFO] [stderr] Downloaded alloy-sol-macro-input v1.6.0 [INFO] [stderr] Downloaded alloy-network-primitives v1.8.3 [INFO] [stderr] Downloaded alloy-eip7702 v0.6.3 [INFO] [stderr] Downloaded alloy-consensus-any v1.8.3 [INFO] [stderr] Downloaded alloy-core v1.6.0 [INFO] [stderr] Downloaded alloy-eip7928 v0.3.7 [INFO] [stderr] Downloaded alloy-serde v1.8.3 [INFO] [stderr] Downloaded alloy-json-abi v1.6.0 [INFO] [stderr] Downloaded const-hex v1.19.0 [INFO] [stderr] Downloaded alloy-transport-http v1.8.3 [INFO] [stderr] Downloaded alloy-json-rpc v1.8.3 [INFO] [stderr] Downloaded alloy-sol-macro v1.6.0 [INFO] [stderr] Downloaded alloy-transport v1.8.3 [INFO] [stderr] Downloaded alloy-signer-local v1.8.3 [INFO] [stderr] Downloaded syn-solidity v1.6.0 [INFO] [stderr] Downloaded alloy-sol-macro-expander v1.6.0 [INFO] [stderr] Downloaded alloy-rpc-client v1.8.3 [INFO] [stderr] Downloaded alloy-chains v0.2.34 [INFO] [stderr] Downloaded rapidhash v4.4.1 [INFO] [stderr] Downloaded alloy-network v1.8.3 [INFO] [stderr] Downloaded nybbles v0.4.8 [INFO] [stderr] Downloaded alloy-sol-types v1.6.0 [INFO] [stderr] Downloaded alloy-dyn-abi v1.6.0 [INFO] [stderr] Downloaded const_format v0.2.36 [INFO] [stderr] Downloaded konst v0.2.20 [INFO] [stderr] Downloaded alloy-primitives v1.6.0 [INFO] [stderr] Downloaded alloy-rpc-types-eth v1.8.3 [INFO] [stderr] Downloaded ruint v1.18.0 [INFO] [stderr] Downloaded alloy-consensus v1.8.3 [INFO] [stderr] Downloaded alloy-provider v1.8.3 [INFO] [stderr] Downloaded alloy-eips v1.8.3 [INFO] [stderr] Downloaded sha3-asm v0.1.7 [INFO] [stderr] Downloaded sha3 v0.11.0 [INFO] [stderr] Downloaded c-kzg v2.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c [INFO] running `Command { std: "docker" "start" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c" "/opt/rustwide/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c" "/opt/rustwide/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking typenum v1.20.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling unicode-segmentation v1.13.2 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Checking keccak v0.2.0 [INFO] [stderr] Checking rustc-hash v2.1.2 [INFO] [stderr] Checking hashbrown v0.17.1 [INFO] [stderr] Checking const-hex v1.19.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling aws-lc-rs v1.17.0 [INFO] [stderr] Checking zerocopy v0.8.48 [INFO] [stderr] Checking aws-lc-sys v0.41.0 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Compiling openssl-sys v0.9.116 [INFO] [stderr] Checking winnow v1.0.3 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling phf_shared v0.13.1 [INFO] [stderr] Checking futures-utils-wasm v0.1.0 [INFO] [stderr] Compiling fastrand v2.4.1 [INFO] [stderr] Compiling rust_decimal v1.42.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling phf_generator v0.13.1 [INFO] [stderr] Checking siphasher v1.0.3 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Checking hybrid-array v0.4.12 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling openssl v0.10.80 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking chacha20 v0.10.0 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Checking uuid v1.23.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Checking rand v0.10.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking crypto-common v0.2.2 [INFO] [stderr] Checking block-buffer v0.12.0 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking rustls-webpki v0.103.13 [INFO] [stderr] Checking serde_html_form v0.4.0 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling digest v0.11.3 [INFO] [stderr] Compiling sha3 v0.11.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling syn-solidity v1.6.0 [INFO] [stderr] Compiling macro-string v0.2.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.15 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking rand v0.9.4 [INFO] [stderr] Compiling phf_macros v0.13.1 [INFO] [stderr] Checking rustls-platform-verifier v0.7.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking zerofrom v0.1.8 [INFO] [stderr] Compiling strum_macros v0.28.0 [INFO] [stderr] Checking yoke v0.8.2 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Checking zerotrie v0.2.4 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking phf v0.13.1 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling serde_with_macros v3.20.0 [INFO] [stderr] Compiling alloy-tx-macros v1.8.3 [INFO] [stderr] Compiling bon-macros v3.9.1 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.16.0 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking alloy-sol-type-parser v1.6.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking secrecy v0.10.3 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Compiling alloy-sol-macro-input v1.6.0 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking dashmap v6.2.1 [INFO] [stderr] Compiling alloy-sol-macro-expander v1.6.0 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking alloy-rlp v0.3.15 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking tokio v1.52.3 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking ruint v1.18.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking tungstenite v0.29.0 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking serde_with v3.20.0 [INFO] [stderr] Checking alloy-primitives v1.6.0 [INFO] [stderr] Checking nybbles v0.4.8 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking alloy-eip2124 v0.2.0 [INFO] [stderr] Checking alloy-serde v1.8.3 [INFO] [stderr] Checking alloy-eip7928 v0.3.7 [INFO] [stderr] Checking alloy-eip2930 v0.2.3 [INFO] [stderr] Checking alloy-eip7702 v0.6.3 [INFO] [stderr] Checking alloy-trie v0.9.5 [INFO] [stderr] Checking alloy-signer v1.8.3 [INFO] [stderr] Checking alloy-json-abi v1.6.0 [INFO] [stderr] Checking bon v3.9.1 [INFO] [stderr] Compiling alloy-sol-macro v1.6.0 [INFO] [stderr] Checking alloy-sol-types v1.6.0 [INFO] [stderr] Checking alloy-eips v1.8.3 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.29.0 [INFO] [stderr] Checking tower-http v0.6.11 [INFO] [stderr] Checking alloy-consensus v1.8.3 [INFO] [stderr] Checking h2 v0.4.14 [INFO] [stderr] Checking alloy-json-rpc v1.8.3 [INFO] [stderr] Checking alloy-dyn-abi v1.6.0 [INFO] [stderr] Checking alloy-core v1.6.0 [INFO] [stderr] Checking alloy-consensus-any v1.8.3 [INFO] [stderr] Checking alloy-network-primitives v1.8.3 [INFO] [stderr] Checking alloy-rpc-types-eth v1.8.3 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking alloy-rpc-types-any v1.8.3 [INFO] [stderr] Checking alloy-network v1.8.3 [INFO] [stderr] Checking alloy-signer-local v1.8.3 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking alloy v1.8.3 [INFO] [stderr] Checking reqwest v0.13.3 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking polymarket_client_sdk_v2 v0.6.0-canary.1 (https://github.com/Polymarket/rs-clob-client-v2#8ba50087) [INFO] [stderr] Checking polybot_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Timelike` [INFO] [stdout] --> src/data/gamma.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{Utc, Timelike}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/data/gamma.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{info, debug, warn}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/data/clob.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderResult` [INFO] [stdout] --> src/trading/executor.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::data::clob::{ClobClient, OrderResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::info` [INFO] [stdout] --> src/trading/risk.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tracing::info; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Timelike` [INFO] [stdout] --> src/data/gamma.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{Utc, Timelike}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/data/gamma.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use tracing::{info, debug, warn}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/data/clob.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrderResult` [INFO] [stdout] --> src/trading/executor.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::data::clob::{ClobClient, OrderResult}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::info` [INFO] [stdout] --> src/trading/risk.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tracing::info; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/data/ws.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn start(mut self) -> Result<()> { [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: variable does not need to be mutable [INFO] [stdout] --> src/data/ws.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn start(mut self) -> Result<()> { [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: variable does not need to be mutable [INFO] [stdout] --> src/trading/executor.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | if let Some(mut pos) = self.open_positions.remove(&id) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/trading/executor.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | if let Some(mut pos) = self.open_positions.remove(&id) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/data/clob.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | token_id: &str, [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: unused variable: `token_id` [INFO] [stdout] --> src/data/clob.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | token_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/data/clob.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | token_id: &str, [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: unused variable: `token_id` [INFO] [stdout] --> src/data/clob.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | token_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/data/clob.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | token_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/data/clob.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | token_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_token` [INFO] [stdout] --> src/strategies/pair_arb.rs:72:36 [INFO] [stdout] | [INFO] [stdout] 72 | let (first_token, first_price, second_token, second_price, first_dir) = [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_price` [INFO] [stdout] --> src/strategies/pair_arb.rs:72:50 [INFO] [stdout] | [INFO] [stdout] 72 | let (first_token, first_price, second_token, second_price, first_dir) = [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_token` [INFO] [stdout] --> src/strategies/pair_arb.rs:72:36 [INFO] [stdout] | [INFO] [stdout] 72 | let (first_token, first_price, second_token, second_price, first_dir) = [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_price` [INFO] [stdout] --> src/strategies/pair_arb.rs:72:50 [INFO] [stdout] | [INFO] [stdout] 72 | let (first_token, first_price, second_token, second_price, first_dir) = [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/trading/executor.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/trading/executor.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut depeg_guard = DePegGuard::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut depeg_guard = DePegGuard::new(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | pub trading_mode: String, // "live" or "paper" [INFO] [stdout] 10 | pub private_key: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | pub proxy_wallet: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | pub signature_type: u8, // 3 for V2 accounts [INFO] [stdout] 13 | pub api_key: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub api_secret: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub passphrase: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub min_order_size: f64, // $1.00 for FOK [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub clob_url: String, [INFO] [stdout] 21 | pub gamma_url: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub chain_id: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_live` is never used [INFO] [stdout] --> src/config.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn is_live(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_id` is never read [INFO] [stdout] --> src/data/clob.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Orderbook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 32 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mid_price` is never used [INFO] [stdout] --> src/data/clob.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 48 | impl ClobClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub async fn get_mid_price(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `bid`, `ask`, `mid`, and `timestamp` are never read [INFO] [stdout] --> src/data/ws.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PriceTick { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub bid: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | pub ask: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub mid: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | pub timestamp: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceTick` 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 `valid_ticks` and `warmup_complete` are never read [INFO] [stdout] --> src/data/ws.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WsManager { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | valid_ticks: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | warmup_complete: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_warmed_up` and `get_price` are never used [INFO] [stdout] --> src/data/ws.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl WsManager { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_warmed_up(&self, coin: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn get_price(&self, coin: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rationale`, `agreement_count`, and `conviction_tier` are never read [INFO] [stdout] --> src/strategies/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Signal { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | pub rationale: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub agreement_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub conviction_tier: String, [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: constant `MIN_PROFIT_BPS` is never used [INFO] [stdout] --> src/strategies/pair_arb.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const MIN_PROFIT_BPS: f64 = 400.0; // 4% minimum (covers 3.125% fee + 0.875% profit) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_CONSECUTIVE_TICKS` is never used [INFO] [stdout] --> src/strategies/tick_momentum.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const MIN_CONSECUTIVE_TICKS: u32 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_TICK_MOVE` is never used [INFO] [stdout] --> src/strategies/tick_momentum.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const MIN_TICK_MOVE: f64 = 0.005; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_TOTAL_MOVE_PCT` is never used [INFO] [stdout] --> src/strategies/tick_momentum.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | const MIN_TOTAL_MOVE_PCT: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | pub trading_mode: String, // "live" or "paper" [INFO] [stdout] 10 | pub private_key: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | pub proxy_wallet: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | pub signature_type: u8, // 3 for V2 accounts [INFO] [stdout] 13 | pub api_key: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub api_secret: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub passphrase: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub min_order_size: f64, // $1.00 for FOK [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub clob_url: String, [INFO] [stdout] 21 | pub gamma_url: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub chain_id: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_live` is never used [INFO] [stdout] --> src/config.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn is_live(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `strategy`, `size_pusd`, `peak_pnl_pct`, and `market_close_time` are never read [INFO] [stdout] --> src/trading/executor.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub strategy: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub size_pusd: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub peak_pnl_pct: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub opened_at: Instant, [INFO] [stdout] 35 | pub market_close_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_price` is never used [INFO] [stdout] --> src/trading/executor.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 39 | pub fn update_price(&mut self, price: f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `closed_trades` is never read [INFO] [stdout] --> src/trading/executor.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Executor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 66 | pub open_positions: HashMap, [INFO] [stdout] 67 | pub closed_trades: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `max_balance`, `min_agreement`, and `max_positions` are never read [INFO] [stdout] --> src/trading/risk.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Tier { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | pub name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub min_balance: f64, [INFO] [stdout] 13 | pub max_balance: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | pub min_confidence: f64, [INFO] [stdout] 15 | pub min_agreement: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub max_positions: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tier` 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 `peak_balance`, `total_pnl`, `wins`, `losses`, and `open_positions` are never read [INFO] [stdout] --> src/trading/risk.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct RiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 40 | pub balance: f64, [INFO] [stdout] 41 | pub peak_balance: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 42 | pub total_pnl: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 43 | pub wins: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | pub losses: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | pub open_positions: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_trade` and `drawdown_pct` are never used [INFO] [stdout] --> src/trading/risk.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn can_trade(&self, confidence: f64, agreement: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn drawdown_pct(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `binance_price`, `coinbase_price`, and `last_check` are never read [INFO] [stdout] --> src/trading/guards.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct DePegGuard { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | pub binance_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub coinbase_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub last_check: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/trading/guards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl DePegGuard { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn update(&mut self, binance: f64, coinbase: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mismatches_found` is never read [INFO] [stdout] --> src/trading/guards.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct DriftReconciler { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 152 | pub mismatches_found: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_id` is never read [INFO] [stdout] --> src/data/clob.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Orderbook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 32 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mid_price` is never used [INFO] [stdout] --> src/data/clob.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 48 | impl ClobClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 113 | pub async fn get_mid_price(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `bid`, `ask`, `mid`, and `timestamp` are never read [INFO] [stdout] --> src/data/ws.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PriceTick { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | pub coin: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub bid: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | pub ask: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub mid: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | pub timestamp: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceTick` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_mismatch` is never used [INFO] [stdout] --> src/trading/guards.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl DriftReconciler { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn record_mismatch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `valid_ticks` and `warmup_complete` are never read [INFO] [stdout] --> src/data/ws.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WsManager { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | valid_ticks: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | warmup_complete: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_warmed_up` and `get_price` are never used [INFO] [stdout] --> src/data/ws.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl WsManager { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_warmed_up(&self, coin: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn get_price(&self, coin: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rationale`, `agreement_count`, and `conviction_tier` are never read [INFO] [stdout] --> src/strategies/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Signal { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | pub rationale: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub agreement_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub conviction_tier: String, [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: constant `MIN_PROFIT_BPS` is never used [INFO] [stdout] --> src/strategies/pair_arb.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const MIN_PROFIT_BPS: f64 = 400.0; // 4% minimum (covers 3.125% fee + 0.875% profit) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_CONSECUTIVE_TICKS` is never used [INFO] [stdout] --> src/strategies/tick_momentum.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const MIN_CONSECUTIVE_TICKS: u32 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_TICK_MOVE` is never used [INFO] [stdout] --> src/strategies/tick_momentum.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const MIN_TICK_MOVE: f64 = 0.005; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_TOTAL_MOVE_PCT` is never used [INFO] [stdout] --> src/strategies/tick_momentum.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | const MIN_TOTAL_MOVE_PCT: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `strategy`, `size_pusd`, `peak_pnl_pct`, and `market_close_time` are never read [INFO] [stdout] --> src/trading/executor.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub strategy: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub size_pusd: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub peak_pnl_pct: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | pub opened_at: Instant, [INFO] [stdout] 35 | pub market_close_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_price` is never used [INFO] [stdout] --> src/trading/executor.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 39 | pub fn update_price(&mut self, price: f64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `closed_trades` is never read [INFO] [stdout] --> src/trading/executor.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Executor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 66 | pub open_positions: HashMap, [INFO] [stdout] 67 | pub closed_trades: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `max_balance`, `min_agreement`, and `max_positions` are never read [INFO] [stdout] --> src/trading/risk.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Tier { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | pub name: &'static str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub min_balance: f64, [INFO] [stdout] 13 | pub max_balance: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | pub min_confidence: f64, [INFO] [stdout] 15 | pub min_agreement: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub max_positions: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tier` 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 `peak_balance`, `total_pnl`, `wins`, `losses`, and `open_positions` are never read [INFO] [stdout] --> src/trading/risk.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct RiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 40 | pub balance: f64, [INFO] [stdout] 41 | pub peak_balance: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 42 | pub total_pnl: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 43 | pub wins: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | pub losses: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | pub open_positions: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_trade` and `drawdown_pct` are never used [INFO] [stdout] --> src/trading/risk.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn can_trade(&self, confidence: f64, agreement: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn drawdown_pct(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `binance_price`, `coinbase_price`, and `last_check` are never read [INFO] [stdout] --> src/trading/guards.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct DePegGuard { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 19 | pub binance_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub coinbase_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub last_check: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/trading/guards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl DePegGuard { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn update(&mut self, binance: f64, coinbase: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mismatches_found` is never read [INFO] [stdout] --> src/trading/guards.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct DriftReconciler { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 152 | pub mismatches_found: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_mismatch` is never used [INFO] [stdout] --> src/trading/guards.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl DriftReconciler { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn record_mismatch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c", kill_on_drop: false }` [INFO] [stdout] 809091a6900c2bff5b21d75e18cbb598775db5b36f8feb3ca394c13aeb32582c