[INFO] cloning repository https://github.com/chenjunx/poly-executor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chenjunx/poly-executor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchenjunx%2Fpoly-executor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchenjunx%2Fpoly-executor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 85180489c25abbcd5fe12c23da8d31eb541296d7 [INFO] checking chenjunx/poly-executor against try#24e1a22664233bce1f9b5dc6eee7c1f74327e28c for pr-159343 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchenjunx%2Fpoly-executor" "/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/chenjunx/poly-executor [INFO] finished tweaking git repo https://github.com/chenjunx/poly-executor [INFO] tweaked toml for git repo https://github.com/chenjunx/poly-executor written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chenjunx/poly-executor on toolchain 24e1a22664233bce1f9b5dc6eee7c1f74327e28c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chenjunx/poly-executor 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" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a [INFO] running `Command { std: "docker" "start" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a", 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" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking typenum v1.20.0 [INFO] [stderr] Compiling unicode-segmentation v1.13.2 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking keccak v0.1.6 [INFO] [stderr] Checking const-hex v1.18.1 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.15 [INFO] [stderr] Compiling cc v1.2.61 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking rustc-hash v2.1.2 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Checking mio v1.2.0 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking rustls-pki-types v1.14.1 [INFO] [stderr] Compiling aws-lc-rs v1.16.3 [INFO] [stderr] Compiling winnow v0.7.15 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling syn-solidity v1.5.7 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling hashbrown v0.17.0 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking alloy-rlp v0.3.15 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking tokio v1.52.1 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking ruint v1.18.0 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha3 v0.10.9 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling aws-lc-sys v0.40.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling alloy-sol-type-parser v1.5.7 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking nybbles v0.4.8 [INFO] [stderr] Checking bitflags v2.11.1 [INFO] [stderr] Checking webpki-roots v1.0.7 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking rustls-native-certs v0.8.3 [INFO] [stderr] Checking futures-utils-wasm v0.1.0 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking iri-string v0.7.12 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling num_enum_derive v0.7.6 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Compiling pin-project-internal v1.1.11 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking num_enum v0.7.6 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling siphasher v1.0.2 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Checking data-encoding v2.11.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Compiling phf_shared v0.13.1 [INFO] [stderr] Checking lru v0.16.4 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling phf_generator v0.13.1 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking pin-project v1.1.11 [INFO] [stderr] Compiling rust_decimal v1.41.0 [INFO] [stderr] Checking simd-adler32 v0.3.9 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking winnow v1.0.2 [INFO] [stderr] Checking chacha20 v0.10.0 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Compiling phf_macros v0.13.1 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking rand v0.9.4 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking halfbrown v0.2.5 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling alloy-primitives v1.5.7 [INFO] [stderr] Checking toml_parser v1.1.2+spec-1.1.0 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling serde_with_macros v3.18.0 [INFO] [stderr] Compiling alloy-tx-macros v1.8.3 [INFO] [stderr] Compiling bon-macros v3.9.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking serde_spanned v1.1.1 [INFO] [stderr] Checking toml_datetime v1.1.1+spec-1.1.0 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking ron v0.12.1 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking toml v1.1.2+spec-1.1.0 [INFO] [stderr] Checking backoff v0.4.0 [INFO] [stderr] Checking yaml-rust2 v0.10.4 [INFO] [stderr] Checking value-trait v0.10.1 [INFO] [stderr] Checking alloy-json-abi v1.5.7 [INFO] [stderr] Checking alloy-eip2124 v0.2.0 [INFO] [stderr] Checking alloy-eip2930 v0.2.3 [INFO] [stderr] Checking alloy-eip7928 v0.3.5 [INFO] [stderr] Checking alloy-eip7702 v0.6.3 [INFO] [stderr] Checking alloy-serde v1.8.3 [INFO] [stderr] Checking alloy-trie v0.9.5 [INFO] [stderr] Checking alloy-signer v1.8.3 [INFO] [stderr] Checking alloy-chains v0.2.34 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Checking phf v0.13.1 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking rust-ini v0.21.3 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking rand v0.10.1 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking serde_with v3.18.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking uuid v1.23.1 [INFO] [stderr] Checking arc-swap v1.9.1 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking serde_html_form v0.4.0 [INFO] [stderr] Checking secrecy v0.10.3 [INFO] [stderr] Compiling strum_macros v0.28.0 [INFO] [stderr] Compiling rust_decimal_macros v1.40.0 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Checking thread-id v5.1.0 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking mock_instant v0.6.0 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking simdutf8 v0.1.5 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Checking config v0.15.22 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Checking tokio-socks v0.5.2 [INFO] [stderr] Checking log4rs v1.4.0 [INFO] [stderr] Checking simd-json v0.14.3 [INFO] [stderr] Compiling alloy-sol-macro-input v1.5.7 [INFO] [stderr] Compiling alloy-sol-macro-expander v1.5.7 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking alloy-eips v1.8.3 [INFO] [stderr] Checking bon v3.9.1 [INFO] [stderr] Checking alloy-consensus v1.8.3 [INFO] [stderr] Compiling alloy-sol-macro v1.5.7 [INFO] [stderr] Checking alloy-sol-types v1.5.7 [INFO] [stderr] Checking alloy-network-primitives v1.8.3 [INFO] [stderr] Checking alloy-consensus-any v1.8.3 [INFO] [stderr] Checking alloy-json-rpc v1.8.3 [INFO] [stderr] Checking alloy-rpc-types-eth v1.8.3 [INFO] [stderr] Checking alloy-dyn-abi v1.5.7 [INFO] [stderr] Checking alloy-transport v1.8.3 [INFO] [stderr] Checking alloy-core v1.5.7 [INFO] [stderr] Checking rusqlite v0.32.1 [INFO] [stderr] Checking alloy-rpc-types-any v1.8.3 [INFO] [stderr] Checking alloy-network v1.8.3 [INFO] [stderr] Checking alloy-signer-local v1.8.3 [INFO] [stderr] Checking rustls-webpki v0.103.13 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.7.0 [INFO] [stderr] Checking tungstenite v0.29.0 [INFO] [stderr] Checking tungstenite v0.28.0 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking reqwest v0.13.3 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking tokio-tungstenite v0.29.0 [INFO] [stderr] Checking tokio-tungstenite v0.28.0 [INFO] [stderr] Checking alloy-transport-http v1.8.3 [INFO] [stderr] Checking alloy-rpc-client v1.8.3 [INFO] [stderr] Checking alloy-provider v1.8.3 [INFO] [stderr] Checking alloy-contract v1.8.3 [INFO] [stderr] Checking alloy v1.8.3 [INFO] [stderr] Checking polymarket_client_sdk_v2 v0.5.1 [INFO] [stderr] Checking poly-executor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `build_market_maker_strategy_from_csv_file` is never used [INFO] [stdout] --> src/main.rs:306:4 [INFO] [stdout] | [INFO] [stdout] 306 | fn build_market_maker_strategy_from_csv_file( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `subscribe` is never used [INFO] [stdout] --> src/account.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl AccountReadHandle { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn subscribe(&self) -> tokio::sync::watch::Receiver> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `order` and `liquidity_reward` are never read [INFO] [stdout] --> src/config.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) order: OrderConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub(crate) liquidity_reward: LiquidityRewardConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` 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 `api_key`, `api_secret`, and `passphrase` are never read [INFO] [stdout] --> src/config.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) struct AuthConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 50 | pub(crate) api_key: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 51 | pub(crate) api_secret: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | pub(crate) passphrase: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthConfig` 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 `size_usdc` is never read [INFO] [stdout] --> src/config.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) struct OrderConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 59 | pub(crate) size_usdc: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config.rs:71:16 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) struct LiquidityRewardConfig { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 70 | #[serde(default)] [INFO] [stdout] 71 | pub(crate) enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | #[serde(default)] [INFO] [stdout] 73 | pub(crate) file: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | #[serde(default = "default_liquidity_reward_source")] [INFO] [stdout] 75 | pub(crate) source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | #[serde(default = "default_liquidity_reward_pool_market_count")] [INFO] [stdout] 77 | pub(crate) pool_market_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[serde(default)] [INFO] [stdout] 79 | pub(crate) pool_max_rewards_min_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | #[serde(default)] [INFO] [stdout] 81 | pub(crate) monitor_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | #[serde(default)] [INFO] [stdout] 83 | pub(crate) simulation: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 84 | #[serde(default = "default_liquidity_reward_balance_cooldown_secs")] [INFO] [stdout] 85 | pub(crate) balance_cooldown_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidityRewardConfig` 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 `LiquidityRewardFill`, `LiquidityRewardUnwindAction`, `LiquidityRewardPoolRemoval`, `LiquidityRewardManualAttention`, and `OrderSubmitted` are never constructed [INFO] [stdout] --> src/notification.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) enum NotificationEvent { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 24 | LiquidityRewardFill(LiquidityRewardFillNotification), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | LiquidityRewardUnwindAction(LiquidityRewardUnwindActionNotification), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | LiquidityRewardPoolRemoval(LiquidityRewardPoolRemovalNotification), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | LiquidityRewardManualAttention(LiquidityRewardManualAttentionNotification), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | OrderSubmitted(OrderSubmittedNotification), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotificationEvent` 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: variant `AllForStrategy` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 98 | pub enum CancelScope { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 110 | AllForStrategy, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelScope` 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 `LocalId` and `ExchangeId` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub enum OrderQueryLookup { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 122 | LocalId(LocalOrderId), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 123 | ExchangeId(ExchangeOrderId), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderQueryLookup` 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: variant `Order` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub enum OrderQueryRequest { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 132 | Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderQueryRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Expired`, `RemoteRejected`, `Orphan`, and `GatewayHealth` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 195 | pub enum OrderEventKind { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 201 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 202 | LocalRejected, [INFO] [stdout] 203 | RemoteRejected, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | Orphan, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | GatewayHealth, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderEventKind` 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 `Polymarket` and `Simulation` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 240 | pub enum Venue { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 241 | Polymarket, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 242 | Simulation, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Venue` 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: variant `Expired` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum CancelReason { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 257 | Requested, [INFO] [stdout] 258 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelReason` 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 `DuplicateLocalId`, `InvalidRequest`, and `GatewayRecovering` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 264 | pub enum LocalRejectReason { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 265 | DuplicateLocalId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 266 | RiskRejected { code: Arc, reason: Arc }, [INFO] [stdout] 267 | InvalidRequest { reason: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 268 | GatewayRecovering, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalRejectReason` 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 `Place`, `Cancel`, and `Query` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 272 | pub enum GatewayOperation { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 273 | Place, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 274 | Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 275 | Query, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayOperation` 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 `SigningFailed`, `Timeout`, `StateConflict`, and `PersistenceFailed` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 279 | pub enum FailureKind { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 280 | SigningFailed { message: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 281 | Transport { message: Arc }, [INFO] [stdout] 282 | Timeout { operation: GatewayOperation }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 283 | StateConflict { message: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 284 | MissingSignedPayloadAfterRestart, [INFO] [stdout] 285 | PersistenceFailed { message: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FailureKind` 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 `Recovering`, `Live`, and `Degraded` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:290:5 [INFO] [stdout] | [INFO] [stdout] 289 | pub enum GatewayStatus { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 290 | Recovering, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 291 | Live, [INFO] [stdout] | ^^^^ [INFO] [stdout] 292 | Degraded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayStatus` 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 `Expired`, `RemoteRejected`, `Orphan`, and `GatewayHealth` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 296 | pub enum OrderEventPayload { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 318 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | RemoteRejected { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | Orphan { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | GatewayHealth { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderEventPayload` 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: struct `NoopSettlementActivityReader` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:538:12 [INFO] [stdout] | [INFO] [stdout] 538 | pub struct NoopSettlementActivityReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WsPartialFill` and `Timeout` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:625:5 [INFO] [stdout] | [INFO] [stdout] 589 | pub enum GatewayObservation { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 625 | WsPartialFill { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 634 | Timeout { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayObservation` 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: struct `AllowAllRiskCheck` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:1455:12 [INFO] [stdout] | [INFO] [stdout] 1455 | pub struct AllowAllRiskCheck; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/order/order_gateway.rs:1483:12 [INFO] [stdout] | [INFO] [stdout] 1482 | impl OrderGateway { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 1483 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1502 | pub fn new_with_submitter( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1544 | pub fn new_for_test( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1563 | pub fn new_for_test_with_store( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1583 | pub fn new_for_test_with_store_and_submitter( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1604 | pub fn new_for_test_with_store_and_submitters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1649 | pub fn new_for_test_with_store_and_remote_reader( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1738 | pub fn recover_from_gateway_store(&mut self) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1898 | pub async fn run_one_request_for_test(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `subscribe_for_strategy` is never used [INFO] [stdout] --> src/order/order_gateway.rs:2242:12 [INFO] [stdout] | [INFO] [stdout] 2229 | impl OrderEventRing { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 2242 | pub fn subscribe_for_strategy(&self, strategy_id: StrategyId) -> OrderEventSubscriber { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Empty` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:2269:5 [INFO] [stdout] | [INFO] [stdout] 2268 | pub enum OrderEventPollError { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 2269 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderEventPollError` 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 `try_recv_relevant` is never used [INFO] [stdout] --> src/order/order_gateway.rs:2275:12 [INFO] [stdout] | [INFO] [stdout] 2274 | impl OrderEventSubscriber { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 2275 | pub fn try_recv_relevant(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recover_gateway_orders_for_test` is never used [INFO] [stdout] --> src/order/order_gateway.rs:2664:8 [INFO] [stdout] | [INFO] [stdout] 2664 | pub fn recover_gateway_orders_for_test( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query_order` is never used [INFO] [stdout] --> src/order/order_gateway.rs:2732:18 [INFO] [stdout] | [INFO] [stdout] 2694 | impl OrderGatewayHandle { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 2732 | pub async fn query_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `avg_cost`, `theoretical_min`, and `theoretical_max` are never used [INFO] [stdout] --> src/position/position_engine.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl PositionEntrySnapshot { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 30 | pub fn avg_cost(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn theoretical_min(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn theoretical_max(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionReconciliationAdjustment` is never constructed [INFO] [stdout] --> src/position/position_engine.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub struct PositionReconciliationAdjustment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_for_test` is never used [INFO] [stdout] --> src/position/position_engine.rs:770:12 [INFO] [stdout] | [INFO] [stdout] 733 | impl PositionIngestor { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 770 | pub fn new_for_test( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `status` is never used [INFO] [stdout] --> src/position/position_engine.rs:819:12 [INFO] [stdout] | [INFO] [stdout] 807 | impl PositionIngestHandle { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 819 | pub fn status(&self) -> PositionEngineStatus { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scan_strategy` is never used [INFO] [stdout] --> src/position/position_engine.rs:885:12 [INFO] [stdout] | [INFO] [stdout] 871 | impl PositionReadHandle { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 885 | pub fn scan_strategy(&self, strategy_id: &str) -> Vec<(String, PositionEntrySnapshot)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_reconciliation_adjustment` is never used [INFO] [stdout] --> src/position/position_engine.rs:1031:12 [INFO] [stdout] | [INFO] [stdout] 930 | impl PositionKeeper { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1031 | pub fn apply_reconciliation_adjustment( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Midpoint` is never constructed [INFO] [stdout] --> src/position/valuation.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum MarkPriceKind { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 11 | BestBid, [INFO] [stdout] 12 | Midpoint, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarkPriceKind` 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: enum `RiskLayer` is never used [INFO] [stdout] --> src/risk/risk.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum RiskLayer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketTopOfBook` is never constructed [INFO] [stdout] --> src/risk/risk.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct MarketTopOfBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `best_bid_ask` and `mid_price` are never used [INFO] [stdout] --> src/risk/risk.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait MarketRiskReader: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 32 | fn best_bid_ask(&self, token_id: &str) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | fn mid_price(&self, token_id: &str) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gateway_state` and `market_reader` are never read [INFO] [stdout] --> src/risk/risk.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct RiskContext<'a> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 170 | pub gateway_state: &'a GatewayState, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub market_reader: &'a dyn MarketRiskReader, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `layer` is never used [INFO] [stdout] --> src/risk/risk.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub trait RiskRule: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 179 | fn id(&self) -> &'static str; [INFO] [stdout] 180 | fn layer(&self) -> RiskLayer; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/risk/risk.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 198 | impl GatewayRiskEngine { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 199 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status` and `last_mid` are never read [INFO] [stdout] --> src/storage.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct StoredOrder { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub last_mid: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoredOrder` 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: struct `StoredLiquidityRewardSharedState` is never constructed [INFO] [stdout] --> src/storage.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct StoredLiquidityRewardSharedState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StoredLiquidityRewardSideState` is never constructed [INFO] [stdout] --> src/storage.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct StoredLiquidityRewardSideState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StoredRewardMarketPoolState` is never constructed [INFO] [stdout] --> src/storage.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct StoredRewardMarketPoolState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RemovedLiquidityRewardPoolEntry` is never constructed [INFO] [stdout] --> src/storage.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct RemovedLiquidityRewardPoolEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RewardMarketPoolReplaceResult` is never constructed [INFO] [stdout] --> src/storage.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct RewardMarketPoolReplaceResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StoredRewardMarketPoolMeta` is never constructed [INFO] [stdout] --> src/storage.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct StoredRewardMarketPoolMeta { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RewardMarketPoolStorageEntry` is never constructed [INFO] [stdout] --> src/storage.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct RewardMarketPoolStorageEntry<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionSnapshotRow` is never constructed [INFO] [stdout] --> src/storage.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct PositionSnapshotRow<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionOpenOrderSnapshotRow` is never constructed [INFO] [stdout] --> src/storage.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct PositionOpenOrderSnapshotRow<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionReconciliationInsert` is never constructed [INFO] [stdout] --> src/storage.rs:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | pub struct PositionReconciliationInsert<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActiveRewardMarketPoolEntry` is never constructed [INFO] [stdout] --> src/storage.rs:311:12 [INFO] [stdout] | [INFO] [stdout] 311 | pub struct ActiveRewardMarketPoolEntry { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/storage.rs:598:12 [INFO] [stdout] | [INFO] [stdout] 352 | impl OrderStore { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn upsert_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 643 | pub fn update_order_remote_and_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 673 | pub fn update_order_status_by_local( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 723 | pub fn upsert_liquidity_reward_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 781 | pub fn upsert_liquidity_reward_shared_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | pub fn upsert_liquidity_reward_side_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1150 | pub fn insert_position_snapshot_rows( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1219 | pub fn insert_position_reconciliation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1362 | pub fn load_max_order_gateway_event_seq(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1373 | pub fn load_max_gateway_seq(&self) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1511 | pub fn load_active_orders(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1544 | pub fn load_liquidity_reward_shared_states( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1578 | pub fn load_liquidity_reward_side_states( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/storage.rs:1944:12 [INFO] [stdout] | [INFO] [stdout] 1699 | impl MarketStore { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1944 | pub fn replace_reward_market_pool_entries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2014 | pub fn upsert_reward_market_pool_entry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2060 | pub fn load_latest_reward_market_pool_meta( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2098 | pub fn load_active_reward_market_pool_entries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2122 | pub fn load_liquidity_reward_pool_entries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2152 | pub fn halt_liquidity_reward_pool_entry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2187 | pub fn update_reward_market_pool_token1_check( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2217 | pub fn kick_reward_market_pool_entry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2239 | pub fn get_reward_market_pool_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiquidityRewardPoolSelection` is never constructed [INFO] [stdout] --> src/storage.rs:2281:8 [INFO] [stdout] | [INFO] [stdout] 2281 | struct LiquidityRewardPoolSelection<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_selected_entries_missing_from_next_pool` is never used [INFO] [stdout] --> src/storage.rs:2287:4 [INFO] [stdout] | [INFO] [stdout] 2287 | fn load_selected_entries_missing_from_next_pool( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mark_liquidity_reward_pool_selection_in_conn` is never used [INFO] [stdout] --> src/storage.rs:2318:4 [INFO] [stdout] | [INFO] [stdout] 2318 | fn mark_liquidity_reward_pool_selection_in_conn( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_liquidity_reward_pool_entries` is never used [INFO] [stdout] --> src/storage.rs:2351:4 [INFO] [stdout] | [INFO] [stdout] 2351 | fn select_liquidity_reward_pool_entries<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `active_reward_market_pool_entry_from_row` is never used [INFO] [stdout] --> src/storage.rs:2388:4 [INFO] [stdout] | [INFO] [stdout] 2388 | fn active_reward_market_pool_entry_from_row( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `side_to_str` is never used [INFO] [stdout] --> src/storage.rs:2451:4 [INFO] [stdout] | [INFO] [stdout] 2451 | fn side_to_str(side: QuoteSide) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dec_percent` is never used [INFO] [stdout] --> src/strategies/market_maker.rs:1177:4 [INFO] [stdout] | [INFO] [stdout] 1177 | fn dec_percent(value: u32) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_csv`, `from_pool_entries`, `from_pool_entries_with_config`, and `from_rules` are never used [INFO] [stdout] --> src/strategies/market_maker.rs:1225:12 [INFO] [stdout] | [INFO] [stdout] 1224 | impl MarketMakerStrategy { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] 1225 | pub fn from_csv(csv_file: &str) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1286 | pub fn from_pool_entries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1292 | pub fn from_pool_entries_with_config( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1310 | pub fn from_rules(rules: Vec) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bids` and `asks` are never read [INFO] [stdout] --> src/strategies/strategy.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct CleanOrderbook { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub bids: Arc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub asks: Arc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CleanOrderbook` 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 `asset_id`, `topics`, and `book` are never read [INFO] [stdout] --> src/strategies/strategy.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct MarketAssetEvent { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 50 | pub asset_id: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 51 | pub topics: Arc<[Arc]>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | pub book: Arc, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketAssetEvent` 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: struct `RewardPoolRemovalEvent` is never constructed [INFO] [stdout] --> src/strategies/strategy.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct RewardPoolRemovalEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PrivateRiskDecision` is never used [INFO] [stdout] --> src/strategies/strategy.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | pub enum PrivateRiskDecision { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PrivateRiskCheck` is never used [INFO] [stdout] --> src/strategies/strategy.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | pub trait PrivateRiskCheck: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllowAllPrivateRisk` is never constructed [INFO] [stdout] --> src/strategies/strategy.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub struct AllowAllPrivateRisk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StrategyEvent` is never used [INFO] [stdout] --> src/strategies/strategy.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 154 | pub enum StrategyEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `topic` and `tokens` are never read [INFO] [stdout] --> src/strategies/strategy.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 159 | pub struct TopicRegistration { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 160 | pub topic: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 161 | pub tokens: Arc<[String]>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TopicRegistration` 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 `TrendFollowing`, `MeanReversion`, `Arbitrage`, `Hedging`, `Liquidation`, and `Monitoring` are never constructed [INFO] [stdout] --> src/strategies/strategy.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 165 | pub enum StrategyKind { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 168 | TrendFollowing, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 169 | MeanReversion, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 170 | Arbitrage, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 171 | Hedging, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 172 | Liquidation, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 173 | Monitoring, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyKind` 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 `topic_tokens` is never read [INFO] [stdout] --> src/strategies/strategy.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct StrategyRegistration { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 181 | pub topic_tokens: Arc<[TopicRegistration]>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyRegistration` 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 `name` is never used [INFO] [stdout] --> src/strategies/strategy.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 230 | pub trait Strategy: Send + 'static { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 231 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `snap_price_to_tick` is never used [INFO] [stdout] --> src/tick_size.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn snap_price_to_tick(price: Decimal, tick: Decimal, is_buy: bool) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_for_tokens` is never used [INFO] [stdout] --> src/tick_size.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn load_for_tokens(tokens: &[String], auth: &AuthConfig, map: &TickSizeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `order` and `liquidity_reward` are never read [INFO] [stdout] --> src/config.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) order: OrderConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub(crate) liquidity_reward: LiquidityRewardConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has a derived impl for the trait `Debug`, but this is 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: fields `api_key`, `api_secret`, and `passphrase` are never read [INFO] [stdout] --> src/config.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub(crate) struct AuthConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 50 | pub(crate) api_key: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 51 | pub(crate) api_secret: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | pub(crate) passphrase: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthConfig` 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 `size_usdc` is never read [INFO] [stdout] --> src/config.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) struct OrderConfig { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 59 | pub(crate) size_usdc: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config.rs:71:16 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) struct LiquidityRewardConfig { [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 70 | #[serde(default)] [INFO] [stdout] 71 | pub(crate) enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | #[serde(default)] [INFO] [stdout] 73 | pub(crate) file: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | #[serde(default = "default_liquidity_reward_source")] [INFO] [stdout] 75 | pub(crate) source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | #[serde(default = "default_liquidity_reward_pool_market_count")] [INFO] [stdout] 77 | pub(crate) pool_market_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[serde(default)] [INFO] [stdout] 79 | pub(crate) pool_max_rewards_min_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | #[serde(default)] [INFO] [stdout] 81 | pub(crate) monitor_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | #[serde(default)] [INFO] [stdout] 83 | pub(crate) simulation: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 84 | #[serde(default = "default_liquidity_reward_balance_cooldown_secs")] [INFO] [stdout] 85 | pub(crate) balance_cooldown_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidityRewardConfig` 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: associated function `from_sender` is never used [INFO] [stdout] --> src/notification.rs:154:19 [INFO] [stdout] | [INFO] [stdout] 152 | impl Notifier { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 153 | #[cfg(test)] [INFO] [stdout] 154 | pub(crate) fn from_sender(tx: mpsc::Sender) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Expired`, `RemoteRejected`, `Orphan`, and `GatewayHealth` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 195 | pub enum OrderEventKind { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 201 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 202 | LocalRejected, [INFO] [stdout] 203 | RemoteRejected, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | Orphan, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | GatewayHealth, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderEventKind` 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 `Polymarket` and `Simulation` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 240 | pub enum Venue { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 241 | Polymarket, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 242 | Simulation, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Venue` 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: variant `Expired` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 256 | pub enum CancelReason { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 257 | Requested, [INFO] [stdout] 258 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelReason` 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 `InvalidRequest` and `GatewayRecovering` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 264 | pub enum LocalRejectReason { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 267 | InvalidRequest { reason: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 268 | GatewayRecovering, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalRejectReason` 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 `Cancel` and `Query` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 272 | pub enum GatewayOperation { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 273 | Place, [INFO] [stdout] 274 | Cancel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 275 | Query, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayOperation` 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 `SigningFailed`, `Timeout`, `StateConflict`, and `PersistenceFailed` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 279 | pub enum FailureKind { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 280 | SigningFailed { message: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 281 | Transport { message: Arc }, [INFO] [stdout] 282 | Timeout { operation: GatewayOperation }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 283 | StateConflict { message: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 284 | MissingSignedPayloadAfterRestart, [INFO] [stdout] 285 | PersistenceFailed { message: Arc }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FailureKind` 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 `Recovering`, `Live`, and `Degraded` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:290:5 [INFO] [stdout] | [INFO] [stdout] 289 | pub enum GatewayStatus { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 290 | Recovering, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 291 | Live, [INFO] [stdout] | ^^^^ [INFO] [stdout] 292 | Degraded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GatewayStatus` 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 `Expired`, `RemoteRejected`, `Orphan`, and `GatewayHealth` are never constructed [INFO] [stdout] --> src/order/order_gateway.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 296 | pub enum OrderEventPayload { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 318 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | RemoteRejected { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 333 | Orphan { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | GatewayHealth { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderEventPayload` 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: struct `NoopSettlementActivityReader` is never constructed [INFO] [stdout] --> src/order/order_gateway.rs:538:12 [INFO] [stdout] | [INFO] [stdout] 538 | pub struct NoopSettlementActivityReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_with_submitter` are never used [INFO] [stdout] --> src/order/order_gateway.rs:1483:12 [INFO] [stdout] | [INFO] [stdout] 1482 | impl OrderGateway { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 1483 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1502 | pub fn new_with_submitter( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RiskLayer` is never used [INFO] [stdout] --> src/risk/risk.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum RiskLayer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketTopOfBook` is never constructed [INFO] [stdout] --> src/risk/risk.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct MarketTopOfBook { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `best_bid_ask` and `mid_price` are never used [INFO] [stdout] --> src/risk/risk.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait MarketRiskReader: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 32 | fn best_bid_ask(&self, token_id: &str) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | fn mid_price(&self, token_id: &str) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gateway_state` and `market_reader` are never read [INFO] [stdout] --> src/risk/risk.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct RiskContext<'a> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 170 | pub gateway_state: &'a GatewayState, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub market_reader: &'a dyn MarketRiskReader, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `layer` is never used [INFO] [stdout] --> src/risk/risk.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub trait RiskRule: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 179 | fn id(&self) -> &'static str; [INFO] [stdout] 180 | fn layer(&self) -> RiskLayer; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status` and `last_mid` are never read [INFO] [stdout] --> src/storage.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct StoredOrder { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | pub last_mid: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoredOrder` 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: struct `StoredLiquidityRewardSharedState` is never constructed [INFO] [stdout] --> src/storage.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct StoredLiquidityRewardSharedState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StoredLiquidityRewardSideState` is never constructed [INFO] [stdout] --> src/storage.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct StoredLiquidityRewardSideState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition_id` and `question` are never read [INFO] [stdout] --> src/storage.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct StoredRewardMarketPoolState { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] 63 | pub condition_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 64 | pub market_slug: Option, [INFO] [stdout] 65 | pub question: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StoredRewardMarketPoolState` 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 `question`, `market_competitiveness`, `liquidity_reward_halted`, `liquidity_reward_halted_at_ms`, `liquidity_reward_halt_reason`, and `liquidity_reward_halted_pool_version` are never read [INFO] [stdout] --> src/storage.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 311 | pub struct ActiveRewardMarketPoolEntry { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 314 | pub question: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub market_competitiveness: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub liquidity_reward_halted: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 332 | pub liquidity_reward_halted_at_ms: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 333 | pub liquidity_reward_halt_reason: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 334 | pub liquidity_reward_halted_pool_version: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActiveRewardMarketPoolEntry` 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: multiple methods are never used [INFO] [stdout] --> src/storage.rs:598:12 [INFO] [stdout] | [INFO] [stdout] 352 | impl OrderStore { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 598 | pub fn upsert_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 643 | pub fn update_order_remote_and_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 673 | pub fn update_order_status_by_local( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 723 | pub fn upsert_liquidity_reward_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 781 | pub fn upsert_liquidity_reward_shared_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 806 | pub fn upsert_liquidity_reward_side_state( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1511 | pub fn load_active_orders(&self) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1544 | pub fn load_liquidity_reward_shared_states( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1578 | pub fn load_liquidity_reward_side_states( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `side_to_str` is never used [INFO] [stdout] --> src/storage.rs:2451:4 [INFO] [stdout] | [INFO] [stdout] 2451 | fn side_to_str(side: QuoteSide) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dec_percent` is never used [INFO] [stdout] --> src/strategies/market_maker.rs:1177:4 [INFO] [stdout] | [INFO] [stdout] 1177 | fn dec_percent(value: u32) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RewardPoolRemovalEvent` is never constructed [INFO] [stdout] --> src/strategies/strategy.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct RewardPoolRemovalEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reject` is never constructed [INFO] [stdout] --> src/strategies/strategy.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub enum PrivateRiskDecision { [INFO] [stdout] | ------------------- variant in this enum [INFO] [stdout] 127 | Allow, [INFO] [stdout] 128 | Reject { code: Arc, reason: Arc }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrivateRiskDecision` 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: enum `StrategyEvent` is never used [INFO] [stdout] --> src/strategies/strategy.rs:154:10 [INFO] [stdout] | [INFO] [stdout] 154 | pub enum StrategyEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TrendFollowing`, `MeanReversion`, `Arbitrage`, `Hedging`, and `Liquidation` are never constructed [INFO] [stdout] --> src/strategies/strategy.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 165 | pub enum StrategyKind { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 168 | TrendFollowing, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 169 | MeanReversion, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 170 | Arbitrage, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 171 | Hedging, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 172 | Liquidation, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrategyKind` 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 `snap_price_to_tick` is never used [INFO] [stdout] --> src/tick_size.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn snap_price_to_tick(price: Decimal, tick: Decimal, is_buy: bool) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_for_tokens` is never used [INFO] [stdout] --> src/tick_size.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn load_for_tokens(tokens: &[String], auth: &AuthConfig, map: &TickSizeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 34s [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 5` [INFO] running `Command { std: "docker" "inspect" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a", kill_on_drop: false }` [INFO] [stdout] 3a7a1d30825892a6148fd996ddb1be5a8f786731f1f86711e3934b184cd4ed2a