[INFO] cloning repository https://github.com/gtajoe2014-png/Pablot [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/Pablot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FPablot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FPablot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28802b114e5733487174c80b26d3d97fc7d73769 [INFO] testing gtajoe2014-png/Pablot against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FPablot" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gtajoe2014-png/Pablot [INFO] finished tweaking git repo https://github.com/gtajoe2014-png/Pablot [INFO] tweaked toml for git repo https://github.com/gtajoe2014-png/Pablot written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gtajoe2014-png/Pablot on toolchain 33835004928d3bf65db4d4712e1330766263b0bd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gtajoe2014-png/Pablot already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e5ae38deb867240f2b5fe6d4393085c9da5071bd0a99651ad8347c11af3472a [INFO] running `Command { std: "docker" "start" "-a" "7e5ae38deb867240f2b5fe6d4393085c9da5071bd0a99651ad8347c11af3472a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e5ae38deb867240f2b5fe6d4393085c9da5071bd0a99651ad8347c11af3472a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e5ae38deb867240f2b5fe6d4393085c9da5071bd0a99651ad8347c11af3472a", kill_on_drop: false }` [INFO] [stdout] 7e5ae38deb867240f2b5fe6d4393085c9da5071bd0a99651ad8347c11af3472a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 997e4f09bfaac526a416bb575235c623d10e0395ee1942af3c7fa57f5e7dba5f [INFO] running `Command { std: "docker" "start" "-a" "997e4f09bfaac526a416bb575235c623d10e0395ee1942af3c7fa57f5e7dba5f", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling const-hex v1.18.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling zerocopy v0.8.40 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling futures-utils-wasm v0.1.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling bimap v0.6.3 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling iri-string v0.7.10 [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] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling siphasher v1.0.2 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling blst v0.3.16 [INFO] [stderr] Compiling c-kzg v1.0.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling phf_shared v0.12.1 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling phf v0.12.1 [INFO] [stderr] Compiling enable-ansi-support v0.2.1 [INFO] [stderr] Compiling ruint v1.17.2 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Compiling syn-solidity v0.8.26 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling schnellru v0.2.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [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] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling rustls-pki-types v1.14.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling rustls-webpki v0.103.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling webpki-roots v1.0.6 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling num_enum v0.7.5 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling alloy-sol-type-parser v0.8.26 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling alloy-primitives v0.8.26 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling nybbles v0.3.4 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling alloy-rlp v0.3.13 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling alloy-json-abi v0.8.26 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling alloy-sol-macro-input v0.8.26 [INFO] [stderr] Compiling alloy-sol-macro-expander v0.8.26 [INFO] [stderr] Compiling alloy-serde v0.8.3 [INFO] [stderr] Compiling alloy-eip7702 v0.4.2 [INFO] [stderr] Compiling alloy-eip2930 v0.1.0 [INFO] [stderr] Compiling alloy-trie v0.7.9 [INFO] [stderr] Compiling alloy-signer v0.8.3 [INFO] [stderr] Compiling alloy-chains v0.1.69 [INFO] [stderr] Compiling alloy-eips v0.8.3 [INFO] [stderr] Compiling alloy-consensus v0.8.3 [INFO] [stderr] Compiling alloy-sol-macro v0.8.26 [INFO] [stderr] Compiling alloy-sol-types v0.8.26 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling interprocess v2.4.0 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling alloy-consensus-any v0.8.3 [INFO] [stderr] Compiling alloy-network-primitives v0.8.3 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling alloy-json-rpc v0.8.3 [INFO] [stderr] Compiling alloy-rpc-types-eth v0.8.3 [INFO] [stderr] Compiling alloy-dyn-abi v0.8.26 [INFO] [stderr] Compiling alloy-transport v0.8.3 [INFO] [stderr] Compiling alloy-core v0.8.26 [INFO] [stderr] Compiling alloy-pubsub v0.8.3 [INFO] [stderr] Compiling alloy-transport-http v0.8.3 [INFO] [stderr] Compiling alloy-transport-ws v0.8.3 [INFO] [stderr] Compiling alloy-transport-ipc v0.8.3 [INFO] [stderr] Compiling alloy-rpc-client v0.8.3 [INFO] [stderr] Compiling alloy-rpc-types-any v0.8.3 [INFO] [stderr] Compiling alloy-rpc-types v0.8.3 [INFO] [stderr] Compiling alloy-network v0.8.3 [INFO] [stderr] Compiling alloy-provider v0.8.3 [INFO] [stderr] Compiling alloy-signer-local v0.8.3 [INFO] [stderr] Compiling alloy-contract v0.8.3 [INFO] [stderr] Compiling alloy v0.8.3 [INFO] [stderr] Compiling 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 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: methods `mid_price`, `market_buy`, 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] 679 | pub async fn market_buy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1241 | 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:1486:5 [INFO] [stdout] | [INFO] [stdout] 1483 | struct RoundConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1486 | 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:1527:4 [INFO] [stdout] | [INFO] [stdout] 1527 | 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:1531:4 [INFO] [stdout] | [INFO] [stdout] 1531 | fn decimal_places(v: Decimal) -> u32 { [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:481:5 [INFO] [stdout] | [INFO] [stdout] 479 | pub enum WsCommand { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 480 | Subscribe(Vec), [INFO] [stdout] 481 | Unsubscribe(Vec), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all` is never used [INFO] [stdout] --> src/prices.rs:567:14 [INFO] [stdout] | [INFO] [stdout] 567 | 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` and `down_shares` 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] = 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: field `hedge_sold_side` is never read [INFO] [stdout] --> src/sniper4.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 173 | struct TradeInfo { [INFO] [stdout] | --------- field in this struct [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 2m 03s [INFO] running `Command { std: "docker" "inspect" "997e4f09bfaac526a416bb575235c623d10e0395ee1942af3c7fa57f5e7dba5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "997e4f09bfaac526a416bb575235c623d10e0395ee1942af3c7fa57f5e7dba5f", kill_on_drop: false }` [INFO] [stdout] 997e4f09bfaac526a416bb575235c623d10e0395ee1942af3c7fa57f5e7dba5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2e7dac5fcfed66bd55eb42f2ae5c001dc9778d9d345a5aff2f1bfa1ec63d947 [INFO] running `Command { std: "docker" "start" "-a" "e2e7dac5fcfed66bd55eb42f2ae5c001dc9778d9d345a5aff2f1bfa1ec63d947", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: methods `mid_price`, `market_buy`, 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] 679 | pub async fn market_buy( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1241 | 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:1486:5 [INFO] [stdout] | [INFO] [stdout] 1483 | struct RoundConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1486 | 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:1527:4 [INFO] [stdout] | [INFO] [stdout] 1527 | 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:1531:4 [INFO] [stdout] | [INFO] [stdout] 1531 | fn decimal_places(v: Decimal) -> u32 { [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:481:5 [INFO] [stdout] | [INFO] [stdout] 479 | pub enum WsCommand { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 480 | Subscribe(Vec), [INFO] [stdout] 481 | Unsubscribe(Vec), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all` is never used [INFO] [stdout] --> src/prices.rs:567:14 [INFO] [stdout] | [INFO] [stdout] 567 | 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` and `down_shares` 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] = 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: field `hedge_sold_side` is never read [INFO] [stdout] --> src/sniper4.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 173 | struct TradeInfo { [INFO] [stdout] | --------- field in this struct [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 `test` profile [unoptimized + debuginfo] target(s) in 10.08s [INFO] running `Command { std: "docker" "inspect" "e2e7dac5fcfed66bd55eb42f2ae5c001dc9778d9d345a5aff2f1bfa1ec63d947", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2e7dac5fcfed66bd55eb42f2ae5c001dc9778d9d345a5aff2f1bfa1ec63d947", kill_on_drop: false }` [INFO] [stdout] e2e7dac5fcfed66bd55eb42f2ae5c001dc9778d9d345a5aff2f1bfa1ec63d947 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5b017b8fcb222b9fc087dffeaca05890e6d6589ca681e6b54f20df8ad6211f58 [INFO] running `Command { std: "docker" "start" "-a" "5b017b8fcb222b9fc087dffeaca05890e6d6589ca681e6b54f20df8ad6211f58", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `find_asset_market` [INFO] [stderr] --> src/main.rs:35:29 [INFO] [stderr] | [INFO] [stderr] 35 | find_all_asset_markets, find_asset_market, find_btc_market, find_next_asset_market, find_next_btc_market, is_expired, ASSETS, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `down_labels` [INFO] [stderr] --> src/streak.rs:98:9 [INFO] [stderr] | [INFO] [stderr] 98 | let down_labels = ["down", "no", "lower", "below"]; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_down_labels` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `down_idx` [INFO] [stderr] --> src/streak.rs:100:18 [INFO] [stderr] | [INFO] [stderr] 100 | let (up_idx, down_idx) = if names.len() >= 2 { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_down_idx` [INFO] [stderr] [INFO] [stderr] warning: constant `CHAIN_ID_AMOY` is never used [INFO] [stderr] --> src/auth.rs:26:11 [INFO] [stderr] | [INFO] [stderr] 26 | pub const CHAIN_ID_AMOY: u64 = 80002; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `now_unix` is never used [INFO] [stderr] --> src/client.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn now_unix() -> u64 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `mid_price`, `market_buy`, and `wallet_positions` are never used [INFO] [stderr] --> src/client.rs:247:18 [INFO] [stderr] | [INFO] [stderr] 64 | impl ClobClient { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 247 | pub async fn mid_price(&self, token_id: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 679 | pub async fn market_buy( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1241 | pub async fn wallet_positions(&self, limit: u32) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `amount_dp` is never read [INFO] [stderr] --> src/client.rs:1486:5 [INFO] [stderr] | [INFO] [stderr] 1483 | struct RoundConfig { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 1486 | amount_dp: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RoundConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `round_up` is never used [INFO] [stderr] --> src/client.rs:1527:4 [INFO] [stderr] | [INFO] [stderr] 1527 | fn round_up(v: Decimal, dp: u32) -> Decimal { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decimal_places` is never used [INFO] [stderr] --> src/client.rs:1531:4 [INFO] [stderr] | [INFO] [stderr] 1531 | fn decimal_places(v: Decimal) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `timestamp`, `outcome`, `orig_size`, `orig_price`, and `orig_usdc` are never read [INFO] [stderr] --> src/copytrade.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct CopyTrade { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 21 | pub timestamp: i64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub outcome: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 28 | /// Original trade size in shares. [INFO] [stderr] 29 | pub orig_size: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 30 | /// Original trade price (0–1). [INFO] [stderr] 31 | pub orig_price: Decimal, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 32 | /// Original trade value in USDC. [INFO] [stderr] 33 | pub orig_usdc: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CopyTrade` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `poll` is never used [INFO] [stderr] --> src/copytrade.rs:527:18 [INFO] [stderr] | [INFO] [stderr] 190 | impl CopyTrader { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 527 | pub async fn poll(&mut self, http: &reqwest::Client) -> Result> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `asset_by_name` is never used [INFO] [stderr] --> src/markets.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn asset_by_name(name: &str) -> Option<&'static AssetProfile> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `select_best_market` is never used [INFO] [stderr] --> src/markets.rs:466:4 [INFO] [stderr] | [INFO] [stderr] 466 | fn select_best_market( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ensure_fresh` is never used [INFO] [stderr] --> src/markets.rs:756:14 [INFO] [stderr] | [INFO] [stderr] 756 | pub async fn ensure_fresh(http: &reqwest::Client, market: &mut Market) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `BtcTicker` is never used [INFO] [stderr] --> src/oracle.rs:168:10 [INFO] [stderr] | [INFO] [stderr] 168 | pub type BtcTicker = AssetTicker; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `price_at` is never used [INFO] [stderr] --> src/oracle.rs:195:12 [INFO] [stderr] | [INFO] [stderr] 170 | impl AssetTicker { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 195 | pub fn price_at(&self, ms_ago: i64) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Unsubscribe` is never constructed [INFO] [stderr] --> src/prices.rs:481:5 [INFO] [stderr] | [INFO] [stderr] 479 | pub enum WsCommand { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 480 | Subscribe(Vec), [INFO] [stderr] 481 | Unsubscribe(Vec), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_all` is never used [INFO] [stderr] --> src/prices.rs:567:14 [INFO] [stderr] | [INFO] [stderr] 567 | pub async fn get_all(prices: &PriceMap) -> std::collections::HashMap { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `outcome`, `reason`, and `trigger_price` are never read [INFO] [stderr] --> src/stops.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 32 | pub struct TriggeredStop { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 35 | pub outcome: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 36 | pub size: Decimal, [INFO] [stderr] 37 | pub reason: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 38 | pub trigger_price: Decimal, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TriggeredStop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `cancel_stops_for_token` is never used [INFO] [stderr] --> src/stops.rs:250:14 [INFO] [stderr] | [INFO] [stderr] 250 | pub async fn cancel_stops_for_token(stops: &StopList, token_id: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `outcome` is never read [INFO] [stderr] --> src/stops.rs:271:9 [INFO] [stderr] | [INFO] [stderr] 267 | pub struct StopSummary { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 271 | pub outcome: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `StopSummary` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `stake_usdc` and `btc_price` are never read [INFO] [stderr] --> src/strategy.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 53 | struct FilledPosition { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 58 | stake_usdc: Decimal, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 59 | btc_price: f64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FilledPosition` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `move_pct` is never read [INFO] [stderr] --> src/sniper2.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 103 | struct BuyRecord { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 107 | move_pct: Decimal, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BuyRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `move_pct` is never read [INFO] [stderr] --> src/sniper3.rs:122:5 [INFO] [stderr] | [INFO] [stderr] 118 | struct BuyRecord { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 122 | move_pct: Decimal, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BuyRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `up_shares` and `down_shares` are never read [INFO] [stderr] --> src/sniper4.rs:125:5 [INFO] [stderr] | [INFO] [stderr] 120 | struct TradeRecord { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 125 | up_shares: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 126 | down_shares: Decimal, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TradeRecord` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `hedge_sold_side` is never read [INFO] [stderr] --> src/sniper4.rs:181:5 [INFO] [stderr] | [INFO] [stderr] 173 | struct TradeInfo { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 181 | hedge_sold_side: Option, // qual lado foi vendido [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `PolyGnosisSafe` is never constructed [INFO] [stderr] --> src/types.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 54 | pub enum SignatureType { [INFO] [stderr] | ------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 57 | PolyGnosisSafe = 2, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SignatureType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `asset_id` is never read [INFO] [stderr] --> src/types.rs:141:9 [INFO] [stderr] | [INFO] [stderr] 140 | pub struct OrderBook { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 141 | pub asset_id: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OrderBook` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `mid` is never used [INFO] [stderr] --> src/types.rs:163:12 [INFO] [stderr] | [INFO] [stderr] 146 | impl OrderBook { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 163 | pub fn mid(&self) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PriceResponse` is never constructed [INFO] [stderr] --> src/types.rs:171:12 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct PriceResponse { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Position` is never constructed [INFO] [stderr] --> src/types.rs:178:12 [INFO] [stderr] | [INFO] [stderr] 178 | pub struct Position { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `pnl` and `pnl_pct` are never used [INFO] [stderr] --> src/types.rs:187:12 [INFO] [stderr] | [INFO] [stderr] 186 | impl Position { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] 187 | pub fn pnl(&self, current_price: Decimal) -> Decimal { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 191 | pub fn pnl_pct(&self, current_price: Decimal) -> Decimal { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `asset` is never read [INFO] [stderr] --> src/types.rs:213:9 [INFO] [stderr] | [INFO] [stderr] 209 | pub struct StopEntry { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 213 | pub asset: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `StopEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `token_id` is never read [INFO] [stderr] --> src/types.rs:236:9 [INFO] [stderr] | [INFO] [stderr] 235 | pub struct MarketPrice { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 236 | pub token_id: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MarketPrice` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `clob_url` is never read [INFO] [stderr] --> src/types.rs:260:9 [INFO] [stderr] | [INFO] [stderr] 253 | pub struct Config { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 260 | pub clob_url: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `signature_type` is never used [INFO] [stderr] --> src/types.rs:265:12 [INFO] [stderr] | [INFO] [stderr] 264 | impl Config { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] 265 | pub fn signature_type(&self) -> SignatureType { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `WsMarketEvent` is never used [INFO] [stderr] --> src/types.rs:278:10 [INFO] [stderr] | [INFO] [stderr] 278 | pub enum WsMarketEvent { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WsBookSnapshot` is never constructed [INFO] [stderr] --> src/types.rs:288:12 [INFO] [stderr] | [INFO] [stderr] 288 | pub struct WsBookSnapshot { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WsPriceChange` is never constructed [INFO] [stderr] --> src/types.rs:295:12 [INFO] [stderr] | [INFO] [stderr] 295 | pub struct WsPriceChange { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PriceChangeEntry` is never constructed [INFO] [stderr] --> src/types.rs:301:12 [INFO] [stderr] | [INFO] [stderr] 301 | pub struct PriceChangeEntry { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WsLastTradePrice` is never constructed [INFO] [stderr] --> src/types.rs:308:12 [INFO] [stderr] | [INFO] [stderr] 308 | pub struct WsLastTradePrice { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `WsBestBidAsk` is never constructed [INFO] [stderr] --> src/types.rs:314:12 [INFO] [stderr] | [INFO] [stderr] 314 | pub struct WsBestBidAsk { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `polymarket-bot` (bin "bot" test) generated 42 warnings (run `cargo fix --bin "bot" -p polymarket-bot --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.67s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/bot-38e7b67b80ab6aaf) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test auth::tests::test_address_to_word ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_fixed_bare ... ok [INFO] [stdout] test copytrade::tests::test_open_risk_does_not_stop_without_realized_loss ... ok [INFO] [stdout] test auth::tests::test_domain_separator_not_zero ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_fixed_dollar ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_invalid ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_multiplier_uppercase ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_percent ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_multiplier_lowercase ... ok [INFO] [stdout] test copytrade::tests::test_reset_clears_state ... ok [INFO] [stdout] test copytrade::tests::test_settle_resolved_token_realises_without_sell ... ok [INFO] [stdout] test copytrade::tests::test_slippage_sell_floored ... ok [INFO] [stdout] test copytrade::tests::test_value_to_timestamp_float_string ... ok [INFO] [stdout] test copytrade::tests::test_should_stop ... ok [INFO] [stdout] test copytrade::tests::test_value_to_timestamp_int ... ok [INFO] [stdout] test copytrade::tests::test_slippage_buy_capped ... ok [INFO] [stdout] test auth::tests::test_eip712_matches_python ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5b017b8fcb222b9fc087dffeaca05890e6d6589ca681e6b54f20df8ad6211f58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b017b8fcb222b9fc087dffeaca05890e6d6589ca681e6b54f20df8ad6211f58", kill_on_drop: false }` [INFO] [stdout] 5b017b8fcb222b9fc087dffeaca05890e6d6589ca681e6b54f20df8ad6211f58