[INFO] cloning repository https://github.com/xeodus/moon-cave [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xeodus/moon-cave" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxeodus%2Fmoon-cave", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxeodus%2Fmoon-cave'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89f8e1ad2a0738e33ee57483384fdff26ea17eb3 [INFO] checking xeodus/moon-cave against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxeodus%2Fmoon-cave" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xeodus/moon-cave [INFO] finished tweaking git repo https://github.com/xeodus/moon-cave [INFO] tweaked toml for git repo https://github.com/xeodus/moon-cave written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xeodus/moon-cave on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xeodus/moon-cave 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v1.12.1 [INFO] [stderr] Downloaded rusqlite v0.37.0 [INFO] [stderr] Downloaded regex-syntax v0.8.7 [INFO] [stderr] Downloaded regex-automata v0.4.12 [INFO] [stderr] Downloaded libsqlite3-sys v0.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbb16216d163ba0f6f27b0d6c768e7b3b5dd9672461f61b1f3a8090059faeb84 [INFO] running `Command { std: "docker" "start" "-a" "cbb16216d163ba0f6f27b0d6c768e7b3b5dd9672461f61b1f3a8090059faeb84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbb16216d163ba0f6f27b0d6c768e7b3b5dd9672461f61b1f3a8090059faeb84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb16216d163ba0f6f27b0d6c768e7b3b5dd9672461f61b1f3a8090059faeb84", kill_on_drop: false }` [INFO] [stdout] cbb16216d163ba0f6f27b0d6c768e7b3b5dd9672461f61b1f3a8090059faeb84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 202e07170a5284fcc09de5e890f6adbdb3dd617b25021885eb74f4b7da50982e [INFO] running `Command { std: "docker" "start" "-a" "202e07170a5284fcc09de5e890f6adbdb3dd617b25021885eb74f4b7da50982e", kill_on_drop: false }` [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling cc v1.2.14 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling openssl v0.10.70 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling native-tls v0.2.13 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.7 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling libsqlite3-sys v0.35.0 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking winnow v0.7.12 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking toml_writer v1.0.2 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking rusqlite v0.37.0 [INFO] [stderr] Compiling openssl-sys v0.9.105 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking regex-automata v0.4.12 [INFO] [stderr] Checking tempfile v3.16.0 [INFO] [stderr] Checking toml_parser v1.0.1 [INFO] [stderr] Checking regex v1.12.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking serde_spanned v1.0.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_datetime v0.7.0 [INFO] [stderr] Checking toml v0.9.2 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tungstenite v0.19.0 [INFO] [stderr] Checking tokio-tungstenite v0.19.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.15 [INFO] [stderr] Checking sniper_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `arg` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{arg, Parser}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arg` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::{arg, Parser}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange` is never read [INFO] [stdout] --> src/data.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct OrderReq { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub exchange: Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderReq` 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: fields `open`, `high`, `low`, `volume`, and `timestamp` are never read [INFO] [stdout] --> src/data.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Candles { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 41 | pub open: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | pub high: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub low: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | pub close: f64, [INFO] [stdout] 45 | pub volume: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | pub timestamp: i64 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Candles` 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 `active` is never read [INFO] [stdout] --> src/data.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct GridOrder { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | pub active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridOrder` 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 `TechnicalIndicators` is never constructed [INFO] [stdout] --> src/data.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct TechnicalIndicators; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrendDetector` is never constructed [INFO] [stdout] --> src/data.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct TrendDetector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_market_data_bn` and `ws_connect` are never used [INFO] [stdout] --> src/exchange/binance_auth.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl BinanceAuth { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn handle_market_data_bn(&mut self, ordermap: &mut HashMap, data: &Value, symbol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn ws_connect(&mut self, req: &OrderReq) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_market_data_kc` and `ws_connect` are never used [INFO] [stdout] --> src/exchange/kucoin_auth.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl KuCoinAuth { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn handle_market_data_kc(&mut self, ordermap: &mut HashMap, data: &Value, symbol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn ws_connect(&mut self, req: &OrderReq) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cancel_order` is never used [INFO] [stdout] --> src/exchange/config.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait RestClient { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 10 | async fn place_order(&self, req: &OrderReq) -> Result; [INFO] [stdout] 11 | async fn cancel_order(&self, req: &OrderReq) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `db_save_orders` and `db_update_status` are never used [INFO] [stdout] --> src/store.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl OrderStore { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn db_save_orders(&mut self, o: &GridOrder) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn db_update_status(&mut self, o: &GridOrder) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `compute_generic_levels` are never used [INFO] [stdout] --> src/indicator.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl TrendDetector { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 4 | pub fn new(fast_period: usize, slow_period: usize, atr_period: usize, k_atr: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn update(&mut self, c: &Candles) -> (Trend, f64, f64, f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn compute_generic_levels(higher: f64, lower: f64, levels: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `adjust_grid`, `pending_orders`, `get_orders_cancelled`, and `grid_pnl` are never used [INFO] [stdout] --> src/strategy/grid_strategy.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl GridStrategy { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn adjust_grid(&mut self, current_price: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn pending_orders(&self) -> Vec<&GridOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_orders_cancelled(&self) -> Vec<&GridOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn grid_pnl(&self, current_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyCalculations` is never constructed [INFO] [stdout] --> src/strategy/trading_strategy.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct StrategyCalculations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `calculate_trend_strength`, `calculate_position_size`, `calculate_grid_levels`, `calculate_tpsl_levels`, and `validate_signal` are never used [INFO] [stdout] --> src/strategy/trading_strategy.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl StrategyCalculations { [INFO] [stdout] | ------------------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn calculate_trend_strength(candles: &[Candles]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn calculate_position_size(account_balance: f64, risk_pct: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn calculate_grid_levels(center_price: f64, grid_spacing: f64, num_levels: usize, side: Side) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn calculate_tpsl_levels(entry_price: f64, side: Side, risk_reward_ratio: f64, atr: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn validate_signal(candles: &[Candles], trend: Trend, min_volume_ratio: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TradingAlgo` is never used [INFO] [stdout] --> src/strategy/signal_processing.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait TradingAlgo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client_oid`, `status`, `filled_size`, `remaining_size`, and `price` are never read [INFO] [stdout] --> src/websocket/ws_client.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OrderUpdate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 7 | pub client_oid: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub status: OrderStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub filled_size: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub remaining_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub price: f64 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_messages` and `get_orders` are never used [INFO] [stdout] --> src/websocket/ws_client.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait WebSocketClient { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | async fn handle_messages(&mut self, messages: Value) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | async fn get_candles(&self) -> &Vec; [INFO] [stdout] 21 | async fn get_orders(&self) -> &Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `order_updates` are never read [INFO] [stdout] --> src/websocket/binance_ws.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct BinanceClient { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 15 | pub config: WebSocketCfg, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub candles: Vec, [INFO] [stdout] 17 | pub order_updates: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process_candles_data` and `process_order_update` are never used [INFO] [stdout] --> src/websocket/binance_ws.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 22 | impl BinanceClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | async fn process_candles_data(&mut self, data: &Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | async fn process_order_update(&mut self, data: &Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `order_updates` are never read [INFO] [stdout] --> src/websocket/kucoin_ws.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct KuCoinClient { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 12 | pub config: WebSocketCfg, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub candles: Vec, [INFO] [stdout] 14 | pub order_updates: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process_candle_data` and `process_order_update` are never used [INFO] [stdout] --> src/websocket/kucoin_ws.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 19 | impl KuCoinClient { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | async fn process_candle_data(&mut self, data: &Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | async fn process_order_update(&mut self, data: Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate` and `save_to_file` are never used [INFO] [stdout] --> src/config.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn validate(&self) -> Result<(), anyhow::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn save_to_file(&self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `order_store` and `update_tx` are never read [INFO] [stdout] --> src/trading_engine.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | order_store: Arc>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | update_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> src/exchange/kucoin_auth.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | ... self.handle_market_data_kc(&mut grid_orders, data, &req.symbol); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange` is never read [INFO] [stdout] --> src/data.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct OrderReq { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub exchange: Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderReq` 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: fields `open`, `high`, `low`, `volume`, and `timestamp` are never read [INFO] [stdout] --> src/data.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Candles { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 41 | pub open: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | pub high: f64, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub low: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | pub close: f64, [INFO] [stdout] 45 | pub volume: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | pub timestamp: i64 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Candles` 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 `active` is never read [INFO] [stdout] --> src/data.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct GridOrder { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | pub active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridOrder` 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 `TechnicalIndicators` is never constructed [INFO] [stdout] --> src/data.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct TechnicalIndicators; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrendDetector` is never constructed [INFO] [stdout] --> src/data.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct TrendDetector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_market_data_bn` and `ws_connect` are never used [INFO] [stdout] --> src/exchange/binance_auth.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl BinanceAuth { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn handle_market_data_bn(&mut self, ordermap: &mut HashMap, data: &Value, symbol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn ws_connect(&mut self, req: &OrderReq) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_market_data_kc` and `ws_connect` are never used [INFO] [stdout] --> src/exchange/kucoin_auth.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl KuCoinAuth { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn handle_market_data_kc(&mut self, ordermap: &mut HashMap, data: &Value, symbol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn ws_connect(&mut self, req: &OrderReq) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cancel_order` is never used [INFO] [stdout] --> src/exchange/config.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait RestClient { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 10 | async fn place_order(&self, req: &OrderReq) -> Result; [INFO] [stdout] 11 | async fn cancel_order(&self, req: &OrderReq) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `db_save_orders` and `db_update_status` are never used [INFO] [stdout] --> src/store.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl OrderStore { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn db_save_orders(&mut self, o: &GridOrder) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub async fn db_update_status(&mut self, o: &GridOrder) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `compute_generic_levels` are never used [INFO] [stdout] --> src/indicator.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl TrendDetector { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 4 | pub fn new(fast_period: usize, slow_period: usize, atr_period: usize, k_atr: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn update(&mut self, c: &Candles) -> (Trend, f64, f64, f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn compute_generic_levels(higher: f64, lower: f64, levels: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `adjust_grid`, `pending_orders`, `get_orders_cancelled`, and `grid_pnl` are never used [INFO] [stdout] --> src/strategy/grid_strategy.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl GridStrategy { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn adjust_grid(&mut self, current_price: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn pending_orders(&self) -> Vec<&GridOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | pub fn get_orders_cancelled(&self) -> Vec<&GridOrder> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn grid_pnl(&self, current_price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyCalculations` is never constructed [INFO] [stdout] --> src/strategy/trading_strategy.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct StrategyCalculations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `calculate_trend_strength`, `calculate_position_size`, `calculate_grid_levels`, `calculate_tpsl_levels`, and `validate_signal` are never used [INFO] [stdout] --> src/strategy/trading_strategy.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl StrategyCalculations { [INFO] [stdout] | ------------------------- associated functions in this implementation [INFO] [stdout] 6 | pub fn calculate_trend_strength(candles: &[Candles]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn calculate_position_size(account_balance: f64, risk_pct: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn calculate_grid_levels(center_price: f64, grid_spacing: f64, num_levels: usize, side: Side) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn calculate_tpsl_levels(entry_price: f64, side: Side, risk_reward_ratio: f64, atr: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn validate_signal(candles: &[Candles], trend: Trend, min_volume_ratio: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TradingAlgo` is never used [INFO] [stdout] --> src/strategy/signal_processing.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait TradingAlgo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client_oid`, `status`, `filled_size`, `remaining_size`, and `price` are never read [INFO] [stdout] --> src/websocket/ws_client.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct OrderUpdate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 7 | pub client_oid: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub status: OrderStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub filled_size: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub remaining_size: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub price: f64 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_messages` and `get_orders` are never used [INFO] [stdout] --> src/websocket/ws_client.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait WebSocketClient { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | async fn handle_messages(&mut self, messages: Value) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | async fn get_candles(&self) -> &Vec; [INFO] [stdout] 21 | async fn get_orders(&self) -> &Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `order_updates` are never read [INFO] [stdout] --> src/websocket/binance_ws.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct BinanceClient { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 15 | pub config: WebSocketCfg, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub candles: Vec, [INFO] [stdout] 17 | pub order_updates: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process_candles_data` and `process_order_update` are never used [INFO] [stdout] --> src/websocket/binance_ws.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 22 | impl BinanceClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | async fn process_candles_data(&mut self, data: &Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | async fn process_order_update(&mut self, data: &Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `order_updates` are never read [INFO] [stdout] --> src/websocket/kucoin_ws.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct KuCoinClient { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 12 | pub config: WebSocketCfg, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub candles: Vec, [INFO] [stdout] 14 | pub order_updates: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `process_candle_data` and `process_order_update` are never used [INFO] [stdout] --> src/websocket/kucoin_ws.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 19 | impl KuCoinClient { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | async fn process_candle_data(&mut self, data: &Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | async fn process_order_update(&mut self, data: Value) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate` and `save_to_file` are never used [INFO] [stdout] --> src/config.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn validate(&self) -> Result<(), anyhow::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn save_to_file(&self, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `order_store` and `update_tx` are never read [INFO] [stdout] --> src/trading_engine.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | order_store: Arc>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | update_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> src/exchange/kucoin_auth.rs:223:29 [INFO] [stdout] | [INFO] [stdout] 223 | ... self.handle_market_data_kc(&mut grid_orders, data, &req.symbol); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.94s [INFO] running `Command { std: "docker" "inspect" "202e07170a5284fcc09de5e890f6adbdb3dd617b25021885eb74f4b7da50982e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "202e07170a5284fcc09de5e890f6adbdb3dd617b25021885eb74f4b7da50982e", kill_on_drop: false }` [INFO] [stdout] 202e07170a5284fcc09de5e890f6adbdb3dd617b25021885eb74f4b7da50982e