[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] testing gtajoe2014-png/Openpoly against 1.97.0-beta.6+cargoflags=--release for beta-1.98-release-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgtajoe2014-png%2FOpenpoly" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gtajoe2014-png/Openpoly on toolchain 1.97.0-beta.6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.21.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.24.0 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.113 [INFO] [stderr] Downloaded tungstenite v0.24.0 [INFO] [stderr] Downloaded wasm-bindgen v0.2.113 [INFO] [stderr] Downloaded enable-ansi-support v0.2.1 [INFO] [stderr] Downloaded enum-ordinalize v4.3.2 [INFO] [stderr] Downloaded futures-utils-wasm v0.1.0 [INFO] [stderr] Downloaded macro-string v0.1.4 [INFO] [stderr] Downloaded enum-ordinalize-derive v4.3.2 [INFO] [stderr] Downloaded alloy-sol-macro-input v0.8.26 [INFO] [stderr] Downloaded rlp v0.5.2 [INFO] [stderr] Downloaded rustc-hex v2.1.0 [INFO] [stderr] Downloaded fastrlp v0.4.0 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.7.5 [INFO] [stderr] Downloaded phf_shared v0.12.1 [INFO] [stderr] Downloaded ruint-macro v1.2.1 [INFO] [stderr] Downloaded fixed-hash v0.8.0 [INFO] [stderr] Downloaded fastrlp v0.3.1 [INFO] [stderr] Downloaded ark-ff-asm v0.5.0 [INFO] [stderr] Downloaded primitive-types v0.12.2 [INFO] [stderr] Downloaded impl-codec v0.6.0 [INFO] [stderr] Downloaded ark-ff-macros v0.5.0 [INFO] [stderr] Downloaded ark-serialize v0.3.0 [INFO] [stderr] Downloaded ark-ff-macros v0.3.0 [INFO] [stderr] Downloaded ark-ff-asm v0.3.0 [INFO] [stderr] Downloaded alloy-rlp v0.3.13 [INFO] [stderr] Downloaded alloy-rlp-derive v0.3.13 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.113 [INFO] [stderr] Downloaded ark-serialize v0.5.0 [INFO] [stderr] Downloaded rustc_version v0.3.3 [INFO] [stderr] Downloaded keccak-asm v0.1.5 [INFO] [stderr] Downloaded alloy-eip7702 v0.4.2 [INFO] [stderr] Downloaded alloy-rpc-types-any v0.8.3 [INFO] [stderr] Downloaded lru v0.12.5 [INFO] [stderr] Downloaded ipnet v2.11.0 [INFO] [stderr] Downloaded alloy-sol-type-parser v0.8.26 [INFO] [stderr] Downloaded ark-std v0.5.0 [INFO] [stderr] Downloaded alloy-transport v0.8.3 [INFO] [stderr] Downloaded auto_impl v1.3.0 [INFO] [stderr] Downloaded doctest-file v1.0.0 [INFO] [stderr] Downloaded alloy-eip2930 v0.1.0 [INFO] [stderr] Downloaded phf v0.12.1 [INFO] [stderr] Downloaded alloy-transport-ws v0.8.3 [INFO] [stderr] Downloaded alloy-sol-macro v0.8.26 [INFO] [stderr] Downloaded uint v0.9.5 [INFO] [stderr] Downloaded impl-trait-for-tuples v0.2.3 [INFO] [stderr] Downloaded const_format_proc_macros v0.2.34 [INFO] [stderr] Downloaded semver-parser v0.10.3 [INFO] [stderr] Downloaded ark-std v0.3.0 [INFO] [stderr] Downloaded alloy-pubsub v0.8.3 [INFO] [stderr] Downloaded bimap v0.6.3 [INFO] [stderr] Downloaded alloy-transport-http v0.8.3 [INFO] [stderr] Downloaded alloy-signer-local v0.8.3 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.63 [INFO] [stderr] Downloaded alloy v0.8.3 [INFO] [stderr] Downloaded alloy-json-rpc v0.8.3 [INFO] [stderr] Downloaded educe v0.6.0 [INFO] [stderr] Downloaded nybbles v0.3.4 [INFO] [stderr] Downloaded alloy-consensus-any v0.8.3 [INFO] [stderr] Downloaded alloy-transport-ipc v0.8.3 [INFO] [stderr] Downloaded recvmsg v1.0.0 [INFO] [stderr] Downloaded alloy-signer v0.8.3 [INFO] [stderr] Downloaded alloy-network v0.8.3 [INFO] [stderr] Downloaded alloy-serde v0.8.3 [INFO] [stderr] Downloaded alloy-genesis v0.8.3 [INFO] [stderr] Downloaded alloy-rpc-types v0.8.3 [INFO] [stderr] Downloaded schnellru v0.2.4 [INFO] [stderr] Downloaded dashmap v6.1.0 [INFO] [stderr] Downloaded const-hex v1.18.0 [INFO] [stderr] Downloaded ark-ff v0.3.0 [INFO] [stderr] Downloaded semver v0.11.0 [INFO] [stderr] Downloaded alloy-network-primitives v0.8.3 [INFO] [stderr] Downloaded alloy-trie v0.7.9 [INFO] [stderr] Downloaded alloy-core v0.8.26 [INFO] [stderr] Downloaded syn-solidity v0.8.26 [INFO] [stderr] Downloaded alloy-rpc-types-engine v0.8.3 [INFO] [stderr] Downloaded alloy-rpc-client v0.8.3 [INFO] [stderr] Downloaded alloy-contract v0.8.3 [INFO] [stderr] Downloaded alloy-sol-macro-expander v0.8.26 [INFO] [stderr] Downloaded alloy-json-abi v0.8.26 [INFO] [stderr] Downloaded pin-project v1.1.10 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.113 [INFO] [stderr] Downloaded const_format v0.2.35 [INFO] [stderr] Downloaded ark-ff v0.5.0 [INFO] [stderr] Downloaded pin-project-internal v1.1.10 [INFO] [stderr] Downloaded alloy-chains v0.1.69 [INFO] [stderr] Downloaded js-sys v0.3.90 [INFO] [stderr] Downloaded alloy-sol-types v0.8.26 [INFO] [stderr] Downloaded parity-scale-codec v3.7.5 [INFO] [stderr] Downloaded alloy-consensus v0.8.3 [INFO] [stderr] Downloaded alloy-dyn-abi v0.8.26 [INFO] [stderr] Downloaded alloy-primitives v0.8.26 [INFO] [stderr] Downloaded alloy-provider v0.8.3 [INFO] [stderr] Downloaded ruint v1.17.2 [INFO] [stderr] Downloaded interprocess v2.4.0 [INFO] [stderr] Downloaded alloy-rpc-types-eth v0.8.3 [INFO] [stderr] Downloaded proptest v1.10.0 [INFO] [stderr] Downloaded blst v0.3.16 [INFO] [stderr] Downloaded sha3-asm v0.1.5 [INFO] [stderr] Downloaded alloy-eips v0.8.3 [INFO] [stderr] Downloaded web-sys v0.3.90 [INFO] [stderr] Downloaded chrono-tz v0.10.4 [INFO] [stderr] Downloaded c-kzg v1.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520 [INFO] running `Command { std: "docker" "start" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling const-hex v1.18.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling ruint v1.17.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling blst v0.3.16 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling zerocopy v0.8.40 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling c-kzg v1.0.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling log v0.4.29 [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] Compiling httparse v1.10.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling futures-utils-wasm v0.1.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling thiserror v1.0.69 [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 serde_derive v1.0.228 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.13 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling alloy-rlp v0.3.13 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling alloy-sol-type-parser v0.8.26 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling alloy-primitives v0.8.26 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling alloy-json-abi v0.8.26 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling alloy-sol-macro-input v0.8.26 [INFO] [stderr] Compiling alloy-sol-macro-expander v0.8.26 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling rustls-pki-types v1.14.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling alloy-eip7702 v0.4.2 [INFO] [stderr] Compiling alloy-eip2930 v0.1.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling alloy-serde v0.8.3 [INFO] [stderr] Compiling nybbles v0.3.4 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling alloy-trie v0.7.9 [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 alloy-eips v0.8.3 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling alloy-consensus v0.8.3 [INFO] [stderr] Compiling rustls-webpki v0.103.9 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling alloy-consensus-any v0.8.3 [INFO] [stderr] Compiling alloy-network-primitives v0.8.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling webpki-roots v1.0.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bimap v0.6.3 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling iri-string v0.7.10 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling doctest-file v1.0.0 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling interprocess v2.4.0 [INFO] [stderr] Compiling alloy-signer v0.8.3 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling num_enum v0.7.5 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling alloy-json-rpc v0.8.3 [INFO] [stderr] Compiling alloy-rpc-types-eth v0.8.3 [INFO] [stderr] Compiling schnellru v0.2.4 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling alloy-chains v0.1.69 [INFO] [stderr] Compiling alloy-dyn-abi v0.8.26 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling siphasher v1.0.2 [INFO] [stderr] Compiling alloy-transport v0.8.3 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling phf_shared v0.12.1 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling lazy_static v1.5.0 [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-types-any v0.8.3 [INFO] [stderr] Compiling alloy-network v0.8.3 [INFO] [stderr] Compiling alloy-rpc-client v0.8.3 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling alloy-provider v0.8.3 [INFO] [stderr] Compiling alloy-signer-local v0.8.3 [INFO] [stderr] Compiling alloy-rpc-types v0.8.3 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling phf v0.12.1 [INFO] [stderr] Compiling alloy-core v0.8.26 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling enable-ansi-support v0.2.1 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [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: `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: 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] [stderr] Finished `release` profile [optimized] target(s) in 7m 01s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json" "--release", 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: `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: 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 `release` profile [optimized] target(s) in 24.02s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--release", 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: `tag` [INFO] [stderr] --> src/client.rs:813:13 [INFO] [stderr] | [INFO] [stderr] 813 | let tag = &token_id[..token_id.len().min(12)]; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (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] 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: enum `FillState` is never used [INFO] [stderr] --> src/client.rs:58:6 [INFO] [stderr] | [INFO] [stderr] 58 | enum FillState { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `mid_price`, `market_buy`, `market_buy_smart`, `wait_for_fill_state`, `cancel_and_wait_state`, 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] 680 | pub async fn market_buy( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 694 | pub async fn market_buy_smart( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 972 | async fn wait_for_fill_state( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 999 | async fn cancel_and_wait_state(&mut self, order_id: &str, timeout_ms: u64) -> (FillState, Decimal) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1232 | 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:1481:5 [INFO] [stderr] | [INFO] [stderr] 1478 | struct RoundConfig { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 1481 | 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:1522:4 [INFO] [stderr] | [INFO] [stderr] 1522 | 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:1526:4 [INFO] [stderr] | [INFO] [stderr] 1526 | fn decimal_places(v: Decimal) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_fee_bps_value` is never used [INFO] [stderr] --> src/client.rs:1531:4 [INFO] [stderr] | [INFO] [stderr] 1531 | fn parse_fee_bps_value(v: &Value, key: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `decimal_from_json` is never used [INFO] [stderr] --> src/client.rs:1603:4 [INFO] [stderr] | [INFO] [stderr] 1603 | fn decimal_from_json(v: Option<&Value>) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `matched_shares_from_order` is never used [INFO] [stderr] --> src/client.rs:1620:4 [INFO] [stderr] | [INFO] [stderr] 1620 | fn matched_shares_from_order(order: &Value) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `order_status_from_value` is never used [INFO] [stderr] --> src/client.rs:1641:4 [INFO] [stderr] | [INFO] [stderr] 1641 | fn order_status_from_value(order: &Value) -> FillState { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `smart_buy_status` is never used [INFO] [stderr] --> src/client.rs:1654:4 [INFO] [stderr] | [INFO] [stderr] 1654 | fn smart_buy_status( [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:493:5 [INFO] [stderr] | [INFO] [stderr] 491 | pub enum WsCommand { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 492 | Subscribe(Vec), [INFO] [stderr] 493 | Unsubscribe(Vec), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_bids` is never used [INFO] [stderr] --> src/prices.rs:563:14 [INFO] [stderr] | [INFO] [stderr] 563 | pub async fn get_bids(prices: &PriceMap, token_a: &str, token_b: &str) -> (Option, Option) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_all` is never used [INFO] [stderr] --> src/prices.rs:583:14 [INFO] [stderr] | [INFO] [stderr] 583 | 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`, `down_shares`, `hedge_sold_side`, and `hedge_recovered` 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] 130 | hedge_sold_side: Option, // "UP" ou "DOWN" — lado que foi vendido [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 131 | hedge_recovered: Decimal, // quanto recuperou vendendo o lado perdedor [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: fields `hedge_recovered` and `hedge_sold_side` are never read [INFO] [stderr] --> src/sniper4.rs:180:5 [INFO] [stderr] | [INFO] [stderr] 173 | struct TradeInfo { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 180 | hedge_recovered: Decimal, // receita da venda do lado perdedor [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 50 warnings (run `cargo fix --bin "bot" -p polymarket-bot --tests` to apply 4 suggestions) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.46s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/bot-c0a89f62915fccbb) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test auth::tests::test_domain_separator_not_zero ... ok [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 copytrade::tests::test_parse_sizing_invalid ... ok [INFO] [stdout] test auth::tests::test_eip712_matches_python ... ok [INFO] [stdout] test copytrade::tests::test_parse_sizing_multiplier_lowercase ... 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_reset_clears_state ... ok [INFO] [stdout] test copytrade::tests::test_should_stop ... ok [INFO] [stdout] test copytrade::tests::test_slippage_buy_capped ... 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_parse_sizing_fixed_dollar ... ok [INFO] [stdout] test copytrade::tests::test_value_to_timestamp_int ... ok [INFO] [stdout] test copytrade::tests::test_settle_resolved_token_realises_without_sell ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520", kill_on_drop: false }` [INFO] [stdout] 85f3b8299538cb3ad655533d56ce7a5643b1f6553e8715dda14d05bfdc10b520