[INFO] cloning repository https://github.com/broogle/polymarket-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/broogle/polymarket-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroogle%2Fpolymarket-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroogle%2Fpolymarket-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 831d825966027a309041a52b69f33d4e8f313a4c [INFO] testing broogle/polymarket-bot against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroogle%2Fpolymarket-bot" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/broogle/polymarket-bot [INFO] finished tweaking git repo https://github.com/broogle/polymarket-bot [INFO] tweaked toml for git repo https://github.com/broogle/polymarket-bot written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/broogle/polymarket-bot 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/broogle/polymarket-bot 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c570134d4d8a47fefa36e968488585d5baddc60b16d4f5fa8fb8157a73417b94 [INFO] running `Command { std: "docker" "start" "-a" "c570134d4d8a47fefa36e968488585d5baddc60b16d4f5fa8fb8157a73417b94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c570134d4d8a47fefa36e968488585d5baddc60b16d4f5fa8fb8157a73417b94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c570134d4d8a47fefa36e968488585d5baddc60b16d4f5fa8fb8157a73417b94", kill_on_drop: false }` [INFO] [stdout] c570134d4d8a47fefa36e968488585d5baddc60b16d4f5fa8fb8157a73417b94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 887cc3bf3c7ff62b2954fbce13a395fc6c8e37d8cc9c7dfbda0b56e1d27e852c [INFO] running `Command { std: "docker" "start" "-a" "887cc3bf3c7ff62b2954fbce13a395fc6c8e37d8cc9c7dfbda0b56e1d27e852c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling keccak v0.1.6 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling const-hex v1.18.1 [INFO] [stderr] Compiling zerocopy v0.8.40 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling rustls-pki-types v1.14.0 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling aws-lc-rs v1.16.1 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling winnow v0.7.15 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling webpki-roots v1.0.6 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling rand_core v0.10.0 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Compiling rustls-native-certs v0.8.3 [INFO] [stderr] Compiling phf_shared v0.13.1 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling futures-utils-wasm v0.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling iri-string v0.7.10 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling rand_core v0.9.5 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling phf_generator v0.13.1 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling cpufeatures v0.3.0 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Compiling chacha20 v0.10.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling phf_shared v0.12.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling phf v0.12.1 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Compiling uuid v1.22.0 [INFO] [stderr] Compiling serde_html_form v0.4.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling serde_ignored v0.1.14 [INFO] [stderr] Compiling rand v0.10.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling aws-lc-sys v0.38.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Compiling syn-solidity v1.5.7 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.13 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling alloy-sol-macro-input v1.5.7 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling phf_macros v0.13.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling alloy-sol-macro-expander v1.5.7 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling serde_with_macros v3.17.0 [INFO] [stderr] Compiling alloy-tx-macros v1.7.3 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling backoff v0.4.0 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling phf v0.13.1 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling bon-macros v3.9.0 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.28.0 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling alloy-sol-type-parser v1.5.7 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling secrecy v0.10.3 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling alloy-rlp v0.3.13 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling ruint v1.17.2 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling serde_with v3.17.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling alloy-sol-macro v1.5.7 [INFO] [stderr] Compiling alloy-primitives v1.5.7 [INFO] [stderr] Compiling nybbles v0.4.8 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling bon v3.9.0 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling config v0.14.1 [INFO] [stderr] Compiling alloy-eip2930 v0.2.3 [INFO] [stderr] Compiling alloy-eip7702 v0.6.3 [INFO] [stderr] Compiling alloy-eip7928 v0.3.3 [INFO] [stderr] Compiling alloy-eip2124 v0.2.0 [INFO] [stderr] Compiling alloy-serde v1.7.3 [INFO] [stderr] Compiling alloy-sol-types v1.5.7 [INFO] [stderr] Compiling alloy-trie v0.9.4 [INFO] [stderr] Compiling alloy-json-abi v1.5.7 [INFO] [stderr] Compiling alloy-signer v1.7.3 [INFO] [stderr] Compiling alloy-eips v1.7.3 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling alloy-consensus v1.7.3 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling alloy-json-rpc v1.7.3 [INFO] [stderr] Compiling alloy-dyn-abi v1.5.7 [INFO] [stderr] Compiling alloy-core v1.5.7 [INFO] [stderr] Compiling alloy-consensus-any v1.7.3 [INFO] [stderr] Compiling alloy-network-primitives v1.7.3 [INFO] [stderr] Compiling alloy-rpc-types-eth v1.7.3 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling rustls-webpki v0.103.9 [INFO] [stderr] Compiling alloy-rpc-types-any v1.7.3 [INFO] [stderr] Compiling alloy-network v1.7.3 [INFO] [stderr] Compiling alloy-signer-local v1.7.3 [INFO] [stderr] Compiling alloy v1.7.3 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling rustls-platform-verifier v0.6.2 [INFO] [stderr] Compiling tungstenite v0.28.0 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.13.2 [INFO] [stderr] Compiling reqwest v0.12.28 [INFO] [stderr] Compiling tokio-tungstenite v0.28.0 [INFO] [stderr] Compiling polymarket-client-sdk v0.4.3 [INFO] [stderr] Compiling polymarket-btc-hft-bot v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `stale_threshold_ms` is never read [INFO] [stdout] --> src/config.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct FeedsConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub stale_threshold_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeedsConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `requote_threshold_ticks` is never read [INFO] [stdout] --> src/config.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct StrategyConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 76 | pub requote_threshold_ticks: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_order_size` and `max_open_orders` are never read [INFO] [stdout] --> src/config.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RiskConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 83 | #[serde(default = "default_max_order_size")] [INFO] [stdout] 84 | pub max_order_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub max_open_orders: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FeedStale`, `OrderRejected`, and `InvalidData` are never constructed [INFO] [stdout] --> src/errors.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BotError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | #[error("feed stale: {0}")] [INFO] [stdout] 6 | FeedStale(&'static str), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | OrderRejected(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | #[error("invalid data: {0}")] [INFO] [stdout] 12 | InvalidData(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BotError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dry_run` is never used [INFO] [stdout] --> src/execution/client.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ExecutionClient { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn dry_run(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_order_size` is never used [INFO] [stdout] --> src/risk/limits.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn check_order_size(size: f64, cfg: &RiskConfig) -> Result<(), BotError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_open_orders` is never used [INFO] [stdout] --> src/risk/limits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn check_open_orders(count: u32, cfg: &RiskConfig) -> Result<(), BotError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_token_mapping`, `yes_qty`, and `no_qty` are never used [INFO] [stdout] --> src/state/inventory.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl InventoryState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn set_token_mapping(&mut self, _yes_token: &str, _no_token: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn yes_qty(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn no_qty(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/state/orderbook.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OrderBookStore { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get(&self, asset_id: &str) -> Option<&OrderBookSnapshot> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_reconcile_ms` is never read [INFO] [stdout] --> src/state/orders.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OrdersState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | last_reconcile_ms: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrdersState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `open_order_count`, `open_orders`, and `mark_reconciled` are never used [INFO] [stdout] --> src/state/orders.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl OrdersState { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn open_order_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn open_orders(&self) -> Vec<&LiveOrder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn mark_reconciled(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fill_ids` is never read [INFO] [stdout] --> src/state/pnl.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PnlState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | fill_ids: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PnlState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/storage/file_log.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct EventFileLogger { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 10 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventFileLogger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `path` is never used [INFO] [stdout] --> src/storage/file_log.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl EventFileLogger { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn path(&self) -> &Path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asset_id`, `best_bid`, `best_ask`, `best_bid_size`, `best_ask_size`, and `spread` are never read [INFO] [stdout] --> src/types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct OrderBookSnapshot { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 31 | pub asset_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 32 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | pub best_bid_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub best_ask_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub midpoint: f64, [INFO] [stdout] 37 | pub spread: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookSnapshot` 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: function `clamp` is never used [INFO] [stdout] --> src/utils/math.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn clamp(value: f64, min: f64, max: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 13s [INFO] running `Command { std: "docker" "inspect" "887cc3bf3c7ff62b2954fbce13a395fc6c8e37d8cc9c7dfbda0b56e1d27e852c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "887cc3bf3c7ff62b2954fbce13a395fc6c8e37d8cc9c7dfbda0b56e1d27e852c", kill_on_drop: false }` [INFO] [stdout] 887cc3bf3c7ff62b2954fbce13a395fc6c8e37d8cc9c7dfbda0b56e1d27e852c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d650f712e6d1723c2695d5722b67b1035cfc16426d8178ce804e47cd0b14ff32 [INFO] running `Command { std: "docker" "start" "-a" "d650f712e6d1723c2695d5722b67b1035cfc16426d8178ce804e47cd0b14ff32", kill_on_drop: false }` [INFO] [stderr] Compiling polymarket-btc-hft-bot v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `stale_threshold_ms` is never read [INFO] [stdout] --> src/config.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct FeedsConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub stale_threshold_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FeedsConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `requote_threshold_ticks` is never read [INFO] [stdout] --> src/config.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct StrategyConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 76 | pub requote_threshold_ticks: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_order_size` and `max_open_orders` are never read [INFO] [stdout] --> src/config.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct RiskConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 83 | #[serde(default = "default_max_order_size")] [INFO] [stdout] 84 | pub max_order_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub max_open_orders: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RiskConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FeedStale`, `OrderRejected`, and `InvalidData` are never constructed [INFO] [stdout] --> src/errors.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BotError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | #[error("feed stale: {0}")] [INFO] [stdout] 6 | FeedStale(&'static str), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | OrderRejected(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | #[error("invalid data: {0}")] [INFO] [stdout] 12 | InvalidData(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BotError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `dry_run` is never used [INFO] [stdout] --> src/execution/client.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl ExecutionClient { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn dry_run(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_order_size` is never used [INFO] [stdout] --> src/risk/limits.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn check_order_size(size: f64, cfg: &RiskConfig) -> Result<(), BotError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_open_orders` is never used [INFO] [stdout] --> src/risk/limits.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn check_open_orders(count: u32, cfg: &RiskConfig) -> Result<(), BotError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_token_mapping`, `yes_qty`, and `no_qty` are never used [INFO] [stdout] --> src/state/inventory.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl InventoryState { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn set_token_mapping(&mut self, _yes_token: &str, _no_token: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn yes_qty(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn no_qty(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/state/orderbook.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OrderBookStore { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get(&self, asset_id: &str) -> Option<&OrderBookSnapshot> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_reconcile_ms` is never read [INFO] [stdout] --> src/state/orders.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OrdersState { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | last_reconcile_ms: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrdersState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `open_order_count`, `open_orders`, and `mark_reconciled` are never used [INFO] [stdout] --> src/state/orders.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl OrdersState { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn open_order_count(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn open_orders(&self) -> Vec<&LiveOrder> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn mark_reconciled(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fill_ids` is never read [INFO] [stdout] --> src/state/pnl.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PnlState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | fill_ids: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PnlState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/storage/file_log.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct EventFileLogger { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 10 | path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventFileLogger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `path` is never used [INFO] [stdout] --> src/storage/file_log.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl EventFileLogger { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn path(&self) -> &Path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asset_id`, `best_bid`, `best_ask`, `best_bid_size`, `best_ask_size`, and `spread` are never read [INFO] [stdout] --> src/types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct OrderBookSnapshot { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 31 | pub asset_id: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 32 | pub best_bid: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub best_ask: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | pub best_bid_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 35 | pub best_ask_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub midpoint: f64, [INFO] [stdout] 37 | pub spread: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBookSnapshot` 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: function `clamp` is never used [INFO] [stdout] --> src/utils/math.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn clamp(value: f64, min: f64, max: f64) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.94s [INFO] running `Command { std: "docker" "inspect" "d650f712e6d1723c2695d5722b67b1035cfc16426d8178ce804e47cd0b14ff32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d650f712e6d1723c2695d5722b67b1035cfc16426d8178ce804e47cd0b14ff32", kill_on_drop: false }` [INFO] [stdout] d650f712e6d1723c2695d5722b67b1035cfc16426d8178ce804e47cd0b14ff32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4e49523d0bf623d21bd28c449257b60ecb2ff4b0d6a2fc36cf0a687666802212 [INFO] running `Command { std: "docker" "start" "-a" "4e49523d0bf623d21bd28c449257b60ecb2ff4b0d6a2fc36cf0a687666802212", kill_on_drop: false }` [INFO] [stderr] warning: field `stale_threshold_ms` is never read [INFO] [stderr] --> src/config.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct FeedsConfig { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 34 | pub stale_threshold_ms: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FeedsConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `requote_threshold_ticks` is never read [INFO] [stderr] --> src/config.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 58 | pub struct StrategyConfig { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 76 | pub requote_threshold_ticks: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `StrategyConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `max_order_size` and `max_open_orders` are never read [INFO] [stderr] --> src/config.rs:84:9 [INFO] [stderr] | [INFO] [stderr] 82 | pub struct RiskConfig { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 83 | #[serde(default = "default_max_order_size")] [INFO] [stderr] 84 | pub max_order_size: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 88 | pub max_open_orders: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RiskConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `FeedStale`, `OrderRejected`, and `InvalidData` are never constructed [INFO] [stderr] --> src/errors.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum BotError { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 5 | #[error("feed stale: {0}")] [INFO] [stderr] 6 | FeedStale(&'static str), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 10 | OrderRejected(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 11 | #[error("invalid data: {0}")] [INFO] [stderr] 12 | InvalidData(String), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BotError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `dry_run` is never used [INFO] [stderr] --> src/execution/client.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 23 | impl ExecutionClient { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn dry_run(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `check_order_size` is never used [INFO] [stderr] --> src/risk/limits.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn check_order_size(size: f64, cfg: &RiskConfig) -> Result<(), BotError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `check_open_orders` is never used [INFO] [stderr] --> src/risk/limits.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn check_open_orders(count: u32, cfg: &RiskConfig) -> Result<(), BotError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `set_token_mapping`, `yes_qty`, and `no_qty` are never used [INFO] [stderr] --> src/state/inventory.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl InventoryState { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn set_token_mapping(&mut self, _yes_token: &str, _no_token: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn yes_qty(&self) -> f64 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | pub fn no_qty(&self) -> f64 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get` is never used [INFO] [stderr] --> src/state/orderbook.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl OrderBookStore { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn get(&self, asset_id: &str) -> Option<&OrderBookSnapshot> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `last_reconcile_ms` is never read [INFO] [stderr] --> src/state/orders.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct OrdersState { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 9 | last_reconcile_ms: i64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OrdersState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `open_order_count`, `open_orders`, and `mark_reconciled` are never used [INFO] [stderr] --> src/state/orders.rs:88:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl OrdersState { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 88 | pub fn open_order_count(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub fn open_orders(&self) -> Vec<&LiveOrder> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 106 | pub fn mark_reconciled(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `fill_ids` is never read [INFO] [stderr] --> src/state/pnl.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct PnlState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 10 | fill_ids: HashSet, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PnlState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `path` is never read [INFO] [stderr] --> src/storage/file_log.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct EventFileLogger { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] 10 | path: PathBuf, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `EventFileLogger` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `path` is never used [INFO] [stderr] --> src/storage/file_log.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl EventFileLogger { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn path(&self) -> &Path { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `asset_id`, `best_bid`, `best_ask`, `best_bid_size`, `best_ask_size`, and `spread` are never read [INFO] [stderr] --> src/types.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct OrderBookSnapshot { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] 31 | pub asset_id: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 32 | pub best_bid: f64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 33 | pub best_ask: f64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 34 | pub best_bid_size: f64, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 35 | pub best_ask_size: f64, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 36 | pub midpoint: f64, [INFO] [stderr] 37 | pub spread: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OrderBookSnapshot` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `clamp` is never used [INFO] [stderr] --> src/utils/math.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn clamp(value: f64, min: f64, max: f64) -> f64 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `polymarket-btc-hft-bot` (bin "polymarket-btc-hft-bot" test) generated 16 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/polymarket_btc_hft_bot-93dedf47f7c7e548) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4e49523d0bf623d21bd28c449257b60ecb2ff4b0d6a2fc36cf0a687666802212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e49523d0bf623d21bd28c449257b60ecb2ff4b0d6a2fc36cf0a687666802212", kill_on_drop: false }` [INFO] [stdout] 4e49523d0bf623d21bd28c449257b60ecb2ff4b0d6a2fc36cf0a687666802212