[INFO] cloning repository https://github.com/CiaranWelsh/binance-algo-trading-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CiaranWelsh/binance-algo-trading-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCiaranWelsh%2Fbinance-algo-trading-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCiaranWelsh%2Fbinance-algo-trading-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 606bf2c79a0d794b86eab16d4a0629a02cb59859 [INFO] checking CiaranWelsh/binance-algo-trading-rs/606bf2c79a0d794b86eab16d4a0629a02cb59859 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCiaranWelsh%2Fbinance-algo-trading-rs" "/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/CiaranWelsh/binance-algo-trading-rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CiaranWelsh/binance-algo-trading-rs [INFO] finished tweaking git repo https://github.com/CiaranWelsh/binance-algo-trading-rs [INFO] tweaked toml for git repo https://github.com/CiaranWelsh/binance-algo-trading-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CiaranWelsh/binance-algo-trading-rs 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded block-buffer v0.11.0-pre.5 [INFO] [stderr] Downloaded hybrid-array v0.2.0-rc.7 [INFO] [stderr] Downloaded sha2 v0.11.0-pre.3 [INFO] [stderr] Downloaded hmac v0.13.0-pre.3 [INFO] [stderr] Downloaded value-bag v1.8.0 [INFO] [stderr] Downloaded toml_edit v0.22.7 [INFO] [stderr] Downloaded toml v0.8.11 [INFO] [stderr] Downloaded uuid-macro-internal v1.7.0 [INFO] [stderr] Downloaded tokio-websockets v0.7.0 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16491aa3656d2249dec9438408da7397532aee6ccf9d0d06024cd3fa55c1a121 [INFO] running `Command { std: "docker" "start" "-a" "16491aa3656d2249dec9438408da7397532aee6ccf9d0d06024cd3fa55c1a121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16491aa3656d2249dec9438408da7397532aee6ccf9d0d06024cd3fa55c1a121", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16491aa3656d2249dec9438408da7397532aee6ccf9d0d06024cd3fa55c1a121", kill_on_drop: false }` [INFO] [stdout] 16491aa3656d2249dec9438408da7397532aee6ccf9d0d06024cd3fa55c1a121 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 789c689fa9ef47a42c8f9cfe278dbdc37036ece3c12b0552d419813552bd906a [INFO] running `Command { std: "docker" "start" "-a" "789c689fa9ef47a42c8f9cfe278dbdc37036ece3c12b0552d419813552bd906a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking value-bag v1.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking parking v2.2.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking futures-lite v2.2.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking concurrent-queue v2.4.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking async-task v4.7.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking event-listener v4.0.3 [INFO] [stderr] Checking event-listener v5.2.0 [INFO] [stderr] Checking finl_unicode v1.2.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking event-listener-strategy v0.5.0 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Checking event-listener-strategy v0.4.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking async-lock v3.3.0 [INFO] [stderr] Checking hybrid-array v0.2.0-rc.7 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking piper v0.2.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking async-channel v2.2.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking stringprep v0.1.4 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking crypto-common v0.2.0-pre.5 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking const-oid v0.10.0-pre.2 [INFO] [stderr] Checking waker-fn v1.1.1 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking blocking v1.5.1 [INFO] [stderr] Checking async-executor v1.8.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling rust_decimal v1.34.3 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking whoami v1.5.1 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking predicates v3.1.0 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking block-buffer v0.11.0-pre.5 [INFO] [stderr] Checking postgres-protocol v0.6.6 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Checking digest v0.11.0-pre.8 [INFO] [stderr] Checking hmac v0.13.0-pre.3 [INFO] [stderr] Checking sha2 v0.11.0-pre.3 [INFO] [stderr] Checking postgres-types v0.2.6 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Checking polling v3.5.0 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking async-io v2.3.2 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling uuid-macro-internal v1.7.0 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking async-std v1.12.0 [INFO] [stderr] Checking uuid v1.7.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling serde_with_macros v3.7.0 [INFO] [stderr] Checking mockall v0.12.1 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking async-tungstenite v0.25.0 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_qs v0.12.0 [INFO] [stderr] Checking serde_with v3.7.0 [INFO] [stderr] Checking toml_edit v0.22.7 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Checking tokio-postgres v0.7.10 [INFO] [stderr] Checking tokio-websockets v0.7.0 [INFO] [stderr] Checking toml v0.8.11 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.26 [INFO] [stderr] Checking binance_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/binance_client/spot_orders.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/binance_client/spot_orders.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use reqwest::{Client, Response, StatusCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/spot_orders.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/binance_client/spot_orders.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/binance_client.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/binance_client/binance_client.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_tungstenite::tungstenite::http::Uri` [INFO] [stdout] --> src/binance_client/binance_client.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use async_tungstenite::tungstenite::http::Uri; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_tungstenite::tungstenite::WebSocket` [INFO] [stdout] --> src/binance_client/binance_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use async_tungstenite::tungstenite::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `info`, and `trace` [INFO] [stdout] --> src/binance_client/binance_client.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{error, info, trace}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::FutureExt` [INFO] [stdout] --> src/binance_client/binance_client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::FutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/binance_client/binance_client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/binance_client/binance_client.rs:17:44 [INFO] [stdout] | [INFO] [stdout] 17 | use std::io::{Error as IOError, ErrorKind, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::deserialization::deserialize_string_to_f64` [INFO] [stdout] --> src/binance_client/binance_client.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::binance_client::deserialization::deserialize_string_to_f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::position_size::round` [INFO] [stdout] --> src/binance_client/binance_client.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::binance_client::position_size::round; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::streams::binance_stream::BinanceStreamTypes` [INFO] [stdout] --> src/binance_client/binance_client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::binance_client::streams::binance_stream::BinanceStreamTypes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::streams::kline_data::KlineMessage` [INFO] [stdout] --> src/binance_client/binance_client.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::binance_client::streams::kline_data::KlineMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> src/binance_client/order_types/time_in_force.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> src/binance_client/order_types/side.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::error::Error as SerdeJsonError` [INFO] [stdout] --> src/binance_client/account/account_info.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::error::Error as SerdeJsonError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::deserialization::*` [INFO] [stdout] --> src/binance_client/account/order.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::binance_client::deserialization::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::account::order_status::OrderStatus` [INFO] [stdout] --> src/binance_client/account/trades.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::binance_client::account::order_status::OrderStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> src/binance_client/account/trades.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::side::Side` [INFO] [stdout] --> src/binance_client/account/trades.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::binance_client::order_types::side::Side; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::time_in_force::TimeInForce` [INFO] [stdout] --> src/binance_client/account/trades.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::binance_client::order_types::time_in_force::TimeInForce; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::future::err` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use futures_util::future::err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::{Error, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kline` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:14:50 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::binance_client::streams::kline_data::{Kline, KlineMessage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/binance_client/database_client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/binance_client/database_client.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::trace` [INFO] [stdout] --> src/binance_client/database_client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::trace; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kline` [INFO] [stdout] --> src/binance_client/database_client.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::binance_client::streams::kline_data::{Kline, KlineMessage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/binance_client/load_env.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash` [INFO] [stdout] --> src/binance_client/load_env.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{env, hash}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/binance_client/deserialization.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize_string_to_i64` [INFO] [stdout] --> src/binance_client/exchange_info.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | deserialize_string_to_i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/binance_client/margin_client.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, StatusCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/margin_client.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::trace` [INFO] [stdout] --> src/binance_client/margin_client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::trace; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::market_order::MarketOrder` [INFO] [stdout] --> src/binance_client/margin_client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::binance_client::order_types::market_order::MarketOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::oco_order::OcoOrder` [INFO] [stdout] --> src/binance_client/margin_client.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::binance_client::order_types::oco_order::OcoOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::stop_limit_order::StopLimitOrder` [INFO] [stdout] --> src/binance_client/margin_client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::binance_client::order_types::stop_limit_order::StopLimitOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/binance_client/order_response.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_with::{serde_as, DisplayFromStr, Map}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/binance_client/spot_orders.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/binance_client/spot_orders.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use reqwest::{Client, Response, StatusCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/spot_orders.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/binance_client/spot_orders.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/binance_client.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/binance_client/binance_client.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_tungstenite::tungstenite::http::Uri` [INFO] [stdout] --> src/binance_client/binance_client.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use async_tungstenite::tungstenite::http::Uri; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_tungstenite::tungstenite::WebSocket` [INFO] [stdout] --> src/binance_client/binance_client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use async_tungstenite::tungstenite::WebSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/binance_client/binance_client.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{error, info, trace}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::FutureExt` [INFO] [stdout] --> src/binance_client/binance_client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use futures::FutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/binance_client/binance_client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/binance_client/binance_client.rs:17:44 [INFO] [stdout] | [INFO] [stdout] 17 | use std::io::{Error as IOError, ErrorKind, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::deserialization::deserialize_string_to_f64` [INFO] [stdout] --> src/binance_client/binance_client.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::binance_client::deserialization::deserialize_string_to_f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::position_size::round` [INFO] [stdout] --> src/binance_client/binance_client.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::binance_client::position_size::round; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::streams::binance_stream::BinanceStreamTypes` [INFO] [stdout] --> src/binance_client/binance_client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::binance_client::streams::binance_stream::BinanceStreamTypes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::streams::kline_data::KlineMessage` [INFO] [stdout] --> src/binance_client/binance_client.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::binance_client::streams::kline_data::KlineMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/binance_client/binance_client.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/binance_client/binance_client.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `dotenv` and `vars` [INFO] [stdout] --> src/binance_client/binance_client.rs:362:18 [INFO] [stdout] | [INFO] [stdout] 362 | use dotenv::{dotenv, vars}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::Error::EnvVar` [INFO] [stdout] --> src/binance_client/binance_client.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | use dotenv::Error::EnvVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Env` and `init` [INFO] [stdout] --> src/binance_client/binance_client.rs:364:22 [INFO] [stdout] | [INFO] [stdout] 364 | use env_logger::{Env, init}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_postgres::types::Format::Binary` [INFO] [stdout] --> src/binance_client/binance_client.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | use tokio_postgres::types::Format::Binary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::quirks::username` [INFO] [stdout] --> src/binance_client/binance_client.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | use url::quirks::username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> src/binance_client/order_types/time_in_force.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> src/binance_client/order_types/side.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::error::Error as SerdeJsonError` [INFO] [stdout] --> src/binance_client/account/account_info.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::error::Error as SerdeJsonError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/binance_client/account/account_info.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::deserialization::*` [INFO] [stdout] --> src/binance_client/account/order.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::binance_client::deserialization::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::account::order_status::OrderStatus` [INFO] [stdout] --> src/binance_client/account/trades.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::binance_client::account::order_status::OrderStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> src/binance_client/account/trades.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::side::Side` [INFO] [stdout] --> src/binance_client/account/trades.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::binance_client::order_types::side::Side; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::time_in_force::TimeInForce` [INFO] [stdout] --> src/binance_client/account/trades.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::binance_client::order_types::time_in_force::TimeInForce; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/binance_client/streams/binance_stream.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/binance_client/streams/binance_stream.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Error` [INFO] [stdout] --> src/binance_client/streams/kline_data.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | use serde_json::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::future::err` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use futures_util::future::err; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::{Error, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kline` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:14:50 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::binance_client::streams::kline_data::{Kline, KlineMessage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hint::black_box` [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | use std::hint::black_box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/binance_client/database_client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/binance_client/database_client.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::trace` [INFO] [stdout] --> src/binance_client/database_client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::trace; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kline` [INFO] [stdout] --> src/binance_client/database_client.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::binance_client::streams::kline_data::{Kline, KlineMessage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Month::December` [INFO] [stdout] --> src/binance_client/database_client.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | use chrono::Month::December; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_decimal::Decimal` [INFO] [stdout] --> src/binance_client/database_client.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | use rust_decimal::Decimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/database_client.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_postgres::NoTls` [INFO] [stdout] --> src/binance_client/database_client.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | use tokio_postgres::NoTls; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/binance_client/load_env.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash` [INFO] [stdout] --> src/binance_client/load_env.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{env, hash}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/binance_client/deserialization.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize_string_to_i64` [INFO] [stdout] --> src/binance_client/exchange_info.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | deserialize_string_to_i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/binance_client/margin_client.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::{Client, StatusCode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/binance_client/margin_client.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::trace` [INFO] [stdout] --> src/binance_client/margin_client.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::trace; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::market_order::MarketOrder` [INFO] [stdout] --> src/binance_client/margin_client.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::binance_client::order_types::market_order::MarketOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::oco_order::OcoOrder` [INFO] [stdout] --> src/binance_client/margin_client.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::binance_client::order_types::oco_order::OcoOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binance_client::order_types::stop_limit_order::StopLimitOrder` [INFO] [stdout] --> src/binance_client/margin_client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::binance_client::order_types::stop_limit_order::StopLimitOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/binance_client/order_response.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_with::{serde_as, DisplayFromStr, Map}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response2` [INFO] [stdout] --> src/binance_client/binance_client.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let response2 = reqwest::get(&url).await.map_err(|e| Box::new(e) as Box)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response2` [INFO] [stdout] --> src/binance_client/binance_client.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let response2 = reqwest::get(&url).await.map_err(|e| Box::new(e) as Box)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance_client/binance_client.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | let mut ticker_price = self.client [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: `write` [INFO] [stdout] --> src/binance_client/binance_client.rs:335:14 [INFO] [stdout] | [INFO] [stdout] 335 | let (write, mut read) = ws_stream.split(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance_client/binance_client.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | let mut ticker_price = self.client [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: `write` [INFO] [stdout] --> src/binance_client/binance_client.rs:335:14 [INFO] [stdout] | [INFO] [stdout] 335 | let (write, mut read) = ws_stream.split(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance_client/database_client.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut handle = self.connection_handle.lock(); [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/binance_client/database_client.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut handle = self.connection_handle.lock(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::SinkExt` [INFO] [stdout] --> src/binance_client/binance_client.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use futures_util::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures_util::SinkExt` [INFO] [stdout] --> src/binance_client/binance_client.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use futures_util::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/binance_client/binance_client.rs:410:16 [INFO] [stdout] | [INFO] [stdout] 410 | Ok(d) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance_client/binance_client.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | let mut api = BinanceClient::new( [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/binance_client/binance_client.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let mut api = BinanceClient::new( [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/binance_client/binance_client.rs:439:13 [INFO] [stdout] | [INFO] [stdout] 439 | let mut api = BinanceClient::new( [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/binance_client/binance_client.rs:459:13 [INFO] [stdout] | [INFO] [stdout] 459 | let mut api = BinanceClient::new( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_info` [INFO] [stdout] --> src/binance_client/binance_client.rs:519:16 [INFO] [stdout] | [INFO] [stdout] 519 | Ok(account_info) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orders` [INFO] [stdout] --> src/binance_client/binance_client.rs:555:16 [INFO] [stdout] | [INFO] [stdout] 555 | Ok(orders) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_orders` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance_client/account/account_info.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut api = BinanceClient::new( [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/binance_client/account/asset_balance.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut api = BinanceClient::new( [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/binance_client/account/asset_balance.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut binance_client = BinanceClient::new( [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_live` [INFO] [stdout] --> src/binance_client/streams/binance_stream.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let is_live = false; // false indicates using testnet. [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_live` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binance_client/streams/binance_stream.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut binance_client = BinanceClient::new( [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/binance_client/streams/binance_websocket.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let mut binance_client = BinanceClient::new( [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/binance_client/streams/binance_websocket.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut binance_client = BinanceClient::new( [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol`, `orig_client_order_id`, `order_id`, `order_list_id`, and `client_order_id` are never read [INFO] [stdout] --> src/binance_client/order_types/cancel_order_response.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CancelOrderResponse { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 6 | // Define fields according to Binance API response for a canceled order [INFO] [stdout] 7 | symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | orig_client_order_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | order_id: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | order_list_id: i64, // Unless dealing with OCO, this will be -1 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | client_order_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelOrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_database_if_not_exists` is never used [INFO] [stdout] --> src/binance_client/account/postgresql.rs:95:10 [INFO] [stdout] | [INFO] [stdout] 95 | async fn create_database_if_not_exists() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_tables` is never used [INFO] [stdout] --> src/binance_client/account/postgresql.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | async fn initialize_tables() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_stream_path` is never used [INFO] [stdout] --> src/binance_client/streams/binance_stream.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl BinanceStreamTypes { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 13 | pub(crate) fn to_stream_path(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinanceWebSocket` is never constructed [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct BinanceWebSocket<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceWebSocket` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `connect_and_listen` are never used [INFO] [stdout] --> src/binance_client/streams/binance_websocket.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> BinanceWebSocket<'a> { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(binance_client: &'a BinanceClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn connect_and_listen(&self, streams: Vec) -> Result<(), IOError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_u64` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn deserialize_string_to_u64<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_i64` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn deserialize_string_to_i64<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_decimal` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn deserialize_string_to_decimal<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_optional_string_to_u64` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn deserialize_optional_string_to_u64<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_optional_string_to_bool` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn deserialize_optional_string_to_bool<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `orderId` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | orderId: i64, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `origQty` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | origQty: String, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `orig_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `executedQty` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | executedQty: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `executed_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `timeInForce` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | timeInForce: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `time_in_force` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/bin/quick_trade.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::Error::EnvVar` [INFO] [stdout] --> src/bin/quick_trade.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenv::Error::EnvVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Error::Syntax` [INFO] [stdout] --> src/bin/quick_trade.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Error::Syntax; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client` [INFO] [stdout] --> src/bin/quick_trade.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use reqwest::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/bin/quick_trade.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::Error::EnvVar` [INFO] [stdout] --> src/bin/quick_trade.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenv::Error::EnvVar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Error::Syntax` [INFO] [stdout] --> src/bin/quick_trade.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use regex::Error::Syntax; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client` [INFO] [stdout] --> src/bin/quick_trade.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use reqwest::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/bin/quick_trade.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(response) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> tests/check_orders.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env` and `thread` [INFO] [stdout] --> tests/check_orders.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{env, thread}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> tests/check_orders.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::channel::unbounded` [INFO] [stdout] --> tests/check_orders.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use async_std::channel::unbounded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Pad::Space` [INFO] [stdout] --> tests/check_orders.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::format::Pad::Space; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> tests/check_orders.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `binance_api::binance_client::account::order::Order` [INFO] [stdout] --> tests/check_orders.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use binance_api::binance_client::account::order::Order; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `binance_api::binance_client::account::order_status::OrderStatus` [INFO] [stdout] --> tests/check_orders.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | use binance_api::binance_client::account::order_status::OrderStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `binance_api::binance_client::order_types::oco_order::OcoOrder` [INFO] [stdout] --> tests/check_orders.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | use binance_api::binance_client::order_types::oco_order::OcoOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `binance_api::binance_client::order_types::order_type::OrderType` [INFO] [stdout] --> tests/check_orders.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | use binance_api::binance_client::order_types::order_type::OrderType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/bin/quick_trade.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | Ok(response) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol`, `orig_client_order_id`, `order_id`, `order_list_id`, and `client_order_id` are never read [INFO] [stdout] --> src/binance_client/order_types/cancel_order_response.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CancelOrderResponse { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 6 | // Define fields according to Binance API response for a canceled order [INFO] [stdout] 7 | symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | orig_client_order_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | order_id: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | order_list_id: i64, // Unless dealing with OCO, this will be -1 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | client_order_id: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CancelOrderResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_database_if_not_exists` is never used [INFO] [stdout] --> src/binance_client/account/postgresql.rs:95:10 [INFO] [stdout] | [INFO] [stdout] 95 | async fn create_database_if_not_exists() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_tables` is never used [INFO] [stdout] --> src/binance_client/account/postgresql.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | async fn initialize_tables() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_u64` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn deserialize_string_to_u64<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_i64` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn deserialize_string_to_i64<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_string_to_decimal` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn deserialize_string_to_decimal<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_optional_string_to_u64` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn deserialize_optional_string_to_u64<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_optional_string_to_bool` is never used [INFO] [stdout] --> src/binance_client/deserialization.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn deserialize_optional_string_to_bool<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `orderId` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | orderId: i64, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> tests/check_orders.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let result = spot_client.create_market_order(buy_market_order).await; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `origQty` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | origQty: String, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `orig_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `executedQty` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | executedQty: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `executed_qty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `timeInForce` should have a snake case name [INFO] [stdout] --> src/binance_client/order_types/open_order.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | timeInForce: String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `time_in_force` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> tests/check_orders.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | let result = spot_client.create_market_order(sell_market_order).await; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 90 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "789c689fa9ef47a42c8f9cfe278dbdc37036ece3c12b0552d419813552bd906a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "789c689fa9ef47a42c8f9cfe278dbdc37036ece3c12b0552d419813552bd906a", kill_on_drop: false }` [INFO] [stdout] 789c689fa9ef47a42c8f9cfe278dbdc37036ece3c12b0552d419813552bd906a