[INFO] cloning repository https://github.com/jeongwoo0415/newtrash [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jeongwoo0415/newtrash" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeongwoo0415%2Fnewtrash", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeongwoo0415%2Fnewtrash'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d04d61d4c19f6bba30358fa612bca8dc2e20cd0 [INFO] checking jeongwoo0415/newtrash against 1ed2df61a19042f231709eb05d032ae9e2cb2084 for pr-160235 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeongwoo0415%2Fnewtrash" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/jeongwoo0415/newtrash [INFO] finished tweaking git repo https://github.com/jeongwoo0415/newtrash [INFO] tweaked toml for git repo https://github.com/jeongwoo0415/newtrash written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jeongwoo0415/newtrash on toolchain 1ed2df61a19042f231709eb05d032ae9e2cb2084 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jeongwoo0415/newtrash 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" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-appender v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25 [INFO] running `Command { std: "docker" "start" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25" "/opt/rustwide/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25" "/opt/rustwide/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling cc v1.2.57 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking tokio v1.50.0 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking rmp v0.8.15 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking rmp-serde v1.3.1 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking tracing-appender v0.2.4 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking dexcex_arb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `is_busy`, `position_age_secs`, and `print_status` are never used [INFO] [stdout] --> src/execution/orchestrator.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 83 | impl Orchestrator { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn is_busy(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn position_age_secs(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 872 | pub async fn print_status(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_asset_id` and `get_position` are never used [INFO] [stdout] --> src/execution/hl_executor.rs:422:18 [INFO] [stdout] | [INFO] [stdout] 103 | impl HlExecutor { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 422 | pub async fn get_asset_id(&self, coin: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn get_position(&self, coin: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `response` is never read [INFO] [stdout] --> src/execution/hl_executor.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 657 | pub struct HlOrderResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 658 | pub status: String, [INFO] [stdout] 659 | pub response: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HlOrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HlPosition` is never constructed [INFO] [stdout] --> src/execution/hl_executor.rs:663:12 [INFO] [stdout] | [INFO] [stdout] 663 | pub struct HlPosition { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/execution/binance_executor.rs:199:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl BinanceExecutor { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | pub async fn get_position(&self, symbol: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol`, `status`, `executed_qty`, and `avg_price` are never read [INFO] [stdout] --> src/execution/binance_executor.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct BnOrderResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 268 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 269 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 270 | #[serde(rename = "executedQty")] [INFO] [stdout] 271 | pub executed_qty: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 272 | #[serde(rename = "avgPrice")] [INFO] [stdout] 273 | pub avg_price: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BnOrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BnPosition` is never constructed [INFO] [stdout] --> src/execution/binance_executor.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct BnPosition { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily_loss_limit`, `max_open_positions`, `current_open_positions`, `realized_pnl_today`, and `circuit_breaker_triggered` are never read [INFO] [stdout] --> src/risk/manager.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | pub daily_loss_limit: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub max_open_positions: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub current_open_positions: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub realized_pnl_today: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub circuit_breaker_triggered: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_open_position`, `record_pnl`, `position_opened`, `position_closed`, and `reset_daily` are never used [INFO] [stdout] --> src/risk/manager.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn can_open_position(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn record_pnl(&mut self, pnl: Decimal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn position_opened(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn position_closed(&mut self, pnl: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `check_interval_secs` is never read [INFO] [stdout] --> src/config.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct FundingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | pub check_interval_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FundingConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_roundtrip`, `total_roundtrip_mixed`, and `total_roundtrip_maker` are never used [INFO] [stdout] --> src/config.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl FeesConfig { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 72 | /// Both taker (fallback 계산용) [INFO] [stdout] 73 | pub fn total_roundtrip(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn total_roundtrip_mixed(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn total_roundtrip_maker(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `exchange`, `coin_idx`, `rate`, `next_funding_ts`, and `ts` are never read [INFO] [stdout] --> src/types.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 96 | FundingRate { [INFO] [stdout] | ----------- fields in this variant [INFO] [stdout] 97 | exchange: Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 98 | coin_idx: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 99 | rate: f64, // per 8h [INFO] [stdout] | ^^^^ [INFO] [stdout] 100 | next_funding_ts: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | ts: DateTime, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pnl_usdt` is never read [INFO] [stdout] --> src/types.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Position { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 151 | pub pnl_usdt: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_busy`, `position_age_secs`, and `print_status` are never used [INFO] [stdout] --> src/execution/orchestrator.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 83 | impl Orchestrator { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn is_busy(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn position_age_secs(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 872 | pub async fn print_status(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_asset_id` and `get_position` are never used [INFO] [stdout] --> src/execution/hl_executor.rs:422:18 [INFO] [stdout] | [INFO] [stdout] 103 | impl HlExecutor { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 422 | pub async fn get_asset_id(&self, coin: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn get_position(&self, coin: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `response` is never read [INFO] [stdout] --> src/execution/hl_executor.rs:659:9 [INFO] [stdout] | [INFO] [stdout] 657 | pub struct HlOrderResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 658 | pub status: String, [INFO] [stdout] 659 | pub response: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HlOrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HlPosition` is never constructed [INFO] [stdout] --> src/execution/hl_executor.rs:663:12 [INFO] [stdout] | [INFO] [stdout] 663 | pub struct HlPosition { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/execution/binance_executor.rs:199:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl BinanceExecutor { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | pub async fn get_position(&self, symbol: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol`, `status`, `executed_qty`, and `avg_price` are never read [INFO] [stdout] --> src/execution/binance_executor.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 265 | pub struct BnOrderResponse { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 268 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 269 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 270 | #[serde(rename = "executedQty")] [INFO] [stdout] 271 | pub executed_qty: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 272 | #[serde(rename = "avgPrice")] [INFO] [stdout] 273 | pub avg_price: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BnOrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BnPosition` is never constructed [INFO] [stdout] --> src/execution/binance_executor.rs:277:12 [INFO] [stdout] | [INFO] [stdout] 277 | pub struct BnPosition { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `daily_loss_limit`, `max_open_positions`, `current_open_positions`, `realized_pnl_today`, and `circuit_breaker_triggered` are never read [INFO] [stdout] --> src/risk/manager.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct RiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 10 | pub daily_loss_limit: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub max_open_positions: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub current_open_positions: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub realized_pnl_today: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub circuit_breaker_triggered: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_open_position`, `record_pnl`, `position_opened`, `position_closed`, and `reset_daily` are never used [INFO] [stdout] --> src/risk/manager.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn can_open_position(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn record_pnl(&mut self, pnl: Decimal) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn position_opened(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn position_closed(&mut self, pnl: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn reset_daily(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `check_interval_secs` is never read [INFO] [stdout] --> src/config.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct FundingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | pub check_interval_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FundingConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `total_roundtrip`, `total_roundtrip_mixed`, and `total_roundtrip_maker` are never used [INFO] [stdout] --> src/config.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl FeesConfig { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 72 | /// Both taker (fallback 계산용) [INFO] [stdout] 73 | pub fn total_roundtrip(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn total_roundtrip_mixed(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn total_roundtrip_maker(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `exchange`, `coin_idx`, `rate`, `next_funding_ts`, and `ts` are never read [INFO] [stdout] --> src/types.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 96 | FundingRate { [INFO] [stdout] | ----------- fields in this variant [INFO] [stdout] 97 | exchange: Exchange, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 98 | coin_idx: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 99 | rate: f64, // per 8h [INFO] [stdout] | ^^^^ [INFO] [stdout] 100 | next_funding_ts: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 101 | ts: DateTime, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `MarketEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pnl_usdt` is never read [INFO] [stdout] --> src/types.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Position { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 151 | pub pnl_usdt: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.93s [INFO] running `Command { std: "docker" "inspect" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25", kill_on_drop: false }` [INFO] [stdout] 3835b6fdbc21b11d6c3d068db7117eb76bf087793528f419386115815dd1ce25