[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 try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvitordhers%2Farbitrage_bot" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vitordhers/arbitrage_bot on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-3-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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d85b3382bd66d3bcc678f3f76dc7e1e42ad94a11ef3eab43c48410b4e858014 [INFO] running `Command { std: "docker" "start" "-a" "6d85b3382bd66d3bcc678f3f76dc7e1e42ad94a11ef3eab43c48410b4e858014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d85b3382bd66d3bcc678f3f76dc7e1e42ad94a11ef3eab43c48410b4e858014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d85b3382bd66d3bcc678f3f76dc7e1e42ad94a11ef3eab43c48410b4e858014", kill_on_drop: false }` [INFO] [stdout] 6d85b3382bd66d3bcc678f3f76dc7e1e42ad94a11ef3eab43c48410b4e858014 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d677be0dbcfe51aced95b48adb682ddd26bc23c862b13b3727172a94278e7542 [INFO] running `Command { std: "docker" "start" "-a" "d677be0dbcfe51aced95b48adb682ddd26bc23c862b13b3727172a94278e7542", 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 shlex v1.3.0 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Compiling once_cell v1.20.1 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [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 mime v0.3.17 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling idna v0.5.0 [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 tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [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: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: 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: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: 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 57.67s [INFO] running `Command { std: "docker" "inspect" "d677be0dbcfe51aced95b48adb682ddd26bc23c862b13b3727172a94278e7542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d677be0dbcfe51aced95b48adb682ddd26bc23c862b13b3727172a94278e7542", kill_on_drop: false }` [INFO] [stdout] d677be0dbcfe51aced95b48adb682ddd26bc23c862b13b3727172a94278e7542 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41b758f675df533cb50677519f5d9cd988bd48e2c3b6db438e0bfbe8c390c998 [INFO] running `Command { std: "docker" "start" "-a" "41b758f675df533cb50677519f5d9cd988bd48e2c3b6db438e0bfbe8c390c998", 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: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: 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: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: 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 0.83s [INFO] running `Command { std: "docker" "inspect" "41b758f675df533cb50677519f5d9cd988bd48e2c3b6db438e0bfbe8c390c998", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41b758f675df533cb50677519f5d9cd988bd48e2c3b6db438e0bfbe8c390c998", kill_on_drop: false }` [INFO] [stdout] 41b758f675df533cb50677519f5d9cd988bd48e2c3b6db438e0bfbe8c390c998 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0021c4ba26d4cb7321773657e8d7026496cc7a31ed6d31901dec7f09c1095186 [INFO] running `Command { std: "docker" "start" "-a" "0021c4ba26d4cb7321773657e8d7026496cc7a31ed6d31901dec7f09c1095186", 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: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: 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: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: 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.25s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/arbirtrage_bot-867b95741fc6f005) [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" "0021c4ba26d4cb7321773657e8d7026496cc7a31ed6d31901dec7f09c1095186", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0021c4ba26d4cb7321773657e8d7026496cc7a31ed6d31901dec7f09c1095186", kill_on_drop: false }` [INFO] [stdout] 0021c4ba26d4cb7321773657e8d7026496cc7a31ed6d31901dec7f09c1095186