[INFO] cloning repository https://github.com/kukuhtw/dma_bot_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kukuhtw/dma_bot_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkukuhtw%2Fdma_bot_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkukuhtw%2Fdma_bot_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8233e317da32b0adad0fdcb6e95d06f28e8c0ab [INFO] testing kukuhtw/dma_bot_rust against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkukuhtw%2Fdma_bot_rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kukuhtw/dma_bot_rust [INFO] finished tweaking git repo https://github.com/kukuhtw/dma_bot_rust [INFO] tweaked toml for git repo https://github.com/kukuhtw/dma_bot_rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kukuhtw/dma_bot_rust on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kukuhtw/dma_bot_rust 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasi v0.14.4+wasi-0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 639aafff1d6e0b23549a7d6519db2e7aad8669913bd745b163f7bcb98f7712d1 [INFO] running `Command { std: "docker" "start" "-a" "639aafff1d6e0b23549a7d6519db2e7aad8669913bd745b163f7bcb98f7712d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "639aafff1d6e0b23549a7d6519db2e7aad8669913bd745b163f7bcb98f7712d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "639aafff1d6e0b23549a7d6519db2e7aad8669913bd745b163f7bcb98f7712d1", kill_on_drop: false }` [INFO] [stdout] 639aafff1d6e0b23549a7d6519db2e7aad8669913bd745b163f7bcb98f7712d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 622d6a415846e225c65ab76affe68e2b6ba241cfe183ce9c0018b607347112c4 [INFO] running `Command { std: "docker" "start" "-a" "622d6a415846e225c65ab76affe68e2b6ba241cfe183ce9c0018b607347112c4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling synstructure v0.13.2 [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 serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling clap v4.5.47 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling dma_bot_rust v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | let mut pos_map = pos_txs; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data_source` is never read [INFO] [stdout] --> src/config.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Args { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 105 | // symbol [INFO] [stdout] 106 | pub data_source: String, // legacy; tidak wajib digunakan [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Args` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `qty` is never read [INFO] [stdout] --> src/risk.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Positions { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 24 | pub qty: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Positions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_target` is never read [INFO] [stdout] --> src/router.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct RouterCfg { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub inv_target: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RouterCfg` 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 `E` is never read [INFO] [stdout] --> src/binance.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct WsEnvelope { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub E: Option, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `WsEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `L`, and `l` are never read [INFO] [stdout] --> src/binance.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct OrderTradeUpdate { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub x: String, // execution type [INFO] [stdout] | ^ [INFO] [stdout] 44 | #[serde(rename = "L", default)] [INFO] [stdout] 45 | pub L: Option, // last filled price [INFO] [stdout] | ^ [INFO] [stdout] 46 | #[serde(rename = "l", default)] [INFO] [stdout] 47 | pub l: Option, // last filled qty [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderTradeUpdate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `E` should have a snake case name [INFO] [stdout] --> src/binance.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub E: Option, [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `X` should have a snake case name [INFO] [stdout] --> src/binance.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub X: String, // order status: NEW, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `L` should have a snake case name [INFO] [stdout] --> src/binance.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub L: Option, // last filled price [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "622d6a415846e225c65ab76affe68e2b6ba241cfe183ce9c0018b607347112c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "622d6a415846e225c65ab76affe68e2b6ba241cfe183ce9c0018b607347112c4", kill_on_drop: false }` [INFO] [stdout] 622d6a415846e225c65ab76affe68e2b6ba241cfe183ce9c0018b607347112c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd1b13dd7a5a00f720cddb26362fdfaa2cb472d6ac1a9db9a49915d04b026a63 [INFO] running `Command { std: "docker" "start" "-a" "dd1b13dd7a5a00f720cddb26362fdfaa2cb472d6ac1a9db9a49915d04b026a63", kill_on_drop: false }` [INFO] [stderr] Compiling dma_bot_rust v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:289:13 [INFO] [stdout] | [INFO] [stdout] 289 | let mut pos_map = pos_txs; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data_source` is never read [INFO] [stdout] --> src/config.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Args { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 105 | // symbol [INFO] [stdout] 106 | pub data_source: String, // legacy; tidak wajib digunakan [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Args` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `qty` is never read [INFO] [stdout] --> src/risk.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Positions { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 24 | pub qty: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Positions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `inv_target` is never read [INFO] [stdout] --> src/router.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct RouterCfg { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub inv_target: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RouterCfg` 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 `E` is never read [INFO] [stdout] --> src/binance.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct WsEnvelope { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub E: Option, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `WsEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `L`, and `l` are never read [INFO] [stdout] --> src/binance.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct OrderTradeUpdate { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | pub x: String, // execution type [INFO] [stdout] | ^ [INFO] [stdout] 44 | #[serde(rename = "L", default)] [INFO] [stdout] 45 | pub L: Option, // last filled price [INFO] [stdout] | ^ [INFO] [stdout] 46 | #[serde(rename = "l", default)] [INFO] [stdout] 47 | pub l: Option, // last filled qty [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderTradeUpdate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `E` should have a snake case name [INFO] [stdout] --> src/binance.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub E: Option, [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `X` should have a snake case name [INFO] [stdout] --> src/binance.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub X: String, // order status: NEW, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `L` should have a snake case name [INFO] [stdout] --> src/binance.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub L: Option, // last filled price [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.74s [INFO] running `Command { std: "docker" "inspect" "dd1b13dd7a5a00f720cddb26362fdfaa2cb472d6ac1a9db9a49915d04b026a63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd1b13dd7a5a00f720cddb26362fdfaa2cb472d6ac1a9db9a49915d04b026a63", kill_on_drop: false }` [INFO] [stdout] dd1b13dd7a5a00f720cddb26362fdfaa2cb472d6ac1a9db9a49915d04b026a63 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3e7716ba14fcd3db47affa7533b83fe663ac0b3b31e712f4a8e7e450e4ad0504 [INFO] running `Command { std: "docker" "start" "-a" "3e7716ba14fcd3db47affa7533b83fe663ac0b3b31e712f4a8e7e450e4ad0504", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:289:13 [INFO] [stderr] | [INFO] [stderr] 289 | let mut pos_map = pos_txs; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `data_source` is never read [INFO] [stderr] --> src/config.rs:106:9 [INFO] [stderr] | [INFO] [stderr] 104 | pub struct Args { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] 105 | // symbol [INFO] [stderr] 106 | pub data_source: String, // legacy; tidak wajib digunakan [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Args` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `qty` is never read [INFO] [stderr] --> src/risk.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct Positions { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 24 | pub qty: i64, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Positions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `inv_target` is never read [INFO] [stderr] --> src/router.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct RouterCfg { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 17 | pub inv_target: i64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RouterCfg` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `E` is never read [INFO] [stderr] --> src/binance.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct WsEnvelope { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 29 | pub E: Option, [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `WsEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `x`, `L`, and `l` are never read [INFO] [stderr] --> src/binance.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct OrderTradeUpdate { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 43 | pub x: String, // execution type [INFO] [stderr] | ^ [INFO] [stderr] 44 | #[serde(rename = "L", default)] [INFO] [stderr] 45 | pub L: Option, // last filled price [INFO] [stderr] | ^ [INFO] [stderr] 46 | #[serde(rename = "l", default)] [INFO] [stderr] 47 | pub l: Option, // last filled qty [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `OrderTradeUpdate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: structure field `E` should have a snake case name [INFO] [stderr] --> src/binance.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | pub E: Option, [INFO] [stderr] | ^ help: convert the identifier to snake case: `e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `X` should have a snake case name [INFO] [stderr] --> src/binance.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | pub X: String, // order status: NEW, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stderr] [INFO] [stderr] warning: structure field `L` should have a snake case name [INFO] [stderr] --> src/binance.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | pub L: Option, // last filled price [INFO] [stderr] | ^ help: convert the identifier to snake case: `l` [INFO] [stderr] [INFO] [stderr] warning: `dma_bot_rust` (bin "dma_bot_rust" test) generated 9 warnings (run `cargo fix --bin "dma_bot_rust" -p dma_bot_rust --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/dma_bot_rust-9aa02262e3a705e4) [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] running `Command { std: "docker" "inspect" "3e7716ba14fcd3db47affa7533b83fe663ac0b3b31e712f4a8e7e450e4ad0504", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e7716ba14fcd3db47affa7533b83fe663ac0b3b31e712f4a8e7e450e4ad0504", kill_on_drop: false }` [INFO] [stdout] 3e7716ba14fcd3db47affa7533b83fe663ac0b3b31e712f4a8e7e450e4ad0504