[INFO] cloning repository https://github.com/gtajoe2014-png/Openpoly [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gtajoe2014-png/Openpoly" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FOpenpoly", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FOpenpoly'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c45b644e0205c163cc8b45b59140b2ccda84556 [INFO] checking gtajoe2014-png/Openpoly against try#ac4c3613be2acd5395b65d85e5657b81e3c982f0 for pr-154585 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FOpenpoly" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gtajoe2014-png/Openpoly [INFO] finished tweaking git repo https://github.com/gtajoe2014-png/Openpoly [INFO] tweaked toml for git repo https://github.com/gtajoe2014-png/Openpoly written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gtajoe2014-png/Openpoly on toolchain ac4c3613be2acd5395b65d85e5657b81e3c982f0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gtajoe2014-png/Openpoly 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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasmtimer v0.4.3 [INFO] [stderr] Downloaded rust_decimal_macros v1.40.0 [INFO] [stderr] Downloaded ws_stream_wasm v0.7.5 [INFO] [stderr] Downloaded enable-ansi-support v0.2.1 [INFO] [stderr] Downloaded alloy-transport v0.8.3 [INFO] [stderr] Downloaded alloy-rlp v0.3.13 [INFO] [stderr] Downloaded alloy-rlp-derive v0.3.13 [INFO] [stderr] Downloaded keccak-asm v0.1.5 [INFO] [stderr] Downloaded alloy v0.8.3 [INFO] [stderr] Downloaded enum-ordinalize-derive v4.3.2 [INFO] [stderr] Downloaded alloy-core v0.8.26 [INFO] [stderr] Downloaded alloy-consensus-any v0.8.3 [INFO] [stderr] Downloaded alloy-sol-type-parser v0.8.26 [INFO] [stderr] Downloaded alloy-rpc-types v0.8.3 [INFO] [stderr] Downloaded alloy-contract v0.8.3 [INFO] [stderr] Downloaded alloy-dyn-abi v0.8.26 [INFO] [stderr] Downloaded syn-solidity v0.8.26 [INFO] [stderr] Downloaded alloy-provider v0.8.3 [INFO] [stderr] Downloaded alloy-consensus v0.8.3 [INFO] [stderr] Downloaded interprocess v2.4.0 [INFO] [stderr] Downloaded ruint v1.17.2 [INFO] [stderr] Downloaded alloy-rpc-types-eth v0.8.3 [INFO] [stderr] Downloaded alloy-primitives v0.8.26 [INFO] [stderr] Downloaded alloy-json-abi v0.8.26 [INFO] [stderr] Downloaded alloy-rpc-client v0.8.3 [INFO] [stderr] Downloaded proptest v1.10.0 [INFO] [stderr] Downloaded alloy-rpc-types-engine v0.8.3 [INFO] [stderr] Downloaded alloy-sol-macro-expander v0.8.26 [INFO] [stderr] Downloaded alloy-genesis v0.8.3 [INFO] [stderr] Downloaded blst v0.3.16 [INFO] [stderr] Downloaded alloy-sol-macro v0.8.26 [INFO] [stderr] Downloaded alloy-network-primitives v0.8.3 [INFO] [stderr] Downloaded alloy-transport-ipc v0.8.3 [INFO] [stderr] Downloaded const-hex v1.18.0 [INFO] [stderr] Downloaded alloy-sol-types v0.8.26 [INFO] [stderr] Downloaded sha3-asm v0.1.5 [INFO] [stderr] Downloaded alloy-serde v0.8.3 [INFO] [stderr] Downloaded alloy-network v0.8.3 [INFO] [stderr] Downloaded alloy-signer-local v0.8.3 [INFO] [stderr] Downloaded alloy-eips v0.8.3 [INFO] [stderr] Downloaded alloy-transport-http v0.8.3 [INFO] [stderr] Downloaded alloy-pubsub v0.8.3 [INFO] [stderr] Downloaded alloy-sol-macro-input v0.8.26 [INFO] [stderr] Downloaded alloy-rpc-types-any v0.8.3 [INFO] [stderr] Downloaded alloy-eip7702 v0.4.2 [INFO] [stderr] Downloaded enum-ordinalize v4.3.2 [INFO] [stderr] Downloaded alloy-json-rpc v0.8.3 [INFO] [stderr] Downloaded alloy-transport-ws v0.8.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e63384d7b9e6d0d47403a6608bfb45821b38ea0e400c228fcc9d0d91e84ce58 [INFO] running `Command { std: "docker" "start" "-a" "3e63384d7b9e6d0d47403a6608bfb45821b38ea0e400c228fcc9d0d91e84ce58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e63384d7b9e6d0d47403a6608bfb45821b38ea0e400c228fcc9d0d91e84ce58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e63384d7b9e6d0d47403a6608bfb45821b38ea0e400c228fcc9d0d91e84ce58", kill_on_drop: false }` [INFO] [stdout] 3e63384d7b9e6d0d47403a6608bfb45821b38ea0e400c228fcc9d0d91e84ce58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 22411184a37a11e69d8a86faab2f5cb645aeae7f6f82dac4b4d732617fd7e343 [INFO] running `Command { std: "docker" "start" "-a" "22411184a37a11e69d8a86faab2f5cb645aeae7f6f82dac4b4d732617fd7e343", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking const-hex v1.18.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling blst v0.3.16 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling zerocopy v0.8.40 [INFO] [stderr] Compiling c-kzg v1.0.3 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking bimap v0.6.3 [INFO] [stderr] Compiling ruint v1.17.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling doctest-file v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling syn-solidity v0.8.26 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking siphasher v1.0.2 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Checking phf_shared v0.12.1 [INFO] [stderr] Checking enable-ansi-support v0.2.1 [INFO] [stderr] Checking phf v0.12.1 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.13 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling alloy-sol-type-parser v0.8.26 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking alloy-rlp v0.3.13 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling alloy-primitives v0.8.26 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking nybbles v0.3.4 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Compiling alloy-json-abi v0.8.26 [INFO] [stderr] Checking alloy-eip7702 v0.4.2 [INFO] [stderr] Checking alloy-serde v0.8.3 [INFO] [stderr] Checking alloy-eip2930 v0.1.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking alloy-trie v0.7.9 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking alloy-eips v0.8.3 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling alloy-sol-macro-input v0.8.26 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking alloy-consensus v0.8.3 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking webpki-roots v1.0.6 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling alloy-sol-macro-expander v0.8.26 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking alloy-consensus-any v0.8.3 [INFO] [stderr] Checking alloy-network-primitives v0.8.3 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking alloy-signer v0.8.3 [INFO] [stderr] Checking interprocess v2.4.0 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Checking num_enum v0.7.5 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking schnellru v0.2.4 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Compiling alloy-sol-macro v0.8.26 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking alloy-sol-types v0.8.26 [INFO] [stderr] Checking alloy-chains v0.1.69 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking alloy-json-rpc v0.8.3 [INFO] [stderr] Checking alloy-rpc-types-eth v0.8.3 [INFO] [stderr] Checking alloy-dyn-abi v0.8.26 [INFO] [stderr] Checking alloy-transport v0.8.3 [INFO] [stderr] Checking alloy-pubsub v0.8.3 [INFO] [stderr] Checking alloy-transport-http v0.8.3 [INFO] [stderr] Checking alloy-core v0.8.26 [INFO] [stderr] Checking alloy-transport-ipc v0.8.3 [INFO] [stderr] Checking alloy-transport-ws v0.8.3 [INFO] [stderr] Checking alloy-rpc-client v0.8.3 [INFO] [stderr] Checking alloy-rpc-types-any v0.8.3 [INFO] [stderr] Checking alloy-rpc-types v0.8.3 [INFO] [stderr] Checking alloy-network v0.8.3 [INFO] [stderr] Checking alloy-provider v0.8.3 [INFO] [stderr] Checking alloy-signer-local v0.8.3 [INFO] [stderr] Checking alloy-contract v0.8.3 [INFO] [stderr] Checking alloy v0.8.3 [INFO] [stderr] Checking polymarket-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `find_asset_market` [INFO] [stdout] --> src/main.rs:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | find_all_asset_markets, find_asset_market, find_btc_market, find_next_asset_market, find_next_btc_market, is_expired, ASSETS, [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: `find_asset_market` [INFO] [stdout] --> src/main.rs:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | find_all_asset_markets, find_asset_market, find_btc_market, find_next_asset_market, find_next_btc_market, is_expired, ASSETS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/client.rs:813:13 [INFO] [stdout] | [INFO] [stdout] 813 | let tag = &token_id[..token_id.len().min(12)]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/client.rs:813:13 [INFO] [stdout] | [INFO] [stdout] 813 | let tag = &token_id[..token_id.len().min(12)]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `down_labels` [INFO] [stdout] --> src/streak.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let down_labels = ["down", "no", "lower", "below"]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_down_labels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `down_idx` [INFO] [stdout] --> src/streak.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let (up_idx, down_idx) = if names.len() >= 2 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_down_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `down_labels` [INFO] [stdout] --> src/streak.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let down_labels = ["down", "no", "lower", "below"]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_down_labels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `down_idx` [INFO] [stdout] --> src/streak.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let (up_idx, down_idx) = if names.len() >= 2 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_down_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHAIN_ID_AMOY` is never used [INFO] [stdout] --> src/auth.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const CHAIN_ID_AMOY: u64 = 80002; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `now_unix` is never used [INFO] [stdout] --> src/client.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn now_unix() -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FillState` is never used [INFO] [stdout] --> src/client.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum FillState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mid_price`, `market_buy`, `market_buy_smart`, `wait_for_fill_state`, `cancel_and_wait_state`, and `wallet_positions` are never used [INFO] [stdout] --> src/client.rs:247:18 [INFO] [stdout] | [INFO] [stdout] 64 | impl ClobClient { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub async fn mid_price(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 680 | pub async fn market_buy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 694 | pub async fn market_buy_smart( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 972 | async fn wait_for_fill_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 999 | async fn cancel_and_wait_state(&mut self, order_id: &str, timeout_ms: u64) -> (FillState, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1232 | pub async fn wallet_positions(&self, limit: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `amount_dp` is never read [INFO] [stdout] --> src/client.rs:1481:5 [INFO] [stdout] | [INFO] [stdout] 1478 | struct RoundConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1481 | amount_dp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoundConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_up` is never used [INFO] [stdout] --> src/client.rs:1522:4 [INFO] [stdout] | [INFO] [stdout] 1522 | fn round_up(v: Decimal, dp: u32) -> Decimal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decimal_places` is never used [INFO] [stdout] --> src/client.rs:1526:4 [INFO] [stdout] | [INFO] [stdout] 1526 | fn decimal_places(v: Decimal) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_fee_bps_value` is never used [INFO] [stdout] --> src/client.rs:1531:4 [INFO] [stdout] | [INFO] [stdout] 1531 | fn parse_fee_bps_value(v: &Value, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decimal_from_json` is never used [INFO] [stdout] --> src/client.rs:1603:4 [INFO] [stdout] | [INFO] [stdout] 1603 | fn decimal_from_json(v: Option<&Value>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matched_shares_from_order` is never used [INFO] [stdout] --> src/client.rs:1620:4 [INFO] [stdout] | [INFO] [stdout] 1620 | fn matched_shares_from_order(order: &Value) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `order_status_from_value` is never used [INFO] [stdout] --> src/client.rs:1641:4 [INFO] [stdout] | [INFO] [stdout] 1641 | fn order_status_from_value(order: &Value) -> FillState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `smart_buy_status` is never used [INFO] [stdout] --> src/client.rs:1654:4 [INFO] [stdout] | [INFO] [stdout] 1654 | fn smart_buy_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `outcome`, `orig_size`, `orig_price`, and `orig_usdc` are never read [INFO] [stdout] --> src/copytrade.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CopyTrade { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub timestamp: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub outcome: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | /// Original trade size in shares. [INFO] [stdout] 29 | pub orig_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | /// Original trade price (0–1). [INFO] [stdout] 31 | pub orig_price: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | /// Original trade value in USDC. [INFO] [stdout] 33 | pub orig_usdc: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CopyTrade` 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 `poll`, `should_stop`, and `reset` are never used [INFO] [stdout] --> src/copytrade.rs:527:18 [INFO] [stdout] | [INFO] [stdout] 190 | impl CopyTrader { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 527 | pub async fn poll(&mut self, http: &reqwest::Client) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 670 | pub fn should_stop(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 676 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `asset_by_name` is never used [INFO] [stdout] --> src/markets.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn asset_by_name(name: &str) -> Option<&'static AssetProfile> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_best_market` is never used [INFO] [stdout] --> src/markets.rs:466:4 [INFO] [stdout] | [INFO] [stdout] 466 | fn select_best_market( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_fresh` is never used [INFO] [stdout] --> src/markets.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | pub async fn ensure_fresh(http: &reqwest::Client, market: &mut Market) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BtcTicker` is never used [INFO] [stdout] --> src/oracle.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | pub type BtcTicker = AssetTicker; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `price_at` is never used [INFO] [stdout] --> src/oracle.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl AssetTicker { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn price_at(&self, ms_ago: i64) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unsubscribe` is never constructed [INFO] [stdout] --> src/prices.rs:493:5 [INFO] [stdout] | [INFO] [stdout] 491 | pub enum WsCommand { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 492 | Subscribe(Vec), [INFO] [stdout] 493 | Unsubscribe(Vec), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_bids` is never used [INFO] [stdout] --> src/prices.rs:563:14 [INFO] [stdout] | [INFO] [stdout] 563 | pub async fn get_bids(prices: &PriceMap, token_a: &str, token_b: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all` is never used [INFO] [stdout] --> src/prices.rs:583:14 [INFO] [stdout] | [INFO] [stdout] 583 | pub async fn get_all(prices: &PriceMap) -> std::collections::HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `outcome`, `reason`, and `trigger_price` are never read [INFO] [stdout] --> src/stops.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct TriggeredStop { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | pub outcome: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | pub size: Decimal, [INFO] [stdout] 37 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 38 | pub trigger_price: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TriggeredStop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel_stops_for_token` is never used [INFO] [stdout] --> src/stops.rs:250:14 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn cancel_stops_for_token(stops: &StopList, token_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `outcome` is never read [INFO] [stdout] --> src/stops.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 267 | pub struct StopSummary { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 271 | pub outcome: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StopSummary` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stake_usdc` and `btc_price` are never read [INFO] [stdout] --> src/strategy.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 53 | struct FilledPosition { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | stake_usdc: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 59 | btc_price: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FilledPosition` 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 `move_pct` is never read [INFO] [stdout] --> src/sniper2.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 103 | struct BuyRecord { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 107 | move_pct: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuyRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `move_pct` is never read [INFO] [stdout] --> src/sniper3.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 118 | struct BuyRecord { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 122 | move_pct: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuyRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `up_shares`, `down_shares`, `hedge_sold_side`, and `hedge_recovered` are never read [INFO] [stdout] --> src/sniper4.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 120 | struct TradeRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | up_shares: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 126 | down_shares: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | hedge_sold_side: Option, // "UP" ou "DOWN" — lado que foi vendido [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 131 | hedge_recovered: Decimal, // quanto recuperou vendendo o lado perdedor [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hedge_recovered` and `hedge_sold_side` are never read [INFO] [stdout] --> src/sniper4.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 173 | struct TradeInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 180 | hedge_recovered: Decimal, // receita da venda do lado perdedor [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 181 | hedge_sold_side: Option, // qual lado foi vendido [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PolyGnosisSafe` is never constructed [INFO] [stdout] --> src/types.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum SignatureType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 57 | PolyGnosisSafe = 2, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignatureType` 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 `asset_id` is never read [INFO] [stdout] --> src/types.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct OrderBook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 141 | pub asset_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 `mid` is never used [INFO] [stdout] --> src/types.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 146 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn mid(&self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceResponse` is never constructed [INFO] [stdout] --> src/types.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct PriceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/types.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pnl` and `pnl_pct` are never used [INFO] [stdout] --> src/types.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 187 | pub fn pnl(&self, current_price: Decimal) -> Decimal { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn pnl_pct(&self, current_price: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `asset` is never read [INFO] [stdout] --> src/types.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct StopEntry { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 213 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StopEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_id` is never read [INFO] [stdout] --> src/types.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct MarketPrice { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 236 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketPrice` 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 `clob_url` is never read [INFO] [stdout] --> src/types.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 260 | pub clob_url: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `signature_type` is never used [INFO] [stdout] --> src/types.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 264 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 265 | pub fn signature_type(&self) -> SignatureType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsMarketEvent` is never used [INFO] [stdout] --> src/types.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | pub enum WsMarketEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsBookSnapshot` is never constructed [INFO] [stdout] --> src/types.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct WsBookSnapshot { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsPriceChange` is never constructed [INFO] [stdout] --> src/types.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct WsPriceChange { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceChangeEntry` is never constructed [INFO] [stdout] --> src/types.rs:301:12 [INFO] [stdout] | [INFO] [stdout] 301 | pub struct PriceChangeEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsLastTradePrice` is never constructed [INFO] [stdout] --> src/types.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct WsLastTradePrice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsBestBidAsk` is never constructed [INFO] [stdout] --> src/types.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct WsBestBidAsk { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHAIN_ID_AMOY` is never used [INFO] [stdout] --> src/auth.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const CHAIN_ID_AMOY: u64 = 80002; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `now_unix` is never used [INFO] [stdout] --> src/client.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn now_unix() -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FillState` is never used [INFO] [stdout] --> src/client.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | enum FillState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mid_price`, `market_buy`, `market_buy_smart`, `wait_for_fill_state`, `cancel_and_wait_state`, and `wallet_positions` are never used [INFO] [stdout] --> src/client.rs:247:18 [INFO] [stdout] | [INFO] [stdout] 64 | impl ClobClient { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 247 | pub async fn mid_price(&self, token_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 680 | pub async fn market_buy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 694 | pub async fn market_buy_smart( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 972 | async fn wait_for_fill_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 999 | async fn cancel_and_wait_state(&mut self, order_id: &str, timeout_ms: u64) -> (FillState, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1232 | pub async fn wallet_positions(&self, limit: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `amount_dp` is never read [INFO] [stdout] --> src/client.rs:1481:5 [INFO] [stdout] | [INFO] [stdout] 1478 | struct RoundConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1481 | amount_dp: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RoundConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_up` is never used [INFO] [stdout] --> src/client.rs:1522:4 [INFO] [stdout] | [INFO] [stdout] 1522 | fn round_up(v: Decimal, dp: u32) -> Decimal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decimal_places` is never used [INFO] [stdout] --> src/client.rs:1526:4 [INFO] [stdout] | [INFO] [stdout] 1526 | fn decimal_places(v: Decimal) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_fee_bps_value` is never used [INFO] [stdout] --> src/client.rs:1531:4 [INFO] [stdout] | [INFO] [stdout] 1531 | fn parse_fee_bps_value(v: &Value, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decimal_from_json` is never used [INFO] [stdout] --> src/client.rs:1603:4 [INFO] [stdout] | [INFO] [stdout] 1603 | fn decimal_from_json(v: Option<&Value>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matched_shares_from_order` is never used [INFO] [stdout] --> src/client.rs:1620:4 [INFO] [stdout] | [INFO] [stdout] 1620 | fn matched_shares_from_order(order: &Value) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `order_status_from_value` is never used [INFO] [stdout] --> src/client.rs:1641:4 [INFO] [stdout] | [INFO] [stdout] 1641 | fn order_status_from_value(order: &Value) -> FillState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `smart_buy_status` is never used [INFO] [stdout] --> src/client.rs:1654:4 [INFO] [stdout] | [INFO] [stdout] 1654 | fn smart_buy_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `outcome`, `orig_size`, `orig_price`, and `orig_usdc` are never read [INFO] [stdout] --> src/copytrade.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CopyTrade { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub timestamp: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub outcome: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | /// Original trade size in shares. [INFO] [stdout] 29 | pub orig_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | /// Original trade price (0–1). [INFO] [stdout] 31 | pub orig_price: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | /// Original trade value in USDC. [INFO] [stdout] 33 | pub orig_usdc: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CopyTrade` 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 `poll` is never used [INFO] [stdout] --> src/copytrade.rs:527:18 [INFO] [stdout] | [INFO] [stdout] 190 | impl CopyTrader { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 527 | pub async fn poll(&mut self, http: &reqwest::Client) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `asset_by_name` is never used [INFO] [stdout] --> src/markets.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn asset_by_name(name: &str) -> Option<&'static AssetProfile> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_best_market` is never used [INFO] [stdout] --> src/markets.rs:466:4 [INFO] [stdout] | [INFO] [stdout] 466 | fn select_best_market( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_fresh` is never used [INFO] [stdout] --> src/markets.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | pub async fn ensure_fresh(http: &reqwest::Client, market: &mut Market) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BtcTicker` is never used [INFO] [stdout] --> src/oracle.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | pub type BtcTicker = AssetTicker; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `price_at` is never used [INFO] [stdout] --> src/oracle.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl AssetTicker { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn price_at(&self, ms_ago: i64) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unsubscribe` is never constructed [INFO] [stdout] --> src/prices.rs:493:5 [INFO] [stdout] | [INFO] [stdout] 491 | pub enum WsCommand { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 492 | Subscribe(Vec), [INFO] [stdout] 493 | Unsubscribe(Vec), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_bids` is never used [INFO] [stdout] --> src/prices.rs:563:14 [INFO] [stdout] | [INFO] [stdout] 563 | pub async fn get_bids(prices: &PriceMap, token_a: &str, token_b: &str) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all` is never used [INFO] [stdout] --> src/prices.rs:583:14 [INFO] [stdout] | [INFO] [stdout] 583 | pub async fn get_all(prices: &PriceMap) -> std::collections::HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `outcome`, `reason`, and `trigger_price` are never read [INFO] [stdout] --> src/stops.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct TriggeredStop { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | pub outcome: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | pub size: Decimal, [INFO] [stdout] 37 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 38 | pub trigger_price: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TriggeredStop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cancel_stops_for_token` is never used [INFO] [stdout] --> src/stops.rs:250:14 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn cancel_stops_for_token(stops: &StopList, token_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `outcome` is never read [INFO] [stdout] --> src/stops.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 267 | pub struct StopSummary { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 271 | pub outcome: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StopSummary` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `stake_usdc` and `btc_price` are never read [INFO] [stdout] --> src/strategy.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 53 | struct FilledPosition { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 58 | stake_usdc: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 59 | btc_price: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FilledPosition` 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 `move_pct` is never read [INFO] [stdout] --> src/sniper2.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 103 | struct BuyRecord { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 107 | move_pct: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuyRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `move_pct` is never read [INFO] [stdout] --> src/sniper3.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 118 | struct BuyRecord { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 122 | move_pct: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuyRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `up_shares`, `down_shares`, `hedge_sold_side`, and `hedge_recovered` are never read [INFO] [stdout] --> src/sniper4.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 120 | struct TradeRecord { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | up_shares: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 126 | down_shares: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | hedge_sold_side: Option, // "UP" ou "DOWN" — lado que foi vendido [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 131 | hedge_recovered: Decimal, // quanto recuperou vendendo o lado perdedor [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hedge_recovered` and `hedge_sold_side` are never read [INFO] [stdout] --> src/sniper4.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 173 | struct TradeInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 180 | hedge_recovered: Decimal, // receita da venda do lado perdedor [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 181 | hedge_sold_side: Option, // qual lado foi vendido [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PolyGnosisSafe` is never constructed [INFO] [stdout] --> src/types.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum SignatureType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 57 | PolyGnosisSafe = 2, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SignatureType` 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 `asset_id` is never read [INFO] [stdout] --> src/types.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct OrderBook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 141 | pub asset_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 `mid` is never used [INFO] [stdout] --> src/types.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 146 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn mid(&self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceResponse` is never constructed [INFO] [stdout] --> src/types.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | pub struct PriceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/types.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pnl` and `pnl_pct` are never used [INFO] [stdout] --> src/types.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 187 | pub fn pnl(&self, current_price: Decimal) -> Decimal { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn pnl_pct(&self, current_price: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `asset` is never read [INFO] [stdout] --> src/types.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub struct StopEntry { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 213 | pub asset: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StopEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_id` is never read [INFO] [stdout] --> src/types.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct MarketPrice { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 236 | pub token_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketPrice` 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 `clob_url` is never read [INFO] [stdout] --> src/types.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 260 | pub clob_url: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `signature_type` is never used [INFO] [stdout] --> src/types.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 264 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 265 | pub fn signature_type(&self) -> SignatureType { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WsMarketEvent` is never used [INFO] [stdout] --> src/types.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | pub enum WsMarketEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsBookSnapshot` is never constructed [INFO] [stdout] --> src/types.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct WsBookSnapshot { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsPriceChange` is never constructed [INFO] [stdout] --> src/types.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | pub struct WsPriceChange { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceChangeEntry` is never constructed [INFO] [stdout] --> src/types.rs:301:12 [INFO] [stdout] | [INFO] [stdout] 301 | pub struct PriceChangeEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsLastTradePrice` is never constructed [INFO] [stdout] --> src/types.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 308 | pub struct WsLastTradePrice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WsBestBidAsk` is never constructed [INFO] [stdout] --> src/types.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct WsBestBidAsk { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 15s [INFO] running `Command { std: "docker" "inspect" "22411184a37a11e69d8a86faab2f5cb645aeae7f6f82dac4b4d732617fd7e343", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22411184a37a11e69d8a86faab2f5cb645aeae7f6f82dac4b4d732617fd7e343", kill_on_drop: false }` [INFO] [stdout] 22411184a37a11e69d8a86faab2f5cb645aeae7f6f82dac4b4d732617fd7e343