[INFO] cloning repository https://github.com/vitordhers/arbitrage_bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vitordhers/arbitrage_bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitordhers%2Farbitrage_bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitordhers%2Farbitrage_bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 089cb11dbe1bad261f3865c6a4d6e8a963e487ea [INFO] testing vitordhers/arbitrage_bot against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitordhers%2Farbitrage_bot" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vitordhers/arbitrage_bot on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vitordhers/arbitrage_bot [INFO] finished tweaking git repo https://github.com/vitordhers/arbitrage_bot [INFO] tweaked toml for git repo https://github.com/vitordhers/arbitrage_bot written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/vitordhers/arbitrage_bot already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e675b701960c37648dcedb7a1a97d40ab55879fe8a8dbfbeaf415fedfd4b00bb [INFO] running `Command { std: "docker" "start" "-a" "e675b701960c37648dcedb7a1a97d40ab55879fe8a8dbfbeaf415fedfd4b00bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e675b701960c37648dcedb7a1a97d40ab55879fe8a8dbfbeaf415fedfd4b00bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e675b701960c37648dcedb7a1a97d40ab55879fe8a8dbfbeaf415fedfd4b00bb", kill_on_drop: false }` [INFO] [stdout] e675b701960c37648dcedb7a1a97d40ab55879fe8a8dbfbeaf415fedfd4b00bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d68532d9b5db5e0737214ee377169c69beda24921cf6637a153fc35bc0958cc [INFO] running `Command { std: "docker" "start" "-a" "1d68532d9b5db5e0737214ee377169c69beda24921cf6637a153fc35bc0958cc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling arbirtrage_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/main.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, result, time::Duration}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bid_price` [INFO] [stdout] --> src/main.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | let (ask_price, bid_price, qty, symbol, costs) = match action { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bid_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:206:40 [INFO] [stdout] | [INFO] [stdout] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:206:50 [INFO] [stdout] | [INFO] [stdout] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:221:34 [INFO] [stdout] | [INFO] [stdout] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:221:44 [INFO] [stdout] | [INFO] [stdout] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:216:35 [INFO] [stdout] | [INFO] [stdout] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:216:45 [INFO] [stdout] | [INFO] [stdout] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:211:39 [INFO] [stdout] | [INFO] [stdout] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:211:49 [INFO] [stdout] | [INFO] [stdout] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_update_id` is never read [INFO] [stdout] --> src/main.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 310 | struct BinanceOrderBookData { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 311 | #[serde(rename = "lastUpdateId")] [INFO] [stdout] 312 | pub last_update_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceOrderBookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/main.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 318 | struct MBOrderBookData { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 319 | pub timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MBOrderBookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `USDTBRL` and `ETHBRL` are never constructed [INFO] [stdout] --> src/main.rs:336:5 [INFO] [stdout] | [INFO] [stdout] 333 | enum Symbol { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 336 | USDTBRL, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 337 | ETHBRL, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s [INFO] running `Command { std: "docker" "inspect" "1d68532d9b5db5e0737214ee377169c69beda24921cf6637a153fc35bc0958cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d68532d9b5db5e0737214ee377169c69beda24921cf6637a153fc35bc0958cc", kill_on_drop: false }` [INFO] [stdout] 1d68532d9b5db5e0737214ee377169c69beda24921cf6637a153fc35bc0958cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45e9663d83f9b260ea6dc7aa12167902196ee6a6637d6ed93a14e956a3f4b988 [INFO] running `Command { std: "docker" "start" "-a" "45e9663d83f9b260ea6dc7aa12167902196ee6a6637d6ed93a14e956a3f4b988", kill_on_drop: false }` [INFO] [stderr] Compiling arbirtrage_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/main.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, result, time::Duration}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bid_price` [INFO] [stdout] --> src/main.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | let (ask_price, bid_price, qty, symbol, costs) = match action { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bid_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:206:24 [INFO] [stdout] | [INFO] [stdout] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:206:40 [INFO] [stdout] | [INFO] [stdout] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:206:50 [INFO] [stdout] | [INFO] [stdout] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:221:34 [INFO] [stdout] | [INFO] [stdout] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:221:44 [INFO] [stdout] | [INFO] [stdout] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:216:35 [INFO] [stdout] | [INFO] [stdout] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:216:45 [INFO] [stdout] | [INFO] [stdout] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qty` [INFO] [stdout] --> src/main.rs:211:39 [INFO] [stdout] | [INFO] [stdout] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:211:49 [INFO] [stdout] | [INFO] [stdout] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_update_id` is never read [INFO] [stdout] --> src/main.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 310 | struct BinanceOrderBookData { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 311 | #[serde(rename = "lastUpdateId")] [INFO] [stdout] 312 | pub last_update_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceOrderBookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/main.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 318 | struct MBOrderBookData { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 319 | pub timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MBOrderBookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `USDTBRL` and `ETHBRL` are never constructed [INFO] [stdout] --> src/main.rs:336:5 [INFO] [stdout] | [INFO] [stdout] 333 | enum Symbol { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 336 | USDTBRL, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 337 | ETHBRL, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.15s [INFO] running `Command { std: "docker" "inspect" "45e9663d83f9b260ea6dc7aa12167902196ee6a6637d6ed93a14e956a3f4b988", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45e9663d83f9b260ea6dc7aa12167902196ee6a6637d6ed93a14e956a3f4b988", kill_on_drop: false }` [INFO] [stdout] 45e9663d83f9b260ea6dc7aa12167902196ee6a6637d6ed93a14e956a3f4b988 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6f7816062b6ab1ae4dd3460331f92d4578df91e94d224ea26a4d27a208af2520 [INFO] running `Command { std: "docker" "start" "-a" "6f7816062b6ab1ae4dd3460331f92d4578df91e94d224ea26a4d27a208af2520", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `result` [INFO] [stderr] --> src/main.rs:1:33 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, result, time::Duration}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bid_price` [INFO] [stderr] --> src/main.rs:147:21 [INFO] [stderr] | [INFO] [stderr] 147 | let (ask_price, bid_price, qty, symbol, costs) = match action { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bid_price` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `symbol` [INFO] [stderr] --> src/main.rs:206:24 [INFO] [stderr] | [INFO] [stderr] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `qty` [INFO] [stderr] --> src/main.rs:206:40 [INFO] [stderr] | [INFO] [stderr] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `price` [INFO] [stderr] --> src/main.rs:206:50 [INFO] [stderr] | [INFO] [stderr] 206 | async fn short_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `symbol` [INFO] [stderr] --> src/main.rs:221:18 [INFO] [stderr] | [INFO] [stderr] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `qty` [INFO] [stderr] --> src/main.rs:221:34 [INFO] [stderr] | [INFO] [stderr] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `price` [INFO] [stderr] --> src/main.rs:221:44 [INFO] [stderr] | [INFO] [stderr] 221 | async fn long_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `symbol` [INFO] [stderr] --> src/main.rs:216:19 [INFO] [stderr] | [INFO] [stderr] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `qty` [INFO] [stderr] --> src/main.rs:216:35 [INFO] [stderr] | [INFO] [stderr] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `price` [INFO] [stderr] --> src/main.rs:216:45 [INFO] [stderr] | [INFO] [stderr] 216 | async fn short_mb(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `symbol` [INFO] [stderr] --> src/main.rs:211:23 [INFO] [stderr] | [INFO] [stderr] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `qty` [INFO] [stderr] --> src/main.rs:211:39 [INFO] [stderr] | [INFO] [stderr] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_qty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `price` [INFO] [stderr] --> src/main.rs:211:49 [INFO] [stderr] | [INFO] [stderr] 211 | async fn long_binance(symbol: Symbol, qty: f64, price: f64) -> Result<(), Error> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stderr] [INFO] [stderr] warning: field `last_update_id` is never read [INFO] [stderr] --> src/main.rs:312:9 [INFO] [stderr] | [INFO] [stderr] 310 | struct BinanceOrderBookData { [INFO] [stderr] | -------------------- field in this struct [INFO] [stderr] 311 | #[serde(rename = "lastUpdateId")] [INFO] [stderr] 312 | pub last_update_id: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BinanceOrderBookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `timestamp` is never read [INFO] [stderr] --> src/main.rs:319:9 [INFO] [stderr] | [INFO] [stderr] 318 | struct MBOrderBookData { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] 319 | pub timestamp: u64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MBOrderBookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `USDTBRL` and `ETHBRL` are never constructed [INFO] [stderr] --> src/main.rs:336:5 [INFO] [stderr] | [INFO] [stderr] 333 | enum Symbol { [INFO] [stderr] | ------ variants in this enum [INFO] [stderr] ... [INFO] [stderr] 336 | USDTBRL, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 337 | ETHBRL, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Symbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `arbirtrage_bot` (bin "arbirtrage_bot" test) generated 17 warnings (run `cargo fix --bin "arbirtrage_bot" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/arbirtrage_bot-0cc05322d79eedc0) [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" "6f7816062b6ab1ae4dd3460331f92d4578df91e94d224ea26a4d27a208af2520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f7816062b6ab1ae4dd3460331f92d4578df91e94d224ea26a4d27a208af2520", kill_on_drop: false }` [INFO] [stdout] 6f7816062b6ab1ae4dd3460331f92d4578df91e94d224ea26a4d27a208af2520