[INFO] cloning repository https://github.com/windopper/ctb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/windopper/ctb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwindopper%2Fctb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwindopper%2Fctb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cceb98b8fb0ad60c514eb764c6fa630790b15ea5 [INFO] testing windopper/ctb against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwindopper%2Fctb" "/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/windopper/ctb [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/windopper/ctb [INFO] tweaked toml for git repo https://github.com/windopper/ctb written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/windopper/ctb on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/windopper/ctb 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-tungstenite v0.27.0 [INFO] [stderr] Downloaded tungstenite v0.27.0 [INFO] [stderr] Downloaded webhook v2.1.2 [INFO] [stderr] Downloaded openssl-src v300.5.1+3.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7fb11cc792f3b3fb008042a9d3262fa27ff0797c4f206ca8256ee5d10a5587e [INFO] running `Command { std: "docker" "start" "-a" "c7fb11cc792f3b3fb008042a9d3262fa27ff0797c4f206ca8256ee5d10a5587e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7fb11cc792f3b3fb008042a9d3262fa27ff0797c4f206ca8256ee5d10a5587e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7fb11cc792f3b3fb008042a9d3262fa27ff0797c4f206ca8256ee5d10a5587e", kill_on_drop: false }` [INFO] [stdout] c7fb11cc792f3b3fb008042a9d3262fa27ff0797c4f206ca8256ee5d10a5587e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5678cb22886950e23d0eaf0c9da78df87850cf61839c8f563a443e152d35327 [INFO] running `Command { std: "docker" "start" "-a" "d5678cb22886950e23d0eaf0c9da78df87850cf61839c8f563a443e152d35327", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling safe_arch v0.7.4 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling wide v0.7.33 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling openssl-src v300.5.1+3.5.1 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling simba v0.9.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling dotenv_codegen_implementation v0.15.0 [INFO] [stderr] Compiling dotenv_codegen v0.15.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling nalgebra v0.33.2 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling jwt v0.16.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling linregress v0.5.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tungstenite v0.27.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling webhook v2.1.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling tokio-tungstenite v0.27.0 [INFO] [stderr] Compiling ctb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stdout] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [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 imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stdout] | [INFO] [stdout] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | } else if (supports.len() == 1) { [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] 52 - } else if (supports.len() == 1) { [INFO] [stdout] 52 + } else if supports.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | } else if (resistances.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - } else if (resistances.len() == 1) { [INFO] [stdout] 84 + } else if resistances.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stdout] --> src/strategy/of1.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stdout] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/helper/support_resistance.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stdout] --> src/backtest/simulate.rs:8:107 [INFO] [stdout] | [INFO] [stdout] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/webhook/lib.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_emoji` [INFO] [stdout] --> src/webhook/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_5` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_20` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_20` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last_macd_positive` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsi` [INFO] [stdout] --> src/strategy/scalp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:47 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/orderbook.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trailing_stop_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/orderbook.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stdout] --> src/strategy/of1.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut ask_volume_sum = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ask_volume_sum` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/of1.rs:74:69 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/of1.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/of1.rs:215:60 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `calculated_stop` [INFO] [stdout] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_calculated_stop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stdout] | [INFO] [stdout] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_trade_interval` [INFO] [stdout] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | let min_trade_interval = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_sar` is never read [INFO] [stdout] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut next_sar = sar; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/helper/orderbook.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stdout] --> src/strategy/scalp.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERSOLD` is never used [INFO] [stdout] --> src/strategy/scalp.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `risk_pct` is never read [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StrategyParams { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | risk_pct: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stdout] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stdout] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODES` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_simulation` is never used [INFO] [stdout] --> src/main.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | async fn realtime_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 13s [INFO] running `Command { std: "docker" "inspect" "d5678cb22886950e23d0eaf0c9da78df87850cf61839c8f563a443e152d35327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5678cb22886950e23d0eaf0c9da78df87850cf61839c8f563a443e152d35327", kill_on_drop: false }` [INFO] [stdout] d5678cb22886950e23d0eaf0c9da78df87850cf61839c8f563a443e152d35327 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a68ba9d5f2537bb81a19bd178973db7932eabe1f0042c96fcf92f2a9cb23293 [INFO] running `Command { std: "docker" "start" "-a" "0a68ba9d5f2537bb81a19bd178973db7932eabe1f0042c96fcf92f2a9cb23293", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stdout] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [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 imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stdout] | [INFO] [stdout] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | } else if (supports.len() == 1) { [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] 52 - } else if (supports.len() == 1) { [INFO] [stdout] 52 + } else if supports.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | } else if (resistances.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - } else if (resistances.len() == 1) { [INFO] [stdout] 84 + } else if resistances.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stdout] --> src/strategy/of1.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stdout] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/helper/support_resistance.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stdout] --> src/backtest/simulate.rs:8:107 [INFO] [stdout] | [INFO] [stdout] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/webhook/lib.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_emoji` [INFO] [stdout] --> src/webhook/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_5` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_20` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_20` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last_macd_positive` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsi` [INFO] [stdout] --> src/strategy/scalp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:47 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/orderbook.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trailing_stop_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/orderbook.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stdout] --> src/strategy/of1.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut ask_volume_sum = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ask_volume_sum` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/of1.rs:74:69 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/of1.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/of1.rs:215:60 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `calculated_stop` [INFO] [stdout] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_calculated_stop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stdout] | [INFO] [stdout] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_trade_interval` [INFO] [stdout] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | let min_trade_interval = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_sar` is never read [INFO] [stdout] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut next_sar = sar; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/helper/orderbook.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stdout] --> src/strategy/scalp.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERSOLD` is never used [INFO] [stdout] --> src/strategy/scalp.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `risk_pct` is never read [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StrategyParams { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | risk_pct: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stdout] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stdout] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ctb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODES` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_simulation` is never used [INFO] [stdout] --> src/main.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | async fn realtime_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stdout] --> src/main.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [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: `CandleTrait` [INFO] [stdout] --> examples/candle_patterns.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use ctb::core::candle::{Candle, CandleBase, CandleTrait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CODES` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realtime_simulation` is never used [INFO] [stdout] --> src/main.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | async fn realtime_simulation() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / send_buy_signal( [INFO] [stdout] 12 | | "KRW-BTC", [INFO] [stdout] 13 | | 50000000.0, [INFO] [stdout] 14 | | 0.001, [INFO] [stdout] ... | [INFO] [stdout] 18 | | "SuperTrend + EMA" [INFO] [stdout] 19 | | ); [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: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / send_sell_signal( [INFO] [stdout] 25 | | "KRW-BTC", [INFO] [stdout] 26 | | 52000000.0, [INFO] [stdout] 27 | | 0.001, [INFO] [stdout] ... | [INFO] [stdout] 31 | | "목표가 도달" [INFO] [stdout] 32 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / send_sell_signal( [INFO] [stdout] 38 | | "KRW-BTC", [INFO] [stdout] 39 | | 48000000.0, [INFO] [stdout] 40 | | 0.001, [INFO] [stdout] ... | [INFO] [stdout] 44 | | "손절가 도달" [INFO] [stdout] 45 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `Future` that must be used [INFO] [stdout] --> tests/webhook.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / send_trade_summary( [INFO] [stdout] 51 | | "KRW-BTC", [INFO] [stdout] 52 | | 100, [INFO] [stdout] 53 | | 65, [INFO] [stdout] ... | [INFO] [stdout] 57 | | -500000.0 [INFO] [stdout] 58 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stdout] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stdout] | [INFO] [stdout] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [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 imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stdout] | [INFO] [stdout] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:52:15 [INFO] [stdout] | [INFO] [stdout] 52 | } else if (supports.len() == 1) { [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] 52 - } else if (supports.len() == 1) { [INFO] [stdout] 52 + } else if supports.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/strategy/orderbook.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | } else if (resistances.len() == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 84 - } else if (resistances.len() == 1) { [INFO] [stdout] 84 + } else if resistances.len() == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stdout] --> src/strategy/of1.rs:3:81 [INFO] [stdout] | [INFO] [stdout] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stdout] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/helper/support_resistance.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stdout] --> src/backtest/simulate.rs:8:107 [INFO] [stdout] | [INFO] [stdout] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stdout] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/webhook/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stdout] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/webhook/lib.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(result) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_emoji` [INFO] [stdout] --> src/webhook/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candle::CandleTrait` [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_5` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_last_ema_20` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_20` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last_macd_positive` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rsi` [INFO] [stdout] --> src/strategy/scalp.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:47 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/orderbook.rs:109:60 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trailing_stop_price` [INFO] [stdout] --> src/strategy/orderbook.rs:109:92 [INFO] [stdout] | [INFO] [stdout] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/orderbook.rs:6:37 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stdout] --> src/strategy/of1.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let mut ask_volume_sum = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ask_volume_sum` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/strategy/of1.rs:74:69 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_price` [INFO] [stdout] --> src/strategy/of1.rs:215:47 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entry_asset` [INFO] [stdout] --> src/strategy/of1.rs:215:60 [INFO] [stdout] | [INFO] [stdout] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `calculated_stop` [INFO] [stdout] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_calculated_stop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stdout] | [INFO] [stdout] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stdout] | [INFO] [stdout] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg_volume` [INFO] [stdout] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stdout] | [INFO] [stdout] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_trade_interval` [INFO] [stdout] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | let min_trade_interval = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `next_sar` is never read [INFO] [stdout] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut next_sar = sar; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orderbook` [INFO] [stdout] --> src/helper/orderbook.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stdout] --> src/strategy/scalp.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RSI_OVERSOLD` is never used [INFO] [stdout] --> src/strategy/scalp.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `risk_pct` is never read [INFO] [stdout] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StrategyParams { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | risk_pct: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stdout] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stdout] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.86s [INFO] running `Command { std: "docker" "inspect" "0a68ba9d5f2537bb81a19bd178973db7932eabe1f0042c96fcf92f2a9cb23293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a68ba9d5f2537bb81a19bd178973db7932eabe1f0042c96fcf92f2a9cb23293", kill_on_drop: false }` [INFO] [stdout] 0a68ba9d5f2537bb81a19bd178973db7932eabe1f0042c96fcf92f2a9cb23293 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e78f5331ef069c5cad154965251faeb29a01b142246021101eec87a9fcb15449 [INFO] running `Command { std: "docker" "start" "-a" "e78f5331ef069c5cad154965251faeb29a01b142246021101eec87a9fcb15449", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `level::find_support_resistance`, `previous::find_previous_trough_with_index`, and `rsi::calculate_rsi` [INFO] [stderr] --> src/strategy/vwma_ma.rs:4:47 [INFO] [stderr] | [INFO] [stderr] 4 | ...te_adx, AdxCandle}, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calculate_sma,... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `level::find_support_resistance` and `previous::find_previous_trough_with_index` [INFO] [stderr] --> src/strategy/vwma_ma_grok.rs:4:100 [INFO] [stderr] | [INFO] [stderr] 4 | ...rCandle}, ema::calculate_ema, level::find_support_resistance, previous::find_previous_trough_with_index, rsi::calculate_rsi, sma::calc... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/strategy/orderbook.rs:52:15 [INFO] [stderr] | [INFO] [stderr] 52 | } else if (supports.len() == 1) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 52 - } else if (supports.len() == 1) { [INFO] [stderr] 52 + } else if supports.len() == 1 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/strategy/orderbook.rs:84:15 [INFO] [stderr] | [INFO] [stderr] 84 | } else if (resistances.len() == 1) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 84 - } else if (resistances.len() == 1) { [INFO] [stderr] 84 + } else if resistances.len() == 1 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `footprint`, `orderbook::Orderbook`, and `orderbook::top_n_orderbook_ratio` [INFO] [stderr] --> src/strategy/of1.rs:3:81 [INFO] [stderr] | [INFO] [stderr] 3 | ...}, orderbook::Orderbook, signal::{Signal, SignalReason}, ticker::Ticker, trade::Trade}, helper::{footprint::{footprint, FootprintValue}, orderbook::top_n_orderbook_ratio}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AtrCandle`, `CandleTrait`, and `calculate_atr` [INFO] [stderr] --> src/strategy/candle_pattern.rs:3:29 [INFO] [stderr] | [INFO] [stderr] 3 | core::{candle::{Candle, CandleTrait}, signal::{Signal, SignalReason}}, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 4 | helper::{atr::{calculate_atr, AtrCandle}, bollinger_bands::calculate_bollinger_bands, candle::{identify_candle_pattern, CandlePattern... [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/helper/support_resistance.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `lib::MarketState` and `orderbook` [INFO] [stderr] --> src/backtest/simulate.rs:8:107 [INFO] [stderr] | [INFO] [stderr] 8 | ...{candle_pattern, lib::MarketState, of1::{calculate_of1_indicator_every_1mcandle, of1, Of1Params, Of1State}, orderbook}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/webhook/lib.rs:49:28 [INFO] [stderr] | [INFO] [stderr] 49 | let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 49 - let profit_potential = ((take_profit - price) / price * 100.0); [INFO] [stderr] 49 + let profit_potential = (take_profit - price) / price * 100.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/webhook/lib.rs:50:26 [INFO] [stderr] | [INFO] [stderr] 50 | let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 50 - let loss_potential = ((price - stop_loss) / price * 100.0); [INFO] [stderr] 50 + let loss_potential = (price - stop_loss) / price * 100.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/webhook/lib.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | Ok(result) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `color_emoji` [INFO] [stderr] --> src/webhook/lib.rs:100:17 [INFO] [stderr] | [INFO] [stderr] 100 | let (emoji, color_emoji) = if profit_loss >= 0.0 { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_emoji` [INFO] [stderr] [INFO] [stderr] warning: unused import: `candle::CandleTrait` [INFO] [stderr] --> src/strategy/vwma_ma.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `candle::CandleTrait` [INFO] [stderr] --> src/strategy/vwma_ma_grok.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | core::{candle::CandleTrait, signal::{Signal, SignalReason}}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/vi_rsi.rs:15:37 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `second_last_ema_5` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | let second_last_ema_5 = ema_5[ema_5.len() - 2]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_5` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `second_last_ema_20` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | let second_last_ema_20 = ema_20[ema_20.len() - 2]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_last_ema_20` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_last_macd_positive` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let is_last_macd_positive = last_macd > 0.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last_macd_positive` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/supertrend_ema.rs:10:37 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn run(state: &mut MarketState, params: &StrategyParams, current_position: &mut PositionState) -> Signal { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rsi` [INFO] [stderr] --> src/strategy/scalp.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | let rsi = calculate_rsi(&closes, 14); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rsi` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_price` [INFO] [stderr] --> src/strategy/orderbook.rs:109:47 [INFO] [stderr] | [INFO] [stderr] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_asset` [INFO] [stderr] --> src/strategy/orderbook.rs:109:60 [INFO] [stderr] | [INFO] [stderr] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `trailing_stop_price` [INFO] [stderr] --> src/strategy/orderbook.rs:109:92 [INFO] [stderr] | [INFO] [stderr] 109 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `trailing_stop_price: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/orderbook.rs:6:37 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn run(state: &mut MarketState, params: &StrategyParams, position: &mut PositionState) -> Signal { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: variable `ask_volume_sum` is assigned to, but never used [INFO] [stderr] --> src/strategy/of1.rs:105:21 [INFO] [stderr] | [INFO] [stderr] 105 | let mut ask_volume_sum = 0.0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_ask_volume_sum` instead [INFO] [stderr] [INFO] [stderr] warning: unused variable: `params` [INFO] [stderr] --> src/strategy/of1.rs:74:69 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn calculate_of1_indicator_every_1mcandle(state: &mut Of1State, params: &Of1Params) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_price` [INFO] [stderr] --> src/strategy/of1.rs:215:47 [INFO] [stderr] | [INFO] [stderr] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_price: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entry_asset` [INFO] [stderr] --> src/strategy/of1.rs:215:60 [INFO] [stderr] | [INFO] [stderr] 215 | } else if let PositionState::InPosition { entry_price, entry_asset, take_profit_price, trailing_stop_price } = position { [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `entry_asset: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `calculated_stop` [INFO] [stderr] --> src/strategy/candle_pattern.rs:203:13 [INFO] [stderr] | [INFO] [stderr] 203 | let calculated_stop = candle_based_stop.max(support_based_stop).max(fixed_stop).max(atr_based_stop); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_calculated_stop` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `avg_volume` [INFO] [stderr] --> src/strategy/candle_pattern.rs:389:28 [INFO] [stderr] | [INFO] [stderr] 389 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/strategy/candle_pattern.rs:599:38 [INFO] [stderr] | [INFO] [stderr] 599 | fn calculate_volume_ratio(&self, config: &CandlePatternStrategyConfig) -> (f64, f64) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `avg_volume` [INFO] [stderr] --> src/strategy/candle_pattern.rs:656:28 [INFO] [stderr] | [INFO] [stderr] 656 | let (volume_ratio, avg_volume) = self.calculate_volume_ratio(config); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_avg_volume` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `min_trade_interval` [INFO] [stderr] --> src/strategy/candle_pattern.rs:709:9 [INFO] [stderr] | [INFO] [stderr] 709 | let min_trade_interval = 3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_trade_interval` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `next_sar` is never read [INFO] [stderr] --> src/helper/parabolic_sar.rs:30:17 [INFO] [stderr] | [INFO] [stderr] 30 | let mut next_sar = sar; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `orderbook` [INFO] [stderr] --> src/helper/orderbook.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn orderbook_helper(orderbook: &Orderbook) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orderbook` [INFO] [stderr] [INFO] [stderr] warning: constant `RSI_OVERBOUGHT` is never used [INFO] [stderr] --> src/strategy/scalp.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | const RSI_OVERBOUGHT: f64 = 70.0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `RSI_OVERSOLD` is never used [INFO] [stderr] --> src/strategy/scalp.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | const RSI_OVERSOLD: f64 = 30.0; // 매수 조건에 활용 가능 [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `risk_pct` is never read [INFO] [stderr] --> src/strategy/vwma_ma_grok.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct StrategyParams { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 14 | risk_pct: f64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `volume_threshold`, `max_consecutive_losses`, `trend_strength_threshold`, and `ema_slope_period` are never read [INFO] [stderr] --> src/strategy/candle_pattern.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct CandlePatternStrategyConfig { [INFO] [stderr] | --------------------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 23 | volume_threshold: f64, // 거래량 임계값 (평균 대비) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | max_consecutive_losses: usize, // 최대 연속 손실 허용 횟수 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 34 | trend_strength_threshold: f64, // 추세 강도 임계값 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 35 | reversal_volume_multiplier: f64, // 반전 신호 거래량 배수 [INFO] [stderr] 36 | ema_slope_period: usize, // EMA 기울기 계산을 위한 기간 [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `ctb` (lib) generated 39 warnings (run `cargo fix --lib -p ctb` to apply 10 suggestions) [INFO] [stderr] warning: `ctb` (lib test) generated 39 warnings (39 duplicates) [INFO] [stderr] warning: unused imports: `DateTime`, `Duration`, `TimeZone`, and `Utc` [INFO] [stderr] --> src/main.rs:7:14 [INFO] [stderr] | [INFO] [stderr] 7 | use chrono::{DateTime, Utc, Duration, TimeZone}; [INFO] [stderr] | ^^^^^^^^ ^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `CODES` is never used [INFO] [stderr] --> src/main.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | const CODES: [&str; 5] = ["KRW-XRP", "KRW-BLAST", "KRW-BTC", "KRW-ETH", "KRW-GLM"]; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `realtime_simulation` is never used [INFO] [stderr] --> src/main.rs:60:10 [INFO] [stderr] | [INFO] [stderr] 60 | async fn realtime_simulation() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | / send_buy_signal( [INFO] [stderr] 12 | | "KRW-BTC", [INFO] [stderr] 13 | | 50000000.0, [INFO] [stderr] 14 | | 0.001, [INFO] [stderr] ... | [INFO] [stderr] 18 | | "SuperTrend + EMA" [INFO] [stderr] 19 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | / send_sell_signal( [INFO] [stderr] 25 | | "KRW-BTC", [INFO] [stderr] 26 | | 52000000.0, [INFO] [stderr] 27 | | 0.001, [INFO] [stderr] ... | [INFO] [stderr] 31 | | "목표가 도달" [INFO] [stderr] 32 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | / send_sell_signal( [INFO] [stderr] 38 | | "KRW-BTC", [INFO] [stderr] 39 | | 48000000.0, [INFO] [stderr] 40 | | 0.001, [INFO] [stderr] ... | [INFO] [stderr] 44 | | "손절가 도달" [INFO] [stderr] 45 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused implementer of `Future` that must be used [INFO] [stderr] --> tests/webhook.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | / send_trade_summary( [INFO] [stderr] 51 | | "KRW-BTC", [INFO] [stderr] 52 | | 100, [INFO] [stderr] 53 | | 65, [INFO] [stderr] ... | [INFO] [stderr] 57 | | -500000.0 [INFO] [stderr] 58 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: futures do nothing unless you `.await` or poll them [INFO] [stderr] [INFO] [stderr] warning: unused import: `CandleTrait` [INFO] [stderr] --> examples/candle_patterns.rs:1:45 [INFO] [stderr] | [INFO] [stderr] 1 | use ctb::core::candle::{Candle, CandleBase, CandleTrait}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `ctb` (bin "ctb" test) generated 3 warnings (run `cargo fix --bin "ctb" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `ctb` (test "webhook") generated 4 warnings [INFO] [stderr] warning: `ctb` (example "candle_patterns") generated 1 warning (run `cargo fix --example "candle_patterns"` to apply 1 suggestion) [INFO] [stderr] warning: `ctb` (bin "ctb") generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ctb-df11c2bf20f5a873) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ctb-0c4dcf416e198c30) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/account.rs (/opt/rustwide/target/debug/deps/account-eadc19ae0331175e) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_check_my_account ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_check_my_account stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_check_my_account' (27) panicked at src/lib.rs:13:22: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: EnvVar(NotPresent) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x58cfafd62a02 - std::backtrace_rs::backtrace::libunwind::trace::h7cddb8376417e7cc [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x58cfafd62a02 - std::backtrace_rs::backtrace::trace_unsynchronized::hb4e41acf4b349ff1 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x58cfafd62a02 - std::sys::backtrace::_print_fmt::h1222b80910ba6eb5 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x58cfafd62a02 - ::fmt::h5bb8a979ba5db788 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x58cfafd743ff - core::fmt::rt::Argument::fmt::h2ee2c138a50a7796 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x58cfafd743ff - core::fmt::write::h1e0dbf07fe3990bd [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x58cfafd2ea23 - std::io::default_write_fmt::h7d7ad5ed6a883d81 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x58cfafd2ea23 - std::io::Write::write_fmt::hc477d9325b345ece [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x58cfafd3b542 - std::sys::backtrace::BacktraceLock::print::h788d486777205086 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x58cfafd4045f - std::panicking::default_hook::{{closure}}::ha7bdfeb5949fc0fa [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x58cfafd402f1 - std::panicking::default_hook::h6dad75ec721846f4 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x58cfaf53f1be - as core::ops::function::Fn>::call::h33799d04b0b96146 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x58cfaf53f1be - test::test_main_with_exit_callback::{{closure}}::h880e31c829a2eb5d [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x58cfafd40bae - as core::ops::function::Fn>::call::h5e1b8c652ea49180 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x58cfafd40bae - std::panicking::panic_with_hook::hba00e869ada17676 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x58cfafd408ca - std::panicking::panic_handler::{{closure}}::h3d21149c258e5ceb [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x58cfafd3b679 - std::sys::backtrace::__rust_end_short_backtrace::h4f5d9b9dfb3e6ec1 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x58cfafd22a1d - __rustc[9a7a9f9af7564de1]::rust_begin_unwind [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x58cfafd7e8c0 - core::panicking::panic_fmt::h78e817a90331d98b [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x58cfafd7dba6 - core::result::unwrap_failed::h3ce108722ad88f1e [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/result.rs:1852:5 [INFO] [stdout] 20: 0x58cfaf570521 - core::result::Result::unwrap::h7126edf1c7f5de2f [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/result.rs:1223:23 [INFO] [stdout] 21: 0x58cfaf570521 - ctb::env_var::haaf5175824b49520 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:13:22 [INFO] [stdout] 22: 0x58cfaf566bb3 - ctb::upbit_api::utils::create_jwt_token::h073d3902d02c7cdd [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/utils.rs:25:23 [INFO] [stdout] 23: 0x58cfaf567762 - ctb::upbit_api::utils::create_authorization_token::he2a565cfd6521806 [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/utils.rs:39:21 [INFO] [stdout] 24: 0x58cfaf50fe83 - ctb::upbit_api::utils::request_upbit_api::{{closure}}::h5983719adde7254d [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/utils.rs:45:31 [INFO] [stdout] 25: 0x58cfaf5108d8 - ctb::upbit_api::account::check_my_account::{{closure}}::h522f363059e685dc [INFO] [stdout] at /opt/rustwide/workdir/src/upbit_api/account.rs:19:53 [INFO] [stdout] 26: 0x58cfaf51557c - account::test_check_my_account::{{closure}}::h55792bec391aa67d [INFO] [stdout] at /opt/rustwide/workdir/tests/account.rs:5:37 [INFO] [stdout] 27: 0x58cfaf5150e2 - as core::future::future::Future>::poll::h8b2a2f2e4cdb92c7 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/future/future.rs:133:9 [INFO] [stdout] 28: 0x58cfaf51511d - as core::future::future::Future>::poll::hc598cc0a5f4cc7d9 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/future/future.rs:133:9 [INFO] [stdout] 29: 0x58cfaf51ba0d - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::h5e063e5df77e2582 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:742:70 [INFO] [stdout] 30: 0x58cfaf51b7bb - tokio::task::coop::with_budget::h6dfc8a0f2bc4e640 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/task/coop/mod.rs:167:5 [INFO] [stdout] 31: 0x58cfaf51b7bb - tokio::task::coop::budget::hb0efd652736df7c8 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/task/coop/mod.rs:133:5 [INFO] [stdout] 32: 0x58cfaf51b7bb - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h6ccbe05ef7c37f02 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:742:25 [INFO] [stdout] 33: 0x58cfaf5187e0 - tokio::runtime::scheduler::current_thread::Context::enter::h36a9fd35d5138319 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:432:19 [INFO] [stdout] 34: 0x58cfaf51a3ed - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h8ba97382718fb019 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:741:44 [INFO] [stdout] 35: 0x58cfaf51a0b4 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::hf282a541dc6841c4 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:829:68 [INFO] [stdout] 36: 0x58cfaf51372b - tokio::runtime::context::scoped::Scoped::set::h0a8c400ccde95b56 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context/scoped.rs:40:9 [INFO] [stdout] 37: 0x58cfaf50c159 - tokio::runtime::context::set_scheduler::{{closure}}::hb5e65282528a3cf3 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context.rs:176:38 [INFO] [stdout] 38: 0x58cfaf508402 - std::thread::local::LocalKey::try_with::hd0218734883143d1 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/thread/local.rs:315:12 [INFO] [stdout] 39: 0x58cfaf50770e - std::thread::local::LocalKey::with::h3dba4cfbf46da9c9 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/thread/local.rs:279:20 [INFO] [stdout] 40: 0x58cfaf50c08d - tokio::runtime::context::set_scheduler::h414d2f0b4cf97f12 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context.rs:176:17 [INFO] [stdout] 41: 0x58cfaf519e40 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::hdba0e8dd3e98a455 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:829:27 [INFO] [stdout] 42: 0x58cfaf51a0d3 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h76212cf66650db0d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:729:24 [INFO] [stdout] 43: 0x58cfaf518070 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h071192a82ffa1680 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:200:33 [INFO] [stdout] 44: 0x58cfaf513ca0 - tokio::runtime::context::runtime::enter_runtime::haf14e377a96a4d79 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/context/runtime.rs:65:16 [INFO] [stdout] 45: 0x58cfaf517d81 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::had1bd5c2d185d9ea [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/scheduler/current_thread/mod.rs:188:9 [INFO] [stdout] 46: 0x58cfaf514764 - tokio::runtime::runtime::Runtime::block_on_inner::h66fcea9d5edb5f6d [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/runtime.rs:356:52 [INFO] [stdout] 47: 0x58cfaf51492c - tokio::runtime::runtime::Runtime::block_on::had3434950a6c19c0 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.46.1/src/runtime/runtime.rs:330:18 [INFO] [stdout] 48: 0x58cfaf5153c3 - account::test_check_my_account::h34fd1635e30aaa05 [INFO] [stdout] at /opt/rustwide/workdir/tests/account.rs:6:30 [INFO] [stdout] 49: 0x58cfaf5156d7 - account::test_check_my_account::{{closure}}::hcba261e97fcf23ac [INFO] [stdout] at /opt/rustwide/workdir/tests/account.rs:4:33 [INFO] [stdout] 50: 0x58cfaf508b16 - core::ops::function::FnOnce::call_once::h5f6be6b51b1bc860 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 51: 0x58cfaf53efbb - core::ops::function::FnOnce::call_once::h7f4b4fba903e39d5 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 52: 0x58cfaf53efbb - test::__rust_begin_short_backtrace::h9277cb6a2ccfc000 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/test/src/lib.rs:663:18 [INFO] [stdout] 53: 0x58cfaf554a65 - test::run_test_in_process::{{closure}}::h9aea5ca90d1f4423 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/test/src/lib.rs:686:74 [INFO] [stdout] 54: 0x58cfaf554a65 - as core::ops::function::FnOnce<()>>::call_once::h364f5fe6cc8afa85 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 55: 0x58cfaf554a65 - std::panicking::catch_unwind::do_call::h2b2bec3317fe53ec [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:590:40 [INFO] [stdout] 56: 0x58cfaf554a65 - std::panicking::catch_unwind::hc3763734156da4af [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:553:19 [INFO] [stdout] 57: 0x58cfaf554a65 - std::panic::catch_unwind::h28038391e867eabc [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panic.rs:359:14 [INFO] [stdout] 58: 0x58cfaf554a65 - test::run_test_in_process::had0273166695a036 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/test/src/lib.rs:686:27 [INFO] [stdout] 59: 0x58cfaf554a65 - test::run_test::{{closure}}::h743d09d4bb476605 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/test/src/lib.rs:607:43 [INFO] [stdout] 60: 0x58cfaf52b484 - test::run_test::{{closure}}::he950b8f9118d37e2 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/test/src/lib.rs:637:41 [INFO] [stdout] 61: 0x58cfaf52b484 - std::sys::backtrace::__rust_begin_short_backtrace::hbfaffa6539f6abb7 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 62: 0x58cfaf52ed6a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hcce3c2c65b9c3b20 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 63: 0x58cfaf52ed6a - as core::ops::function::FnOnce<()>>::call_once::hb66b30b6d37985a5 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 64: 0x58cfaf52ed6a - std::panicking::catch_unwind::do_call::h992bbe2c32dc1d79 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:590:40 [INFO] [stdout] 65: 0x58cfaf52ed6a - std::panicking::catch_unwind::h412991d5237de610 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panicking.rs:553:19 [INFO] [stdout] 66: 0x58cfaf52ed6a - std::panic::catch_unwind::ha82b139b3eb5840a [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/panic.rs:359:14 [INFO] [stdout] 67: 0x58cfaf52ed6a - std::thread::Builder::spawn_unchecked_::{{closure}}::ha823b36f5114938e [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 68: 0x58cfaf52ed6a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hf120e7b1db22ac07 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 69: 0x58cfafd3578f - as core::ops::function::FnOnce>::call_once::h3e049222c99298ac [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 70: 0x58cfafd3578f - std::sys::pal::unix::thread::Thread::new::thread_start::h942e336943ad5963 [INFO] [stdout] at /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 71: 0x746c76443aa4 - [INFO] [stdout] 72: 0x746c764d0a34 - clone [INFO] [stdout] 73: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_check_my_account [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test account` [INFO] running `Command { std: "docker" "inspect" "e78f5331ef069c5cad154965251faeb29a01b142246021101eec87a9fcb15449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e78f5331ef069c5cad154965251faeb29a01b142246021101eec87a9fcb15449", kill_on_drop: false }` [INFO] [stdout] e78f5331ef069c5cad154965251faeb29a01b142246021101eec87a9fcb15449