[INFO] cloning repository https://github.com/eyupgurel/obbenchmark [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eyupgurel/obbenchmark" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feyupgurel%2Fobbenchmark", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feyupgurel%2Fobbenchmark'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9dbaab5b8e474d2e90d9d0c7408563178268f3b3 [INFO] checking eyupgurel/obbenchmark against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feyupgurel%2Fobbenchmark" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eyupgurel/obbenchmark on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eyupgurel/obbenchmark [INFO] finished tweaking git repo https://github.com/eyupgurel/obbenchmark [INFO] tweaked toml for git repo https://github.com/eyupgurel/obbenchmark written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eyupgurel/obbenchmark 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bigdecimal v0.4.2 [INFO] [stderr] Downloaded libz-sys v1.1.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 501e881ef939d253fd756e59079a3dd4a005a0b4b7e8063c65bee44236bae1a9 [INFO] running `Command { std: "docker" "start" "-a" "501e881ef939d253fd756e59079a3dd4a005a0b4b7e8063c65bee44236bae1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "501e881ef939d253fd756e59079a3dd4a005a0b4b7e8063c65bee44236bae1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "501e881ef939d253fd756e59079a3dd4a005a0b4b7e8063c65bee44236bae1a9", kill_on_drop: false }` [INFO] [stdout] 501e881ef939d253fd756e59079a3dd4a005a0b4b7e8063c65bee44236bae1a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e36d11156fe6059e2802fc2fdc5b4a0e6474ab2e4d95f7c059d9e0be3a34d122 [INFO] running `Command { std: "docker" "start" "-a" "e36d11156fe6059e2802fc2fdc5b4a0e6474ab2e4d95f7c059d9e0be3a34d122", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling pkg-config v0.3.28 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.62 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Checking http v0.2.11 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Compiling prettyplease v0.2.16 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking unicode-bidi v0.3.14 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling winnow v0.5.34 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.98 [INFO] [stderr] Compiling libz-sys v1.1.14 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling rdkafka-sys v4.7.0+2.3.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking which v4.4.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling tempfile v3.9.0 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Compiling bigdecimal v0.4.2 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Compiling rust_decimal v1.33.1 [INFO] [stderr] Checking crossbeam-channel v0.5.11 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking time v0.3.31 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking iana-time-zone v0.1.59 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking protoc v2.28.0 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling prost-derive v0.12.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling prost v0.12.3 [INFO] [stderr] Checking prost-types v0.12.3 [INFO] [stderr] Checking num_enum v0.5.11 [INFO] [stderr] Compiling prost-build v0.12.3 [INFO] [stderr] Checking tungstenite v0.17.3 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Compiling obbenchmark v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking h2 v0.3.23 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.17.2 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.23 [INFO] [stderr] Checking rdkafka v0.36.2 [INFO] [stdout] warning: unused import: `crate::env` [INFO] [stdout] --> src/sockets/binance_ob_socket.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::env; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::env::EnvVars` [INFO] [stdout] --> src/sockets/binance_ob_socket.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::env::EnvVars; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DepthUpdateStream`, `OrderBookStream` [INFO] [stdout] --> src/main.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::sockets::common::{DepthUpdateStream, OrderBookStream}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/main.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 201 | use std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:350:19 [INFO] [stdout] | [INFO] [stdout] 350 | if(book_order.quantity > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 350 - if(book_order.quantity > 0) { [INFO] [stdout] 350 + if book_order.quantity > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:354:27 [INFO] [stdout] | [INFO] [stdout] 354 | } else if (book_order.quantity == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 354 - } else if (book_order.quantity == 0) { [INFO] [stdout] 354 + } else if book_order.quantity == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:377:19 [INFO] [stdout] | [INFO] [stdout] 377 | if(order_count>100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 377 - if(order_count>100){ [INFO] [stdout] 377 + if order_count>100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Instant` is imported redundantly [INFO] [stdout] --> src/main.rs:395:22 [INFO] [stdout] | [INFO] [stdout] 394 | use super::*; [INFO] [stdout] | -------- the item `Instant` is already imported here [INFO] [stdout] 395 | use std::{time::{Instant, Duration}, hash::Hash}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Duration` is imported redundantly [INFO] [stdout] --> src/main.rs:395:31 [INFO] [stdout] | [INFO] [stdout] 394 | use super::*; [INFO] [stdout] | -------- the item `Duration` is already imported here [INFO] [stdout] 395 | use std::{time::{Instant, Duration}, hash::Hash}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::env` [INFO] [stdout] --> src/sockets/binance_ob_socket.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::env; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::env::EnvVars` [INFO] [stdout] --> src/sockets/binance_ob_socket.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::env::EnvVars; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DepthUpdateStream`, `OrderBookStream` [INFO] [stdout] --> src/main.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::sockets::common::{DepthUpdateStream, OrderBookStream}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/main.rs:201:5 [INFO] [stdout] | [INFO] [stdout] 201 | use std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:350:19 [INFO] [stdout] | [INFO] [stdout] 350 | if(book_order.quantity > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 350 - if(book_order.quantity > 0) { [INFO] [stdout] 350 + if book_order.quantity > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:354:27 [INFO] [stdout] | [INFO] [stdout] 354 | } else if (book_order.quantity == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 354 - } else if (book_order.quantity == 0) { [INFO] [stdout] 354 + } else if book_order.quantity == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:377:19 [INFO] [stdout] | [INFO] [stdout] 377 | if(order_count>100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 377 - if(order_count>100){ [INFO] [stdout] 377 + if order_count>100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/main.rs:395:42 [INFO] [stdout] | [INFO] [stdout] 395 | use std::{time::{Instant, Duration}, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vars` [INFO] [stdout] --> src/sockets/common.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let vars: EnvVars = env::env_variables(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vars` [INFO] [stdout] --> src/sockets/common.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let vars: EnvVars = env::env_variables(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vars` [INFO] [stdout] --> src/sockets/common.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let vars: EnvVars = env::env_variables(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vars` [INFO] [stdout] --> src/sockets/common.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let vars: EnvVars = env::env_variables(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vars` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | for (price, timestamp, hash) in orders_to_delete { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | for (price, timestamp, hash) in orders_to_delete { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let quantity = market_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let m = generate_and_process_random_order(&mut order_book, &mut price_time_map).expect("could not match"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/main.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | for (price, timestamp, hash) in orders_to_delete { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestamp` [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | for (price, timestamp, hash) in orders_to_delete { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let quantity = market_order.quantity; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price_time_map` [INFO] [stdout] --> src/main.rs:489:34 [INFO] [stdout] | [INFO] [stdout] 489 | ... let (mut order_book, mut price_time_map): (BTreeMap>>,HashMap) = ... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_time_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:489:30 [INFO] [stdout] | [INFO] [stdout] 489 | ... let (mut order_book, mut price_time_map): (BTreeMap>>,HashMap) = ... [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/main.rs:535:27 [INFO] [stdout] | [INFO] [stdout] 535 | fn set_up_test_orders(size: usize) -> (BTreeMap>>,HashMap) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price_time_map` [INFO] [stdout] --> src/main.rs:557:26 [INFO] [stdout] | [INFO] [stdout] 557 | ... let (order_book, price_time_map): (BTreeMap>>,HashMap) = set_up_t... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_price_time_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sockets/binance_ob_socket.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl BinanceOrderBookStream { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stream_ob_socket` is never used [INFO] [stdout] --> src/sockets/common.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait OrderBookStream [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | fn stream_ob_socket( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stream_depth_update_socket` is never used [INFO] [stdout] --> src/sockets/common.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub trait DepthUpdateStream [INFO] [stdout] | ----------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn stream_depth_update_socket( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sockets/binance_depth_update_socket.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl BinanceDepthUpdateStream { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `binance`, `kucoin`, and `bluefin` are never read [INFO] [stdout] --> src/models/common.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Symbol { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub binance: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub kucoin: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub bluefin: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` 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: multiple fields are never read [INFO] [stdout] --> src/models/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub mm_lot_upper_bound: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub lot_size:u128, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | pub min_size:String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | pub price_precision: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub skewing_coefficient:f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub symbols: Symbol, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` 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 `num_retries` and `failure_threshold` are never read [INFO] [stdout] --> src/models/common.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct CircuitBreakerConfig { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 33 | pub num_retries: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | pub failure_threshold: u8 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CircuitBreakerConfig` 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 `circuit_breaker_config` and `markets` are never read [INFO] [stdout] --> src/models/common.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 40 | pub circuit_breaker_config: CircuitBreakerConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | pub markets: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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 `asks` and `bids` are never read [INFO] [stdout] --> src/models/common.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct OrderBook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 46 | pub asks: Vec<(i64, i64)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub bids: Vec<(i64, i64)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBook` 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: trait `BookOperations` is never used [INFO] [stdout] --> src/models/common.rs:171:11 [INFO] [stdout] | [INFO] [stdout] 171 | pub trait BookOperations { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_optional_f64` is never used [INFO] [stdout] --> src/models/common.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn deserialize_optional_f64<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_f64` is never used [INFO] [stdout] --> src/models/common.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn deserialize_string_to_f64<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_as_string_tuples` is never used [INFO] [stdout] --> src/models/common.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn deserialize_as_string_tuples<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_as_mix_tuples` is never used [INFO] [stdout] --> src/models/common.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn deserialize_as_mix_tuples<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_as_bignumber_string_tuples` is never used [INFO] [stdout] --> src/models/common.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn deserialize_as_bignumber_string_tuples<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_to_f64_via_decimal` is never used [INFO] [stdout] --> src/models/common.rs:268:8 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn deserialize_to_f64_via_decimal<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_to_precision` is never used [INFO] [stdout] --> src/models/common.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn round_to_precision(value: f64, precision: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConversionError` is never used [INFO] [stdout] --> src/models/common.rs:286:6 [INFO] [stdout] | [INFO] [stdout] 286 | enum ConversionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_bignumber_to_f64` is never used [INFO] [stdout] --> src/models/common.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn convert_bignumber_to_f64(bignumber: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/env.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EnvVars { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub bluefin_on_boarding_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub bluefin_websocket_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub bluefin_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub bluefin_wallet_key: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub bluefin_leverage: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub kucoin_on_boarding_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub kucoin_websocket_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub kucoin_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub kucoin_api_key: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub kucoin_api_secret: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub kucoin_api_phrase: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub kucoin_leverage: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub kucoin_depth_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub kucoin_ticker_v2_socket_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub binance_websocket_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub dry_run: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | pub market_making_trigger_bps: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub market_making_time_throttle_period: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let m = generate_and_process_random_order(&mut order_book, &mut price_time_map).expect("could not match"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bU` should have a snake case name [INFO] [stdout] --> src/models/common.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | pub bU: i64, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `b_u` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_book_orders_ordered_by_price_timestamp` is never used [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_book_orders_ordered_by_price_timestamp<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_rand_orders` is never used [INFO] [stdout] --> src/main.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn generate_rand_orders(size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_order` is never used [INFO] [stdout] --> src/main.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | fn update_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sockets/binance_ob_socket.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl BinanceOrderBookStream { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stream_ob_socket` is never used [INFO] [stdout] --> src/sockets/common.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait OrderBookStream [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 19 | fn stream_ob_socket( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stream_depth_update_socket` is never used [INFO] [stdout] --> src/sockets/common.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub trait DepthUpdateStream [INFO] [stdout] | ----------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn stream_depth_update_socket( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sockets/binance_depth_update_socket.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl BinanceDepthUpdateStream { [INFO] [stdout] | ----------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `binance`, `kucoin`, and `bluefin` are never read [INFO] [stdout] --> src/models/common.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Symbol { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 13 | pub binance: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub kucoin: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub bluefin: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` 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: multiple fields are never read [INFO] [stdout] --> src/models/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub mm_lot_upper_bound: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub lot_size:u128, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | pub min_size:String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | pub price_precision: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub skewing_coefficient:f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub symbols: Symbol, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` 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 `num_retries` and `failure_threshold` are never read [INFO] [stdout] --> src/models/common.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct CircuitBreakerConfig { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 33 | pub num_retries: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 34 | pub failure_threshold: u8 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CircuitBreakerConfig` 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 `circuit_breaker_config` and `markets` are never read [INFO] [stdout] --> src/models/common.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 40 | pub circuit_breaker_config: CircuitBreakerConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | pub markets: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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 `asks` and `bids` are never read [INFO] [stdout] --> src/models/common.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct OrderBook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 46 | pub asks: Vec<(i64, i64)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub bids: Vec<(i64, i64)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderBook` 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: trait `BookOperations` is never used [INFO] [stdout] --> src/models/common.rs:171:11 [INFO] [stdout] | [INFO] [stdout] 171 | pub trait BookOperations { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_optional_f64` is never used [INFO] [stdout] --> src/models/common.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn deserialize_optional_f64<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_f64` is never used [INFO] [stdout] --> src/models/common.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn deserialize_string_to_f64<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_as_string_tuples` is never used [INFO] [stdout] --> src/models/common.rs:201:8 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn deserialize_as_string_tuples<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_as_mix_tuples` is never used [INFO] [stdout] --> src/models/common.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn deserialize_as_mix_tuples<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_as_bignumber_string_tuples` is never used [INFO] [stdout] --> src/models/common.rs:253:8 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn deserialize_as_bignumber_string_tuples<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_to_f64_via_decimal` is never used [INFO] [stdout] --> src/models/common.rs:268:8 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn deserialize_to_f64_via_decimal<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_to_precision` is never used [INFO] [stdout] --> src/models/common.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn round_to_precision(value: f64, precision: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConversionError` is never used [INFO] [stdout] --> src/models/common.rs:286:6 [INFO] [stdout] | [INFO] [stdout] 286 | enum ConversionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_bignumber_to_f64` is never used [INFO] [stdout] --> src/models/common.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn convert_bignumber_to_f64(bignumber: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/env.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EnvVars { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub bluefin_on_boarding_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub bluefin_websocket_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub bluefin_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub bluefin_wallet_key: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub bluefin_leverage: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub kucoin_on_boarding_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub kucoin_websocket_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub kucoin_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub kucoin_api_key: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub kucoin_api_secret: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub kucoin_api_phrase: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub kucoin_leverage: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub kucoin_depth_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub kucoin_ticker_v2_socket_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub binance_websocket_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub dry_run: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | pub market_making_trigger_bps: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub market_making_time_throttle_period: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `bU` should have a snake case name [INFO] [stdout] --> src/models/common.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | pub bU: i64, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `b_u` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "e36d11156fe6059e2802fc2fdc5b4a0e6474ab2e4d95f7c059d9e0be3a34d122", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e36d11156fe6059e2802fc2fdc5b4a0e6474ab2e4d95f7c059d9e0be3a34d122", kill_on_drop: false }` [INFO] [stdout] e36d11156fe6059e2802fc2fdc5b4a0e6474ab2e4d95f7c059d9e0be3a34d122