[INFO] cloning repository https://github.com/kase1111/project_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kase1111/project_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkase1111%2Fproject_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkase1111%2Fproject_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 98f353abd5a6b29fce16037e91440bd8c485ed8a
[INFO] testing kase1111/project_rust against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkase1111%2Fproject_rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  73% (2458/3329)
Updating files:  74% (2464/3329)
Updating files:  75% (2497/3329)
Updating files:  76% (2531/3329)
Updating files:  77% (2564/3329)
Updating files:  78% (2597/3329)
Updating files:  79% (2630/3329)
Updating files:  80% (2664/3329)
Updating files:  81% (2697/3329)
Updating files:  81% (2725/3329)
Updating files:  82% (2730/3329)
Updating files:  83% (2764/3329)
Updating files:  84% (2797/3329)
Updating files:  85% (2830/3329)
Updating files:  86% (2863/3329)
Updating files:  86% (2896/3329)
Updating files:  87% (2897/3329)
Updating files:  88% (2930/3329)
Updating files:  89% (2963/3329)
Updating files:  90% (2997/3329)
Updating files:  91% (3030/3329)
Updating files:  92% (3063/3329)
Updating files:  93% (3096/3329)
Updating files:  94% (3130/3329)
Updating files:  95% (3163/3329)
Updating files:  96% (3196/3329)
Updating files:  97% (3230/3329)
Updating files:  98% (3263/3329)
Updating files:  98% (3268/3329)
Updating files:  99% (3296/3329)
Updating files: 100% (3329/3329)
Updating files: 100% (3329/3329), done.
[INFO] started tweaking git repo https://github.com/kase1111/project_rust
[INFO] finished tweaking git repo https://github.com/kase1111/project_rust
[INFO] tweaked toml for git repo https://github.com/kase1111/project_rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kase1111/project_rust on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kase1111/project_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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded http-range-header v0.3.1
[INFO] [stderr]   Downloaded cc v1.2.29
[INFO] [stderr]   Downloaded tower-http v0.4.4
[INFO] [stderr]   Downloaded rust_decimal v1.37.2
[INFO] [stderr]   Downloaded winnow v0.7.12
[INFO] [stderr]   Downloaded crossbeam v0.8.4
[INFO] [stderr]   Downloaded config v0.14.1
[INFO] [stderr]   Downloaded rust-ini v0.20.0
[INFO] [stderr]   Downloaded tokio v1.46.1
[INFO] [stderr]   Downloaded openssl v0.10.73
[INFO] [stderr]   Downloaded yaml-rust2 v0.8.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9c213130b5f8b84c8acb9e7a579539f4b012334243d9f2c6d436b0a779847a2d
[INFO] running `Command { std: "docker" "start" "-a" "9c213130b5f8b84c8acb9e7a579539f4b012334243d9f2c6d436b0a779847a2d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9c213130b5f8b84c8acb9e7a579539f4b012334243d9f2c6d436b0a779847a2d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9c213130b5f8b84c8acb9e7a579539f4b012334243d9f2c6d436b0a779847a2d", kill_on_drop: false }`
[INFO] [stdout] 9c213130b5f8b84c8acb9e7a579539f4b012334243d9f2c6d436b0a779847a2d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9d3979b2b0e2cbbf09a8b46ccf0d19989594c2fad381c60a6851ce3d7ab6e9d3
[INFO] running `Command { std: "docker" "start" "-a" "9d3979b2b0e2cbbf09a8b46ccf0d19989594c2fad381c60a6851ce3d7ab6e9d3", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling cfg-if v1.0.1
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]    Compiling cc v1.2.29
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling slab v0.4.10
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling hashbrown v0.15.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling rust_decimal v1.37.2
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling event-listener v2.5.3
[INFO] [stderr]    Compiling webpki-roots v0.25.4
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling indexmap v2.10.0
[INFO] [stderr]    Compiling rustix v1.0.7
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling axum-core v0.3.4
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling signal-hook-registry v1.4.5
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling const-random-macro v0.1.16
[INFO] [stderr]    Compiling uuid v1.17.0
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling const-random v0.1.18
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling dlv-list v0.5.2
[INFO] [stderr]    Compiling tokio v1.46.1
[INFO] [stderr]    Compiling data-encoding v2.9.0
[INFO] [stderr]    Compiling winnow v0.7.12
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling axum v0.6.20
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling overload v0.1.1
[INFO] [stderr]    Compiling arraydeque v0.5.1
[INFO] [stderr]    Compiling nanorand v0.7.0
[INFO] [stderr]    Compiling nu-ansi-term v0.46.0
[INFO] [stderr]    Compiling crossbeam-deque v0.8.6
[INFO] [stderr]    Compiling crossbeam-channel v0.5.15
[INFO] [stderr]    Compiling convert_case v0.6.0
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling http-range-header v0.3.1
[INFO] [stderr]    Compiling matchit v0.7.3
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling pathdiff v0.2.3
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling crossbeam v0.8.4
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling ordered-multimap v0.7.3
[INFO] [stderr]    Compiling dashmap v5.5.3
[INFO] [stderr]    Compiling yaml-rust2 v0.8.1
[INFO] [stderr]    Compiling rust-ini v0.20.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.0
[INFO] [stderr]    Compiling zerovec v0.11.2
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling flume v0.10.14
[INFO] [stderr]    Compiling pest v2.8.1
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.2
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling pest_meta v2.8.1
[INFO] [stderr]    Compiling serde v1.0.219
[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 pest_generator v2.8.1
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling pest_derive v2.8.1
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling tungstenite v0.20.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling tokio-tungstenite v0.20.1
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling toml_datetime v0.6.11
[INFO] [stderr]    Compiling serde_spanned v0.6.9
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling json5 v0.4.1
[INFO] [stderr]    Compiling serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling ron v0.8.1
[INFO] [stderr]    Compiling tower-http v0.4.4
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]    Compiling sqlx-core v0.7.4
[INFO] [stderr]    Compiling toml v0.8.23
[INFO] [stderr]    Compiling config v0.14.1
[INFO] [stderr]    Compiling sqlx-postgres v0.7.4
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]    Compiling sqlx v0.7.4
[INFO] [stderr]    Compiling ultra_low_latency_trading_platform v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/database.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Pool` and `Postgres`
[INFO] [stdout]  --> src/database.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{Pool, Postgres, PgPool, Row};
[INFO] [stdout]   |            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OpportunityType` and `TradeType`
[INFO] [stdout]  --> src/database.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::{TickData, MarketData, ArbitrageOpportunity, TradeType, OpportunityType};
[INFO] [stdout]   |                                                                 ^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]  --> src/exchanges/mod.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/exchanges/binance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/exchanges/binance.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> src/exchanges/binance.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/arbitrage.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `info` and `warn`
[INFO] [stdout]  --> src/arbitrage.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, warn};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/utils.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/mod.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let mut client = BinanceClient::new(&self.config.exchanges.binance).await?;
[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: unused import: `SinkExt`
[INFO] [stdout]  --> src/exchanges/binance.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use futures::{SinkExt, StreamExt};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ----^^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `write`
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `message_count` and `error_count` are never read
[INFO] [stdout]   --> src/exchanges/binance.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct BinanceClient {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 |     message_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     error_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is 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 `config` is never read
[INFO] [stdout]   --> src/exchanges/bybit.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BybitClient {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BybitClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bitflyer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BitflyerClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BitflyerClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/gmocoin.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct GmocoinClient {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GmocoinClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ExchangeClient`, `MarketData`, `OrderBook`, and `TickData`
[INFO] [stdout]  --> src/bin/test_data_collection.rs:6:34
[INFO] [stdout]   |
[INFO] [stdout] 6 |     exchanges::{ExchangeManager, ExchangeClient},
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^
[INFO] [stdout] 7 |     models::{TickData, MarketData, OrderBook},
[INFO] [stdout]   |              ^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/database.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Pool` and `Postgres`
[INFO] [stdout]  --> src/database.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{Pool, Postgres, PgPool, Row};
[INFO] [stdout]   |            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OpportunityType` and `TradeType`
[INFO] [stdout]  --> src/database.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::{TickData, MarketData, ArbitrageOpportunity, TradeType, OpportunityType};
[INFO] [stdout]   |                                                                 ^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]  --> src/exchanges/mod.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/exchanges/binance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/exchanges/binance.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> src/exchanges/binance.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/arbitrage.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `info` and `warn`
[INFO] [stdout]  --> src/arbitrage.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, warn};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/utils.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/mod.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let mut client = BinanceClient::new(&self.config.exchanges.binance).await?;
[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: unused import: `SinkExt`
[INFO] [stdout]  --> src/exchanges/binance.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use futures::{SinkExt, StreamExt};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ----^^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `write`
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `database`
[INFO] [stdout]   --> src/main.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let database = Database::new(&config.database_url).await?;
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arbitrage_engine`
[INFO] [stdout]   --> src/main.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let arbitrage_engine = ArbitrageEngine::new(&config);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arbitrage_engine`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/database.rs:155:18
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Database {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 155 |     pub async fn insert_tick_data(&self, tick_data: &TickData) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 173 |     pub async fn insert_market_data(&self, market_data: &MarketData) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 194 |     pub async fn insert_arbitrage_opportunity(&self, opportunity: &ArbitrageOpportunity) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 222 |     pub async fn get_latest_market_data(&self, exchange: &str, symbol: &str) -> Result<Option<MarketData>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 253 |     pub async fn get_recent_arbitrage_opportunities(&self, limit: i32) -> Result<Vec<ArbitrageOpportunity>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 286 |     pub async fn batch_insert_tick_data(&self, tick_data_batch: &[TickData]) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 305 |     pub async fn health_check(&self) -> Result<bool> {
[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 `name` and `disconnect` are never used
[INFO] [stdout]   --> src/exchanges/mod.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub trait ExchangeClient: Send + Sync {
[INFO] [stdout]    |           -------------- methods in this trait
[INFO] [stdout] 40 |     fn name(&self) -> &str;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     async fn disconnect(&mut self) -> Result<()>;
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_tick_data_receiver`, `get_market_data_receiver`, `get_order_book_receiver`, `get_status_receiver`, and `get_all_status` are never used
[INFO] [stdout]    --> src/exchanges/mod.rs:296:12
[INFO] [stdout]     |
[INFO] [stdout] 125 | impl ExchangeManager {
[INFO] [stdout]     | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 296 |     pub fn get_tick_data_receiver(&self) -> broadcast::Receiver<TickData> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 300 |     pub fn get_market_data_receiver(&self) -> broadcast::Receiver<MarketData> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 304 |     pub fn get_order_book_receiver(&self) -> broadcast::Receiver<OrderBook> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 308 |     pub fn get_status_receiver(&self) -> broadcast::Receiver<ExchangeStatus> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 312 |     pub async fn get_all_status(&self) -> Vec<ExchangeStatus> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `message_count` and `error_count` are never read
[INFO] [stdout]   --> src/exchanges/binance.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct BinanceClient {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 |     message_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     error_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bybit.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BybitClient {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BybitClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bitflyer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BitflyerClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BitflyerClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/gmocoin.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct GmocoinClient {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GmocoinClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ArbitrageOpportunity` is never constructed
[INFO] [stdout]   --> src/models.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub struct ArbitrageOpportunity {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OpportunityType` is never used
[INFO] [stdout]   --> src/models.rs:76:10
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub enum OpportunityType {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SystemMetrics` is never constructed
[INFO] [stdout]   --> src/models.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub struct SystemMetrics {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WebSocketMessage` is never constructed
[INFO] [stdout]    --> src/models.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub struct WebSocketMessage {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MessageType` is never used
[INFO] [stdout]    --> src/models.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | pub enum MessageType {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_best_bid`, `get_best_ask`, and `get_spread` are never used
[INFO] [stdout]    --> src/models.rs:184:12
[INFO] [stdout]     |
[INFO] [stdout] 172 | impl OrderBook {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 184 |     pub fn get_best_bid(&self) -> Option<&OrderBookLevel> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 188 |     pub fn get_best_ask(&self) -> Option<&OrderBookLevel> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 192 |     pub fn get_spread(&self) -> Option<Decimal> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/models.rs:202:12
[INFO] [stdout]     |
[INFO] [stdout] 201 | impl ArbitrageOpportunity {
[INFO] [stdout]     | ------------------------- associated function in this implementation
[INFO] [stdout] 202 |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `market_data` are never read
[INFO] [stdout]   --> src/arbitrage.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct ArbitrageEngine {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] 10 |     config: Config,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 11 |     market_data: HashMap<String, MarketData>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_market_data`, `check_arbitrage_opportunities`, and `calculate_arbitrage` are never used
[INFO] [stdout]   --> src/arbitrage.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl ArbitrageEngine {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn update_market_data(&mut self, data: MarketData) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn check_arbitrage_opportunities(&self) -> Vec<ArbitrageOpportunity> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn calculate_arbitrage(&self, data1: &MarketData, data2: &MarketData) -> Option<ArbitrageOpportunity> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_timestamp` is never used
[INFO] [stdout]  --> src/utils.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_current_timestamp() -> DateTime<Utc> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unix_timestamp` is never used
[INFO] [stdout]  --> src/utils.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn get_unix_timestamp() -> i64 {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_symbol` is never used
[INFO] [stdout]   --> src/utils.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub fn format_symbol(symbol: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_percentage_change` is never used
[INFO] [stdout]   --> src/utils.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn calculate_percentage_change(old_value: f64, new_value: f64) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 10s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "9d3979b2b0e2cbbf09a8b46ccf0d19989594c2fad381c60a6851ce3d7ab6e9d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9d3979b2b0e2cbbf09a8b46ccf0d19989594c2fad381c60a6851ce3d7ab6e9d3", kill_on_drop: false }`
[INFO] [stdout] 9d3979b2b0e2cbbf09a8b46ccf0d19989594c2fad381c60a6851ce3d7ab6e9d3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5840171138e45c8c5b2fb4f2c92dbe3e4a935b2a64facc1f4febd88d393ccea8
[INFO] running `Command { std: "docker" "start" "-a" "5840171138e45c8c5b2fb4f2c92dbe3e4a935b2a64facc1f4febd88d393ccea8", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/database.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Pool` and `Postgres`
[INFO] [stdout]  --> src/database.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{Pool, Postgres, PgPool, Row};
[INFO] [stdout]   |            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OpportunityType` and `TradeType`
[INFO] [stdout]  --> src/database.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::{TickData, MarketData, ArbitrageOpportunity, TradeType, OpportunityType};
[INFO] [stdout]   |                                                                 ^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]  --> src/exchanges/mod.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/exchanges/binance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/exchanges/binance.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> src/exchanges/binance.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/arbitrage.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `info` and `warn`
[INFO] [stdout]  --> src/arbitrage.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, warn};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/utils.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/mod.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let mut client = BinanceClient::new(&self.config.exchanges.binance).await?;
[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: unused import: `SinkExt`
[INFO] [stdout]  --> src/exchanges/binance.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use futures::{SinkExt, StreamExt};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ----^^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `write`
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `message_count` and `error_count` are never read
[INFO] [stdout]   --> src/exchanges/binance.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct BinanceClient {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 |     message_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     error_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is 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 `config` is never read
[INFO] [stdout]   --> src/exchanges/bybit.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BybitClient {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BybitClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bitflyer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BitflyerClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BitflyerClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/gmocoin.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct GmocoinClient {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GmocoinClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling ultra_low_latency_trading_platform v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `ExchangeClient`, `MarketData`, `OrderBook`, and `TickData`
[INFO] [stdout]  --> src/bin/test_data_collection.rs:6:34
[INFO] [stdout]   |
[INFO] [stdout] 6 |     exchanges::{ExchangeManager, ExchangeClient},
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^
[INFO] [stdout] 7 |     models::{TickData, MarketData, OrderBook},
[INFO] [stdout]   |              ^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/database.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Pool` and `Postgres`
[INFO] [stdout]  --> src/database.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{Pool, Postgres, PgPool, Row};
[INFO] [stdout]   |            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OpportunityType` and `TradeType`
[INFO] [stdout]  --> src/database.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::{TickData, MarketData, ArbitrageOpportunity, TradeType, OpportunityType};
[INFO] [stdout]   |                                                                 ^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]  --> src/exchanges/mod.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/exchanges/binance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/exchanges/binance.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> src/exchanges/binance.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/arbitrage.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `info` and `warn`
[INFO] [stdout]  --> src/arbitrage.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, warn};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/utils.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/database.rs:2:14
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Pool` and `Postgres`
[INFO] [stdout]  --> src/database.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | use sqlx::{Pool, Postgres, PgPool, Row};
[INFO] [stdout]   |            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `OpportunityType` and `TradeType`
[INFO] [stdout]  --> src/database.rs:6:65
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::{TickData, MarketData, ArbitrageOpportunity, TradeType, OpportunityType};
[INFO] [stdout]   |                                                                 ^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]  --> src/exchanges/mod.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]   |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/exchanges/binance.rs:3:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | use chrono::{DateTime, Utc};
[INFO] [stdout]   |              ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/exchanges/binance.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> src/exchanges/binance.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::sync::{mpsc, broadcast};
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/arbitrage.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `info` and `warn`
[INFO] [stdout]  --> src/arbitrage.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tracing::{info, warn};
[INFO] [stdout]   |               ^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]  --> src/utils.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/mod.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let mut client = BinanceClient::new(&self.config.exchanges.binance).await?;
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/mod.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let mut client = BinanceClient::new(&self.config.exchanges.binance).await?;
[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: unused import: `SinkExt`
[INFO] [stdout]  --> src/exchanges/binance.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use futures::{SinkExt, StreamExt};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ----^^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `write`
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SinkExt`
[INFO] [stdout]  --> src/exchanges/binance.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use futures::{SinkExt, StreamExt};
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ----^^^^^
[INFO] [stdout]     |              |
[INFO] [stdout]     |              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `write`
[INFO] [stdout]    --> src/exchanges/binance.rs:260:14
[INFO] [stdout]     |
[INFO] [stdout] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stdout]     |              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `message_count` and `error_count` are never read
[INFO] [stdout]   --> src/exchanges/binance.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct BinanceClient {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 |     message_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     error_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is 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 `config` is never read
[INFO] [stdout]   --> src/exchanges/bybit.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BybitClient {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BybitClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bitflyer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BitflyerClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BitflyerClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/gmocoin.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct GmocoinClient {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GmocoinClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `database`
[INFO] [stdout]   --> src/main.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let database = Database::new(&config.database_url).await?;
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arbitrage_engine`
[INFO] [stdout]   --> src/main.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let arbitrage_engine = ArbitrageEngine::new(&config);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arbitrage_engine`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/database.rs:155:18
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Database {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 155 |     pub async fn insert_tick_data(&self, tick_data: &TickData) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 173 |     pub async fn insert_market_data(&self, market_data: &MarketData) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 194 |     pub async fn insert_arbitrage_opportunity(&self, opportunity: &ArbitrageOpportunity) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 222 |     pub async fn get_latest_market_data(&self, exchange: &str, symbol: &str) -> Result<Option<MarketData>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 253 |     pub async fn get_recent_arbitrage_opportunities(&self, limit: i32) -> Result<Vec<ArbitrageOpportunity>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 286 |     pub async fn batch_insert_tick_data(&self, tick_data_batch: &[TickData]) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 305 |     pub async fn health_check(&self) -> Result<bool> {
[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 `name` and `disconnect` are never used
[INFO] [stdout]   --> src/exchanges/mod.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub trait ExchangeClient: Send + Sync {
[INFO] [stdout]    |           -------------- methods in this trait
[INFO] [stdout] 40 |     fn name(&self) -> &str;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     async fn disconnect(&mut self) -> Result<()>;
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_tick_data_receiver`, `get_market_data_receiver`, `get_order_book_receiver`, `get_status_receiver`, and `get_all_status` are never used
[INFO] [stdout]    --> src/exchanges/mod.rs:296:12
[INFO] [stdout]     |
[INFO] [stdout] 125 | impl ExchangeManager {
[INFO] [stdout]     | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 296 |     pub fn get_tick_data_receiver(&self) -> broadcast::Receiver<TickData> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 300 |     pub fn get_market_data_receiver(&self) -> broadcast::Receiver<MarketData> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 304 |     pub fn get_order_book_receiver(&self) -> broadcast::Receiver<OrderBook> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 308 |     pub fn get_status_receiver(&self) -> broadcast::Receiver<ExchangeStatus> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 312 |     pub async fn get_all_status(&self) -> Vec<ExchangeStatus> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `message_count` and `error_count` are never read
[INFO] [stdout]   --> src/exchanges/binance.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct BinanceClient {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 |     message_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 25 |     error_count: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bybit.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BybitClient {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BybitClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/bitflyer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct BitflyerClient {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BitflyerClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config` is never read
[INFO] [stdout]   --> src/exchanges/gmocoin.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct GmocoinClient {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 10 |     config: ExchangeConfig,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `GmocoinClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ArbitrageOpportunity` is never constructed
[INFO] [stdout]   --> src/models.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | pub struct ArbitrageOpportunity {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `OpportunityType` is never used
[INFO] [stdout]   --> src/models.rs:76:10
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub enum OpportunityType {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SystemMetrics` is never constructed
[INFO] [stdout]   --> src/models.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub struct SystemMetrics {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `WebSocketMessage` is never constructed
[INFO] [stdout]    --> src/models.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub struct WebSocketMessage {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MessageType` is never used
[INFO] [stdout]    --> src/models.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | pub enum MessageType {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_best_bid`, `get_best_ask`, and `get_spread` are never used
[INFO] [stdout]    --> src/models.rs:184:12
[INFO] [stdout]     |
[INFO] [stdout] 172 | impl OrderBook {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 184 |     pub fn get_best_bid(&self) -> Option<&OrderBookLevel> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 188 |     pub fn get_best_ask(&self) -> Option<&OrderBookLevel> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 192 |     pub fn get_spread(&self) -> Option<Decimal> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/models.rs:202:12
[INFO] [stdout]     |
[INFO] [stdout] 201 | impl ArbitrageOpportunity {
[INFO] [stdout]     | ------------------------- associated function in this implementation
[INFO] [stdout] 202 |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config` and `market_data` are never read
[INFO] [stdout]   --> src/arbitrage.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct ArbitrageEngine {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] 10 |     config: Config,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 11 |     market_data: HashMap<String, MarketData>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `update_market_data`, `check_arbitrage_opportunities`, and `calculate_arbitrage` are never used
[INFO] [stdout]   --> src/arbitrage.rs:22:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl ArbitrageEngine {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn update_market_data(&mut self, data: MarketData) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn check_arbitrage_opportunities(&self) -> Vec<ArbitrageOpportunity> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn calculate_arbitrage(&self, data1: &MarketData, data2: &MarketData) -> Option<ArbitrageOpportunity> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_timestamp` is never used
[INFO] [stdout]  --> src/utils.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_current_timestamp() -> DateTime<Utc> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unix_timestamp` is never used
[INFO] [stdout]  --> src/utils.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn get_unix_timestamp() -> i64 {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `format_symbol` is never used
[INFO] [stdout]   --> src/utils.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub fn format_symbol(symbol: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_percentage_change` is never used
[INFO] [stdout]   --> src/utils.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub fn calculate_percentage_change(old_value: f64, new_value: f64) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.80s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "5840171138e45c8c5b2fb4f2c92dbe3e4a935b2a64facc1f4febd88d393ccea8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5840171138e45c8c5b2fb4f2c92dbe3e4a935b2a64facc1f4febd88d393ccea8", kill_on_drop: false }`
[INFO] [stdout] 5840171138e45c8c5b2fb4f2c92dbe3e4a935b2a64facc1f4febd88d393ccea8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] d53659faab0cf7cd7f9b869f933e5165eaaecb7ac53ddac3119c105a85dc5663
[INFO] running `Command { std: "docker" "start" "-a" "d53659faab0cf7cd7f9b869f933e5165eaaecb7ac53ddac3119c105a85dc5663", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `DateTime` and `Utc`
[INFO] [stderr]  --> src/database.rs:2:14
[INFO] [stderr]   |
[INFO] [stderr] 2 | use chrono::{DateTime, Utc};
[INFO] [stderr]   |              ^^^^^^^^  ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Pool` and `Postgres`
[INFO] [stderr]  --> src/database.rs:3:12
[INFO] [stderr]   |
[INFO] [stderr] 3 | use sqlx::{Pool, Postgres, PgPool, Row};
[INFO] [stderr]   |            ^^^^  ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `OpportunityType` and `TradeType`
[INFO] [stderr]  --> src/database.rs:6:65
[INFO] [stderr]   |
[INFO] [stderr] 6 | use crate::models::{TickData, MarketData, ArbitrageOpportunity, TradeType, OpportunityType};
[INFO] [stderr]   |                                                                 ^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `mpsc`
[INFO] [stderr]  --> src/exchanges/mod.rs:4:19
[INFO] [stderr]   |
[INFO] [stderr] 4 | use tokio::sync::{mpsc, broadcast};
[INFO] [stderr]   |                   ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `DateTime` and `Utc`
[INFO] [stderr]  --> src/exchanges/binance.rs:3:14
[INFO] [stderr]   |
[INFO] [stderr] 3 | use chrono::{DateTime, Utc};
[INFO] [stderr]   |              ^^^^^^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::collections::HashMap`
[INFO] [stderr]  --> src/exchanges/binance.rs:7:5
[INFO] [stderr]   |
[INFO] [stderr] 7 | use std::collections::HashMap;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `mpsc`
[INFO] [stderr]   --> src/exchanges/binance.rs:10:19
[INFO] [stderr]    |
[INFO] [stderr] 10 | use tokio::sync::{mpsc, broadcast};
[INFO] [stderr]    |                   ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `anyhow::Result`
[INFO] [stderr]  --> src/arbitrage.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use anyhow::Result;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `info` and `warn`
[INFO] [stderr]  --> src/arbitrage.rs:4:15
[INFO] [stderr]   |
[INFO] [stderr] 4 | use tracing::{info, warn};
[INFO] [stderr]   |               ^^^^  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `anyhow::Result`
[INFO] [stderr]  --> src/utils.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use anyhow::Result;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/exchanges/mod.rs:152:17
[INFO] [stderr]     |
[INFO] [stderr] 152 |             let mut client = BinanceClient::new(&self.config.exchanges.binance).await?;
[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: unused import: `SinkExt`
[INFO] [stderr]  --> src/exchanges/binance.rs:4:15
[INFO] [stderr]   |
[INFO] [stderr] 4 | use futures::{SinkExt, StreamExt};
[INFO] [stderr]   |               ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/exchanges/binance.rs:260:14
[INFO] [stderr]     |
[INFO] [stderr] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stderr]     |              ----^^^^^
[INFO] [stderr]     |              |
[INFO] [stderr]     |              help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `write`
[INFO] [stderr]    --> src/exchanges/binance.rs:260:14
[INFO] [stderr]     |
[INFO] [stderr] 260 |         let (mut write, mut read) = ws_stream.split();
[INFO] [stderr]     |              ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_write`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `message_count` and `error_count` are never read
[INFO] [stderr]   --> src/exchanges/binance.rs:24:5
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub struct BinanceClient {
[INFO] [stderr]    |            ------------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 24 |     message_count: u64,
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 25 |     error_count: u64,
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is 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 `config` is never read
[INFO] [stderr]   --> src/exchanges/bybit.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub struct BybitClient {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] 10 |     config: ExchangeConfig,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `BybitClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `config` is never read
[INFO] [stderr]   --> src/exchanges/bitflyer.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub struct BitflyerClient {
[INFO] [stderr]    |            -------------- field in this struct
[INFO] [stderr] 10 |     config: ExchangeConfig,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `BitflyerClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `config` is never read
[INFO] [stderr]   --> src/exchanges/gmocoin.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub struct GmocoinClient {
[INFO] [stderr]    |            ------------- field in this struct
[INFO] [stderr] 10 |     config: ExchangeConfig,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `GmocoinClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `ultra_low_latency_trading_platform` (lib) generated 18 warnings (run `cargo fix --lib -p ultra_low_latency_trading_platform` to apply 13 suggestions)
[INFO] [stderr] warning: `ultra_low_latency_trading_platform` (lib test) generated 18 warnings (18 duplicates)
[INFO] [stderr] warning: unused import: `std::env`
[INFO] [stderr]  --> src/main.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::env;
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `DateTime` and `Utc`
[INFO] [stderr]  --> src/database.rs:2:14
[INFO] [stderr]   |
[INFO] [stderr] 2 | use chrono::{DateTime, Utc};
[INFO] [stderr]   |              ^^^^^^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `database`
[INFO] [stderr]   --> src/main.rs:36:9
[INFO] [stderr]    |
[INFO] [stderr] 36 |     let database = Database::new(&config.database_url).await?;
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_database`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `arbitrage_engine`
[INFO] [stderr]   --> src/main.rs:44:9
[INFO] [stderr]    |
[INFO] [stderr] 44 |     let arbitrage_engine = ArbitrageEngine::new(&config);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arbitrage_engine`
[INFO] [stderr] 
[INFO] [stderr] warning: multiple methods are never used
[INFO] [stderr]    --> src/database.rs:155:18
[INFO] [stderr]     |
[INFO] [stderr]  12 | impl Database {
[INFO] [stderr]     | ------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 155 |     pub async fn insert_tick_data(&self, tick_data: &TickData) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 173 |     pub async fn insert_market_data(&self, market_data: &MarketData) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 194 |     pub async fn insert_arbitrage_opportunity(&self, opportunity: &ArbitrageOpportunity) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 222 |     pub async fn get_latest_market_data(&self, exchange: &str, symbol: &str) -> Result<Option<MarketData>> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 253 |     pub async fn get_recent_arbitrage_opportunities(&self, limit: i32) -> Result<Vec<ArbitrageOpportunity>> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 286 |     pub async fn batch_insert_tick_data(&self, tick_data_batch: &[TickData]) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 305 |     pub async fn health_check(&self) -> Result<bool> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: methods `name` and `disconnect` are never used
[INFO] [stderr]   --> src/exchanges/mod.rs:40:8
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub trait ExchangeClient: Send + Sync {
[INFO] [stderr]    |           -------------- methods in this trait
[INFO] [stderr] 40 |     fn name(&self) -> &str;
[INFO] [stderr]    |        ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 43 |     async fn disconnect(&mut self) -> Result<()>;
[INFO] [stderr]    |              ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get_tick_data_receiver`, `get_market_data_receiver`, `get_order_book_receiver`, `get_status_receiver`, and `get_all_status` are never used
[INFO] [stderr]    --> src/exchanges/mod.rs:296:12
[INFO] [stderr]     |
[INFO] [stderr] 125 | impl ExchangeManager {
[INFO] [stderr]     | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 296 |     pub fn get_tick_data_receiver(&self) -> broadcast::Receiver<TickData> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 300 |     pub fn get_market_data_receiver(&self) -> broadcast::Receiver<MarketData> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 304 |     pub fn get_order_book_receiver(&self) -> broadcast::Receiver<OrderBook> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 308 |     pub fn get_status_receiver(&self) -> broadcast::Receiver<ExchangeStatus> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 312 |     pub async fn get_all_status(&self) -> Vec<ExchangeStatus> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `message_count` and `error_count` are never read
[INFO] [stderr]   --> src/exchanges/binance.rs:24:5
[INFO] [stderr]    |
[INFO] [stderr] 19 | pub struct BinanceClient {
[INFO] [stderr]    |            ------------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 24 |     message_count: u64,
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 25 |     error_count: u64,
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `BinanceClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ArbitrageOpportunity` is never constructed
[INFO] [stderr]   --> src/models.rs:50:12
[INFO] [stderr]    |
[INFO] [stderr] 50 | pub struct ArbitrageOpportunity {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `OpportunityType` is never used
[INFO] [stderr]   --> src/models.rs:76:10
[INFO] [stderr]    |
[INFO] [stderr] 76 | pub enum OpportunityType {
[INFO] [stderr]    |          ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `SystemMetrics` is never constructed
[INFO] [stderr]   --> src/models.rs:93:12
[INFO] [stderr]    |
[INFO] [stderr] 93 | pub struct SystemMetrics {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `WebSocketMessage` is never constructed
[INFO] [stderr]    --> src/models.rs:106:12
[INFO] [stderr]     |
[INFO] [stderr] 106 | pub struct WebSocketMessage {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `MessageType` is never used
[INFO] [stderr]    --> src/models.rs:113:10
[INFO] [stderr]     |
[INFO] [stderr] 113 | pub enum MessageType {
[INFO] [stderr]     |          ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get_best_bid`, `get_best_ask`, and `get_spread` are never used
[INFO] [stderr]    --> src/models.rs:184:12
[INFO] [stderr]     |
[INFO] [stderr] 172 | impl OrderBook {
[INFO] [stderr]     | -------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 184 |     pub fn get_best_bid(&self) -> Option<&OrderBookLevel> {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 188 |     pub fn get_best_ask(&self) -> Option<&OrderBookLevel> {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 192 |     pub fn get_spread(&self) -> Option<Decimal> {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/models.rs:202:12
[INFO] [stderr]     |
[INFO] [stderr] 201 | impl ArbitrageOpportunity {
[INFO] [stderr]     | ------------------------- associated function in this implementation
[INFO] [stderr] 202 |     pub fn new(
[INFO] [stderr]     |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `config` and `market_data` are never read
[INFO] [stderr]   --> src/arbitrage.rs:10:5
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub struct ArbitrageEngine {
[INFO] [stderr]    |            --------------- fields in this struct
[INFO] [stderr] 10 |     config: Config,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 11 |     market_data: HashMap<String, MarketData>,
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `update_market_data`, `check_arbitrage_opportunities`, and `calculate_arbitrage` are never used
[INFO] [stderr]   --> src/arbitrage.rs:22:12
[INFO] [stderr]    |
[INFO] [stderr] 14 | impl ArbitrageEngine {
[INFO] [stderr]    | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 22 |     pub fn update_market_data(&mut self, data: MarketData) {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 27 |     pub fn check_arbitrage_opportunities(&self) -> Vec<ArbitrageOpportunity> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 44 |     fn calculate_arbitrage(&self, data1: &MarketData, data2: &MarketData) -> Option<ArbitrageOpportunity> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_current_timestamp` is never used
[INFO] [stderr]  --> src/utils.rs:5:8
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub fn get_current_timestamp() -> DateTime<Utc> {
[INFO] [stderr]   |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_unix_timestamp` is never used
[INFO] [stderr]  --> src/utils.rs:9:8
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub fn get_unix_timestamp() -> i64 {
[INFO] [stderr]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `format_symbol` is never used
[INFO] [stderr]   --> src/utils.rs:16:8
[INFO] [stderr]    |
[INFO] [stderr] 16 | pub fn format_symbol(symbol: &str) -> String {
[INFO] [stderr]    |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `calculate_percentage_change` is never used
[INFO] [stderr]   --> src/utils.rs:20:8
[INFO] [stderr]    |
[INFO] [stderr] 20 | pub fn calculate_percentage_change(old_value: f64, new_value: f64) -> f64 {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `ExchangeClient`, `MarketData`, `OrderBook`, and `TickData`
[INFO] [stderr]  --> src/bin/test_data_collection.rs:6:34
[INFO] [stderr]   |
[INFO] [stderr] 6 |     exchanges::{ExchangeManager, ExchangeClient},
[INFO] [stderr]   |                                  ^^^^^^^^^^^^^^
[INFO] [stderr] 7 |     models::{TickData, MarketData, OrderBook},
[INFO] [stderr]   |              ^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `ultra_low_latency_trading_platform` (bin "ultra_low_latency_trading_platform" test) generated 37 warnings (16 duplicates) (run `cargo fix --bin "ultra_low_latency_trading_platform" -p ultra_low_latency_trading_platform --tests` to apply 4 suggestions)
[INFO] [stderr] warning: `ultra_low_latency_trading_platform` (bin "test_data_collection" test) generated 1 warning (run `cargo fix --bin "test_data_collection" -p ultra_low_latency_trading_platform --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ultra_low_latency_trading_platform-d4b7228270139abc)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/bin/test_data_collection.rs (/opt/rustwide/target/debug/deps/test_data_collection-09d86570b52753ff)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ultra_low_latency_trading_platform-60caf194baa4541d)
[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] [stderr]    Doc-tests ultra_low_latency_trading_platform
[INFO] [stdout] 
[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" "d53659faab0cf7cd7f9b869f933e5165eaaecb7ac53ddac3119c105a85dc5663", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d53659faab0cf7cd7f9b869f933e5165eaaecb7ac53ddac3119c105a85dc5663", kill_on_drop: false }`
[INFO] [stdout] d53659faab0cf7cd7f9b869f933e5165eaaecb7ac53ddac3119c105a85dc5663
