[INFO] cloning repository https://github.com/rodionkuznietsov/arbitration_v2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rodionkuznietsov/arbitration_v2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frodionkuznietsov%2Farbitration_v2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frodionkuznietsov%2Farbitration_v2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c036a780673c0d1436041c0a32b816eb7463fd7 [INFO] checking rodionkuznietsov/arbitration_v2 against try#22cc29ba5b459fb386c0406b9baf3a49eb0fba39 for pr-146095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frodionkuznietsov%2Farbitration_v2" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rodionkuznietsov/arbitration_v2 [INFO] finished tweaking git repo https://github.com/rodionkuznietsov/arbitration_v2 [INFO] tweaked toml for git repo https://github.com/rodionkuznietsov/arbitration_v2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rodionkuznietsov/arbitration_v2 on toolchain 22cc29ba5b459fb386c0406b9baf3a49eb0fba39 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rodionkuznietsov/arbitration_v2 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" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50a3136e2667a775fcc81dc2cf1c4e23607875c4536e105482b399816c7af258 [INFO] running `Command { std: "docker" "start" "-a" "50a3136e2667a775fcc81dc2cf1c4e23607875c4536e105482b399816c7af258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50a3136e2667a775fcc81dc2cf1c4e23607875c4536e105482b399816c7af258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50a3136e2667a775fcc81dc2cf1c4e23607875c4536e105482b399816c7af258", kill_on_drop: false }` [INFO] [stdout] 50a3136e2667a775fcc81dc2cf1c4e23607875c4536e105482b399816c7af258 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f02864ffdfabd91dd38c35ecc2207eb168d5856b9f9d4ce763ff8becba6e211 [INFO] running `Command { std: "docker" "start" "-a" "0f02864ffdfabd91dd38c35ecc2207eb168d5856b9f9d4ce763ff8becba6e211", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.179 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling syn v2.0.113 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling aws-lc-rs v1.15.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling zmij v1.0.10 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Checking rustls-pki-types v1.13.2 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling serde_json v1.0.148 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling erasable v1.3.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking sqlformat v0.2.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.35.0 [INFO] [stderr] Compiling libsqlite3-sys v0.24.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking openssl-probe v0.2.0 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha1 v0.6.1 [INFO] [stderr] Checking rustls-native-certs v0.8.3 [INFO] [stderr] Checking uuid v1.19.0 [INFO] [stderr] Checking rc-box v1.3.0 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Checking never v0.1.0 [INFO] [stderr] Checking takecell v0.1.1 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking vecrem v0.1.0 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking webpki v0.22.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Checking tower-http v0.3.5 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking dptree v0.3.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Compiling aquamarine v0.1.12 [INFO] [stderr] Compiling teloxide-macros v0.7.1 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling sqlx-rt v0.6.3 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Compiling sqlx-core v0.6.3 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking redis v0.21.7 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Compiling sqlx-macros v0.6.3 [INFO] [stderr] Checking sqlx v0.6.3 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking rustls-webpki v0.103.8 [INFO] [stderr] Checking teloxide-core v0.9.1 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.6.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.13.1 [INFO] [stderr] Checking teloxide v0.12.2 [INFO] [stderr] Checking arbitration v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, time::Duration}; [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: `RwLock` [INFO] [stdout] --> src/main.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::sync::{RwLock, broadcast, mpsc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/exchange.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/exchange.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> src/exchange.rs:3:51 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::{RwLock, broadcast, mpsc::{self, Sender}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Snapshot` [INFO] [stdout] --> src/exchange.rs:5:79 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{ExchangeNames, exchanges::{orderbook::{LocalOrderBook, OrderType, Snapshot, SnapshotUi}, *}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> src/websocket.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Interval`, `Receiver`, and `select` [INFO] [stdout] --> src/websocket.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::{net::TcpListener, select, sync::{RwLock, broadcast, mpsc::{self, Receiver}}, time::{Interval, interval}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Snapshot` [INFO] [stdout] --> src/websocket.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::exchanges::orderbook::{LocalOrderBook, OrderType, Snapshot, SnapshotUi}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, time::Duration}; [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: `RwLock` [INFO] [stdout] --> src/main.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::sync::{RwLock, broadcast, mpsc}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::Duration` [INFO] [stdout] --> src/exchange.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{sync::Arc, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/exchange.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> src/exchange.rs:3:51 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::{RwLock, broadcast, mpsc::{self, Sender}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Snapshot` [INFO] [stdout] --> src/exchange.rs:5:79 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{ExchangeNames, exchanges::{orderbook::{LocalOrderBook, OrderType, Snapshot, SnapshotUi}, *}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> src/websocket.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Interval`, `Receiver`, and `select` [INFO] [stdout] --> src/websocket.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::{net::TcpListener, select, sync::{RwLock, broadcast, mpsc::{self, Receiver}}, time::{Interval, interval}}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Snapshot` [INFO] [stdout] --> src/websocket.rs:8:62 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::exchanges::orderbook::{LocalOrderBook, OrderType, Snapshot, SnapshotUi}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/exchanges/orderbook.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | if let Some(mut snapshot) = self.books.get(&ticker.to_lowercase()) { [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/orderbook.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut old_asks = &snapshot.a; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/exchanges/orderbook.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut old_bids = &snapshot.b; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/exchanges/orderbook.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | if let Some(mut snapshot) = self.books.get(&ticker.to_lowercase()) { [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/orderbook.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut old_asks = &snapshot.a; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/exchanges/orderbook.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut old_bids = &snapshot.b; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asks` [INFO] [stdout] --> src/exchanges/orderbook.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | asks: BTreeMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_asks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bids` [INFO] [stdout] --> src/exchanges/orderbook.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | bids: BTreeMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_asks` [INFO] [stdout] --> src/exchanges/orderbook.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut old_asks = &snapshot.a; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_asks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_bids` [INFO] [stdout] --> src/exchanges/orderbook.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut old_bids = &snapshot.b; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_bids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asks` [INFO] [stdout] --> src/exchanges/orderbook.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | asks: BTreeMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_asks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bids` [INFO] [stdout] --> src/exchanges/orderbook.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | bids: BTreeMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_asks` [INFO] [stdout] --> src/exchanges/orderbook.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut old_asks = &snapshot.a; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_asks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_bids` [INFO] [stdout] --> src/exchanges/orderbook.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut old_bids = &snapshot.b; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_bids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_book` [INFO] [stdout] --> src/exchange.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | long_book: Arc>, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `short_book` [INFO] [stdout] --> src/exchange.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | short_book: Arc>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_short_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_book_cl` [INFO] [stdout] --> src/exchange.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let binance_book_cl = binance_book.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_book_cl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_book` [INFO] [stdout] --> src/websocket.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | long_book: Arc>, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `short_book` [INFO] [stdout] --> src/websocket.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | short_book: Arc>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_short_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_hashmap` is never used [INFO] [stdout] --> src/exchanges/orderbook.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl LocalOrderBook { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn to_hashmap(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange_name` is never read [INFO] [stdout] --> src/exchange.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct ExchangeWithParam { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 9 | exchange_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeWithParam` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `types` is never read [INFO] [stdout] --> src/websocket.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WebsocketReceiverParams { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 12 | pub exchanges: Exchanges, [INFO] [stdout] 13 | pub types: OrderTypes, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebsocketReceiverParams` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `long_type` and `short_type` are never read [INFO] [stdout] --> src/websocket.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct OrderTypes { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 27 | #[serde(rename="longType")] [INFO] [stdout] 28 | pub long_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | #[serde(rename="shortType")] [INFO] [stdout] 30 | pub short_type: String [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderTypes` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_book` [INFO] [stdout] --> src/exchange.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | long_book: Arc>, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `short_book` [INFO] [stdout] --> src/exchange.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | short_book: Arc>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_short_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_book_cl` [INFO] [stdout] --> src/exchange.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let binance_book_cl = binance_book.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_book_cl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_book` [INFO] [stdout] --> src/websocket.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | long_book: Arc>, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `short_book` [INFO] [stdout] --> src/websocket.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | short_book: Arc>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_short_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_hashmap` is never used [INFO] [stdout] --> src/exchanges/orderbook.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl LocalOrderBook { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn to_hashmap(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange_name` is never read [INFO] [stdout] --> src/exchange.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct ExchangeWithParam { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 9 | exchange_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeWithParam` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `types` is never read [INFO] [stdout] --> src/websocket.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WebsocketReceiverParams { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 12 | pub exchanges: Exchanges, [INFO] [stdout] 13 | pub types: OrderTypes, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebsocketReceiverParams` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `long_type` and `short_type` are never read [INFO] [stdout] --> src/websocket.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct OrderTypes { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 27 | #[serde(rename="longType")] [INFO] [stdout] 28 | pub long_type: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | #[serde(rename="shortType")] [INFO] [stdout] 30 | pub short_type: String [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderTypes` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 07s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.21.7, teloxide v0.12.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "0f02864ffdfabd91dd38c35ecc2207eb168d5856b9f9d4ce763ff8becba6e211", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f02864ffdfabd91dd38c35ecc2207eb168d5856b9f9d4ce763ff8becba6e211", kill_on_drop: false }` [INFO] [stdout] 0f02864ffdfabd91dd38c35ecc2207eb168d5856b9f9d4ce763ff8becba6e211