[INFO] cloning repository https://github.com/paloxmah0/gold-trader-bot
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/paloxmah0/gold-trader-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaloxmah0%2Fgold-trader-bot", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaloxmah0%2Fgold-trader-bot'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e4c608ac6c10f8daf30d242f06ac537596cb3c49
[INFO] checking paloxmah0/gold-trader-bot against 4fcf39725a9c99bd495d8c73af83628a256ff9a9 for pr-162233-crater-rollup
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaloxmah0%2Fgold-trader-bot" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/paloxmah0/gold-trader-bot
[INFO] finished tweaking git repo https://github.com/paloxmah0/gold-trader-bot
[INFO] tweaked toml for git repo https://github.com/paloxmah0/gold-trader-bot written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/paloxmah0/gold-trader-bot on toolchain 4fcf39725a9c99bd495d8c73af83628a256ff9a9
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4fcf39725a9c99bd495d8c73af83628a256ff9a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/paloxmah0/gold-trader-bot already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4fcf39725a9c99bd495d8c73af83628a256ff9a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83
[INFO] running `Command { std: "docker" "start" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83", 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" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83" "/opt/rustwide/cargo-home/bin/cargo" "+4fcf39725a9c99bd495d8c73af83628a256ff9a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83", 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" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83" "/opt/rustwide/cargo-home/bin/cargo" "+4fcf39725a9c99bd495d8c73af83628a256ff9a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking bytes v1.12.0
[INFO] [stderr]     Checking memchr v2.8.2
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling syn v2.0.118
[INFO] [stderr]    Compiling rustls v0.23.41
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]    Compiling serde_json v1.0.150
[INFO] [stderr]     Checking rustls-pki-types v1.14.1
[INFO] [stderr]    Compiling smallvec v1.15.2
[INFO] [stderr]    Compiling litemap v0.8.2
[INFO] [stderr]    Compiling writeable v0.6.3
[INFO] [stderr]     Checking typenum v1.20.1
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling zeroize v1.9.0
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling openssl-sys v0.9.117
[INFO] [stderr]    Compiling icu_properties_data v2.2.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.2.0
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling socket2 v0.6.4
[INFO] [stderr]    Compiling mio v1.2.1
[INFO] [stderr]     Checking webpki-roots v1.0.8
[INFO] [stderr]     Checking http v1.4.2
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling rust_decimal v1.42.1
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling openssl v0.10.81
[INFO] [stderr]    Compiling log v0.4.33
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling getrandom v0.4.3
[INFO] [stderr]    Compiling crc-catalog v2.5.0
[INFO] [stderr]    Compiling arrayvec v0.7.7
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling chrono v0.4.45
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling tokio v1.52.3
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling uuid v1.23.3
[INFO] [stderr]    Compiling ryu v1.0.23
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]     Checking aho-corasick v1.1.4
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking http-range-header v0.4.2
[INFO] [stderr]     Checking data-encoding v2.11.0
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking unsafe-libyaml v0.2.11
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking rustls-webpki v0.103.13
[INFO] [stderr]    Compiling futures-executor v0.3.32
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking regex v1.12.4
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling displaydoc v0.2.6
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling axum-macros v0.4.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking tungstenite v0.24.0
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]     Checking zerofrom v0.1.8
[INFO] [stderr]    Compiling yoke v0.8.3
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]     Checking icu_collections v2.2.0
[INFO] [stderr]     Checking icu_locale_core v2.2.0
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking idna_adapter v1.2.2
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking either v1.16.0
[INFO] [stderr]     Checking tracing-serde v0.2.0
[INFO] [stderr]     Checking serde_yaml v0.9.34+deprecated
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking multer v3.1.0
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tokio-tungstenite v0.24.0
[INFO] [stderr]     Checking h2 v0.4.15
[INFO] [stderr]     Checking sqlx-core v0.8.6
[INFO] [stderr]     Checking tower-http v0.6.11
[INFO] [stderr]     Checking sqlx-sqlite v0.8.6
[INFO] [stderr]     Checking hyper v1.10.1
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking hyper-rustls v0.27.9
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking reqwest v0.12.28
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking trading-backend v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `put`
[INFO] [stdout]  --> src/api/mod.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 |     routing::{get, post, put},
[INFO] [stdout]   |                          ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/engine/rules.rs:559:52
[INFO] [stdout]     |
[INFO] [stdout] 559 |         p.insert("tweezer_bottom".into(), bool_dec(((l - pl).abs() <= tweezer_tol)));
[INFO] [stdout]     |                                                    ^                             ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 559 -         p.insert("tweezer_bottom".into(), bool_dec(((l - pl).abs() <= tweezer_tol)));
[INFO] [stdout] 559 +         p.insert("tweezer_bottom".into(), bool_dec((l - pl).abs() <= tweezer_tol));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/engine/rules.rs:560:49
[INFO] [stdout]     |
[INFO] [stdout] 560 |         p.insert("tweezer_top".into(), bool_dec(((h - ph).abs() <= tweezer_tol)));
[INFO] [stdout]     |                                                 ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 560 -         p.insert("tweezer_top".into(), bool_dec(((h - ph).abs() <= tweezer_tol)));
[INFO] [stdout] 560 +         p.insert("tweezer_top".into(), bool_dec((h - ph).abs() <= tweezer_tol));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/seeder.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `put`
[INFO] [stdout]  --> src/api/mod.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 |     routing::{get, post, put},
[INFO] [stdout]   |                          ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/engine/rules.rs:559:52
[INFO] [stdout]     |
[INFO] [stdout] 559 |         p.insert("tweezer_bottom".into(), bool_dec(((l - pl).abs() <= tweezer_tol)));
[INFO] [stdout]     |                                                    ^                             ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 559 -         p.insert("tweezer_bottom".into(), bool_dec(((l - pl).abs() <= tweezer_tol)));
[INFO] [stdout] 559 +         p.insert("tweezer_bottom".into(), bool_dec((l - pl).abs() <= tweezer_tol));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/engine/rules.rs:560:49
[INFO] [stdout]     |
[INFO] [stdout] 560 |         p.insert("tweezer_top".into(), bool_dec(((h - ph).abs() <= tweezer_tol)));
[INFO] [stdout]     |                                                 ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 560 -         p.insert("tweezer_top".into(), bool_dec(((h - ph).abs() <= tweezer_tol)));
[INFO] [stdout] 560 +         p.insert("tweezer_top".into(), bool_dec((h - ph).abs() <= tweezer_tol));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/seeder.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Broker`
[INFO] [stdout]  --> src/engine_loop.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::market::{Broker, MarketProvider, MarketRegistry};
[INFO] [stdout]   |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `direction`
[INFO] [stdout]    --> src/ai_engine.rs:227:42
[INFO] [stdout]     |
[INFO] [stdout] 227 | fn predict_next_candle(ind: &Indicators, direction: &str) -> (String, String) {
[INFO] [stdout]     |                                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `before`
[INFO] [stdout]    --> src/ai_engine.rs:592:13
[INFO] [stdout]     |
[INFO] [stdout] 592 |         let before = bull;
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `before`
[INFO] [stdout]    --> src/ai_engine.rs:599:13
[INFO] [stdout]     |
[INFO] [stdout] 599 |         let before = bear;
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prev_c`
[INFO] [stdout]    --> src/ai_engine.rs:802:9
[INFO] [stdout]     |
[INFO] [stdout] 802 |     let prev_c = candles.len().ge(&2).then(|| &candles[candles.len() - 2]);
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prior_swing_high_tg`
[INFO] [stdout]    --> src/ai_engine.rs:803:9
[INFO] [stdout]     |
[INFO] [stdout] 803 |     let prior_swing_high_tg = candles.iter().rev().skip(1).take(50).map(|c| c.high).fold(Decimal::ZERO, Decimal::max);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prior_swing_high_tg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prior_swing_low_tg`
[INFO] [stdout]    --> src/ai_engine.rs:804:9
[INFO] [stdout]     |
[INFO] [stdout] 804 |     let prior_swing_low_tg = candles.iter().rev().skip(1).take(50).map(|c| c.low).fold(Decimal::MAX, Decimal::min);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prior_swing_low_tg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `trigger_fired`
[INFO] [stdout]    --> src/ai_engine.rs:807:9
[INFO] [stdout]     |
[INFO] [stdout] 807 |     let trigger_fired = true; // always pass — conviction is the real filter
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger_fired`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `fired_sources`
[INFO] [stdout]    --> src/ai_engine.rs:891:9
[INFO] [stdout]     |
[INFO] [stdout] 891 |     let fired_sources: Vec<String> = evidence.iter()
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fired_sources`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Broker`
[INFO] [stdout]  --> src/engine_loop.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::market::{Broker, MarketProvider, MarketRegistry};
[INFO] [stdout]   |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `direction`
[INFO] [stdout]    --> src/ai_engine.rs:227:42
[INFO] [stdout]     |
[INFO] [stdout] 227 | fn predict_next_candle(ind: &Indicators, direction: &str) -> (String, String) {
[INFO] [stdout]     |                                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `before`
[INFO] [stdout]    --> src/ai_engine.rs:592:13
[INFO] [stdout]     |
[INFO] [stdout] 592 |         let before = bull;
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `before`
[INFO] [stdout]    --> src/ai_engine.rs:599:13
[INFO] [stdout]     |
[INFO] [stdout] 599 |         let before = bear;
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_before`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prev_c`
[INFO] [stdout]    --> src/ai_engine.rs:802:9
[INFO] [stdout]     |
[INFO] [stdout] 802 |     let prev_c = candles.len().ge(&2).then(|| &candles[candles.len() - 2]);
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prior_swing_high_tg`
[INFO] [stdout]    --> src/ai_engine.rs:803:9
[INFO] [stdout]     |
[INFO] [stdout] 803 |     let prior_swing_high_tg = candles.iter().rev().skip(1).take(50).map(|c| c.high).fold(Decimal::ZERO, Decimal::max);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prior_swing_high_tg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prior_swing_low_tg`
[INFO] [stdout]    --> src/ai_engine.rs:804:9
[INFO] [stdout]     |
[INFO] [stdout] 804 |     let prior_swing_low_tg = candles.iter().rev().skip(1).take(50).map(|c| c.low).fold(Decimal::MAX, Decimal::min);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prior_swing_low_tg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `trigger_fired`
[INFO] [stdout]    --> src/ai_engine.rs:807:9
[INFO] [stdout]     |
[INFO] [stdout] 807 |     let trigger_fired = true; // always pass — conviction is the real filter
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trigger_fired`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `fired_sources`
[INFO] [stdout]    --> src/ai_engine.rs:891:9
[INFO] [stdout]     |
[INFO] [stdout] 891 |     let fired_sources: Vec<String> = evidence.iter()
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fired_sources`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prev_range`
[INFO] [stdout]    --> src/engine/rules.rs:514:13
[INFO] [stdout]     |
[INFO] [stdout] 514 |         let prev_range = ((ph - pl).abs()).round_dp(10);
[INFO] [stdout]     |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prev_range`
[INFO] [stdout]    --> src/engine/rules.rs:514:13
[INFO] [stdout]     |
[INFO] [stdout] 514 |         let prev_range = ((ph - pl).abs()).round_dp(10);
[INFO] [stdout]     |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `initial_balance` is never read
[INFO] [stdout]   --> src/backtest.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct BacktestRequest {
[INFO] [stdout]    |            --------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub initial_balance: Decimal,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BacktestRequest` 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 `forex` and `max_note_upload_bytes` are never read
[INFO] [stdout]   --> src/config.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub struct Settings {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout]  9 |     pub forex: ProviderSettings,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub max_note_upload_bytes: usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Settings` 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 `timeout` is never used
[INFO] [stdout]   --> src/config.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 41 | impl LlmSettings {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] 42 |     pub fn timeout(&self) -> Duration {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `list_trades_by_symbol` is never used
[INFO] [stdout]    --> src/db/trades.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl Db {
[INFO] [stdout]     | ------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn list_trades_by_symbol(&self, symbol: &str) -> AppResult<Vec<Trade>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `strategy_id` and `symbol` are never read
[INFO] [stdout]   --> src/domain/signal.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct SignalFilter {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 24 |     pub strategy_id: Option<Uuid>,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 25 |     pub symbol: Option<String>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SignalFilter` 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 `new` is never used
[INFO] [stdout]   --> src/dynamic_config.rs:19:18
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl DynamicConfig {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] 19 |     pub async fn new(db: Db, env_defaults: HashMap<String, String>) -> Self {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Unauthorized` is never constructed
[INFO] [stdout]   --> src/error.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 14 |     Unauthorized(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `asset_class` is never used
[INFO] [stdout]   --> src/market/mod.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub trait MarketProvider: Send + Sync {
[INFO] [stdout]    |           -------------- method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn asset_class(&self) -> AssetClass;
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `symbol` and `ts` are never read
[INFO] [stdout]   --> src/market/mod.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct Quote {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 25 |     pub symbol: String,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub ts: DateTime<Utc>,
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Quote` 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/market/mod.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub trait Broker: Send + Sync {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 41 |     fn name(&self) -> &'static str;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RestProvider` is never constructed
[INFO] [stdout]   --> src/market/mod.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub struct RestProvider {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/market/mod.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 82 | impl RestProvider {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 83 |     pub fn new(settings: &ProviderSettings, class: AssetClass) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CandlesResp` is never constructed
[INFO] [stdout]   --> src/market/mod.rs:95:8
[INFO] [stdout]    |
[INFO] [stdout] 95 | struct CandlesResp {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CandleDto` is never constructed
[INFO] [stdout]    --> src/market/mod.rs:101:8
[INFO] [stdout]     |
[INFO] [stdout] 101 | struct CandleDto {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `QuoteDto` is never constructed
[INFO] [stdout]    --> src/market/mod.rs:112:8
[INFO] [stdout]     |
[INFO] [stdout] 112 | struct QuoteDto {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `field_dec` is never used
[INFO] [stdout]    --> src/market/mod.rs:187:4
[INFO] [stdout]     |
[INFO] [stdout] 187 | fn field_dec(v: &serde_json::Value, keys: &[&str]) -> AppResult<Decimal> {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decimal_from` is never used
[INFO] [stdout]    --> src/market/mod.rs:196:4
[INFO] [stdout]     |
[INFO] [stdout] 196 | fn decimal_from(v: &serde_json::Value) -> AppResult<Decimal> {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `field_ts` is never used
[INFO] [stdout]    --> src/market/mod.rs:214:4
[INFO] [stdout]     |
[INFO] [stdout] 214 | fn field_ts(v: &serde_json::Value) -> AppResult<DateTime<Utc>> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `initial_balance` is never read
[INFO] [stdout]   --> src/backtest.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct BacktestRequest {
[INFO] [stdout]    |            --------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub initial_balance: Decimal,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BacktestRequest` 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 `forex` and `max_note_upload_bytes` are never read
[INFO] [stdout]   --> src/config.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub struct Settings {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout]  9 |     pub forex: ProviderSettings,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 17 |     pub max_note_upload_bytes: usize,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Settings` 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 `timeout` is never used
[INFO] [stdout]   --> src/config.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 41 | impl LlmSettings {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] 42 |     pub fn timeout(&self) -> Duration {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `list_trades_by_symbol` is never used
[INFO] [stdout]    --> src/db/trades.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  11 | impl Db {
[INFO] [stdout]     | ------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn list_trades_by_symbol(&self, symbol: &str) -> AppResult<Vec<Trade>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `strategy_id` and `symbol` are never read
[INFO] [stdout]   --> src/domain/signal.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct SignalFilter {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 24 |     pub strategy_id: Option<Uuid>,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout] 25 |     pub symbol: Option<String>,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SignalFilter` 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 `new` is never used
[INFO] [stdout]   --> src/dynamic_config.rs:19:18
[INFO] [stdout]    |
[INFO] [stdout] 18 | impl DynamicConfig {
[INFO] [stdout]    | ------------------ associated function in this implementation
[INFO] [stdout] 19 |     pub async fn new(db: Db, env_defaults: HashMap<String, String>) -> Self {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Unauthorized` is never constructed
[INFO] [stdout]   --> src/error.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 14 |     Unauthorized(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `asset_class` is never used
[INFO] [stdout]   --> src/market/mod.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub trait MarketProvider: Send + Sync {
[INFO] [stdout]    |           -------------- method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 20 |     fn asset_class(&self) -> AssetClass;
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `symbol` and `ts` are never read
[INFO] [stdout]   --> src/market/mod.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct Quote {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 25 |     pub symbol: String,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub ts: DateTime<Utc>,
[INFO] [stdout]    |         ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Quote` 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/market/mod.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub trait Broker: Send + Sync {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 41 |     fn name(&self) -> &'static str;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RestProvider` is never constructed
[INFO] [stdout]   --> src/market/mod.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub struct RestProvider {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/market/mod.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 82 | impl RestProvider {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 83 |     pub fn new(settings: &ProviderSettings, class: AssetClass) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CandlesResp` is never constructed
[INFO] [stdout]   --> src/market/mod.rs:95:8
[INFO] [stdout]    |
[INFO] [stdout] 95 | struct CandlesResp {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CandleDto` is never constructed
[INFO] [stdout]    --> src/market/mod.rs:101:8
[INFO] [stdout]     |
[INFO] [stdout] 101 | struct CandleDto {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `QuoteDto` is never constructed
[INFO] [stdout]    --> src/market/mod.rs:112:8
[INFO] [stdout]     |
[INFO] [stdout] 112 | struct QuoteDto {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `field_dec` is never used
[INFO] [stdout]    --> src/market/mod.rs:187:4
[INFO] [stdout]     |
[INFO] [stdout] 187 | fn field_dec(v: &serde_json::Value, keys: &[&str]) -> AppResult<Decimal> {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `decimal_from` is never used
[INFO] [stdout]    --> src/market/mod.rs:196:4
[INFO] [stdout]     |
[INFO] [stdout] 196 | fn decimal_from(v: &serde_json::Value) -> AppResult<Decimal> {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `field_ts` is never used
[INFO] [stdout]    --> src/market/mod.rs:214:4
[INFO] [stdout]     |
[INFO] [stdout] 214 | fn field_ts(v: &serde_json::Value) -> AppResult<DateTime<Utc>> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 28s
[INFO] running `Command { std: "docker" "inspect" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83", kill_on_drop: false }`
[INFO] [stdout] ec4580f08cdd2f73a1bc018c038e7c5eedfb06a7b42ad44d70aba31635840b83
