[INFO] fetching crate crypto_trading 0.2.2... [INFO] checking crypto_trading-0.2.2 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate crypto_trading 0.2.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate crypto_trading 0.2.2 [INFO] finished tweaking crates.io crate crypto_trading 0.2.2 [INFO] tweaked toml for crates.io crate crypto_trading 0.2.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate crypto_trading 0.2.2 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate crypto_trading 0.2.2 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ce9fa2affd9d61a9435878fb789f775d0ea7a2df48bc44fc034ea921131e419 [INFO] running `Command { std: "docker" "start" "-a" "1ce9fa2affd9d61a9435878fb789f775d0ea7a2df48bc44fc034ea921131e419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ce9fa2affd9d61a9435878fb789f775d0ea7a2df48bc44fc034ea921131e419", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ce9fa2affd9d61a9435878fb789f775d0ea7a2df48bc44fc034ea921131e419", kill_on_drop: false }` [INFO] [stdout] 1ce9fa2affd9d61a9435878fb789f775d0ea7a2df48bc44fc034ea921131e419 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62186ea893a4f03c6846759da092e5e2cc45da8a5a2a160682e0638dcb0e4f4c [INFO] running `Command { std: "docker" "start" "-a" "62186ea893a4f03c6846759da092e5e2cc45da8a5a2a160682e0638dcb0e4f4c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tokio v1.44.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking h2 v0.4.8 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.11 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.15 [INFO] [stderr] Checking crypto_trading v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Endpoint` and `Tickers` [INFO] [stdout] --> src/adapter/common.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{model::binance_model::{BinanceRequest, BinanceSymbol, Endpoint, Kline, Klines, Ticker, Tickers}, port::binance_port::CommonPo... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/adapter/adapter_utils.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::{Client, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `default`, and `write` [INFO] [stdout] --> src/model/binance_model.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{default, fmt::{write, Display}, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/model/binance_model.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Context, Ok}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `future` should have an upper camel case name [INFO] [stdout] --> src/model/binance_model.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | future, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `spot` should have an upper camel case name [INFO] [stdout] --> src/model/binance_model.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | spot, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Spot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/port/binance_port.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Ok` [INFO] [stdout] --> src/algorithm/algorithm.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::Ok; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kline` [INFO] [stdout] --> src/algorithm/algorithm.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{model::binance_model::{Kline, Klines}, utils}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Endpoint` and `Tickers` [INFO] [stdout] --> src/adapter/common.rs:3:67 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{model::binance_model::{BinanceRequest, BinanceSymbol, Endpoint, Kline, Klines, Ticker, Tickers}, port::binance_port::CommonPo... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/adapter/adapter_utils.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::{Client, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `default`, and `write` [INFO] [stdout] --> src/model/binance_model.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{default, fmt::{write, Display}, time::{SystemTime, UNIX_EPOCH}}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/model/binance_model.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Context, Ok}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `future` should have an upper camel case name [INFO] [stdout] --> src/model/binance_model.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | future, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Future` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `spot` should have an upper camel case name [INFO] [stdout] --> src/model/binance_model.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | spot, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Spot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/port/binance_port.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Ok` [INFO] [stdout] --> src/algorithm/algorithm.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::Ok; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kline` [INFO] [stdout] --> src/algorithm/algorithm.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{model::binance_model::{Kline, Klines}, utils}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/model/binance_model.rs:202:38 [INFO] [stdout] | [INFO] [stdout] 202 | CommonEndpoint::Klines { symbol, interval, limit } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `symbol: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/model/binance_model.rs:202:46 [INFO] [stdout] | [INFO] [stdout] 202 | CommonEndpoint::Klines { symbol, interval, limit } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `interval: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limit_or_default` [INFO] [stdout] --> src/model/binance_model.rs:203:37 [INFO] [stdout] | [INFO] [stdout] 203 | ... let limit_or_default = limit.unwrap_or(500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_limit_or_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut query = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/model/binance_model.rs:238:45 [INFO] [stdout] | [INFO] [stdout] 238 | CommonEndpoint::ExchnageInfo => query!(), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut query = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/model/binance_model.rs:239:39 [INFO] [stdout] | [INFO] [stdout] 239 | CommonEndpoint::Ticker => query!(), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut query = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/model/binance_model.rs:265:17 [INFO] [stdout] | [INFO] [stdout] 265 | query!() [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/model/binance_model.rs:381:39 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `symbol: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/model/binance_model.rs:381:47 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `side: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type` [INFO] [stdout] --> src/model/binance_model.rs:381:53 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_in_force` [INFO] [stdout] --> src/model/binance_model.rs:381:61 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `time_in_force: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/model/binance_model.rs:381:76 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `quantity: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/model/binance_model.rs:381:86 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_price` [INFO] [stdout] --> src/model/binance_model.rs:381:93 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback_rate` [INFO] [stdout] --> src/model/binance_model.rs:381:105 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `callback_rate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/algorithm/algorithm.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | let open_time = utils::timestamp_to_local(self.open_time as i64).map_err(|e| std::fmt::Error)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/algorithm/algorithm.rs:60:85 [INFO] [stdout] | [INFO] [stdout] 60 | let close_time = utils::timestamp_to_local(self.close_time as i64).map_err(|e| std::fmt::Error)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Balance` is never constructed [INFO] [stdout] --> src/model/binance_model.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Balance { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/model/binance_model.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 402 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model/binance_model.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 413 | impl Order { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 414 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tickers` is never read [INFO] [stdout] --> src/model/binance_model.rs:451:5 [INFO] [stdout] | [INFO] [stdout] 450 | pub struct Tickers { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 451 | tickers: Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tickers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/adapter/adapter_utils.rs:56:40 [INFO] [stdout] | [INFO] [stdout] 56 | .header("X-MBX-APIKEY", api_key.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | async fn get_account_balance(&self) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 6 - async fn get_account_balance(&self) -> anyhow::Result; [INFO] [stdout] 6 + fn get_account_balance(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | async fn get_trade_fee(&self) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 7 - async fn get_trade_fee(&self) -> anyhow::Result; [INFO] [stdout] 7 + fn get_trade_fee(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | async fn query_order(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 8 - async fn query_order(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] 8 + fn query_order(&self, symbol: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | async fn all_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 9 - async fn all_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] 9 + fn all_orders(&self, symbol: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | async fn get_kline(&self, symbol: String, interval: &str, limit: Option) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 14 - async fn get_kline(&self, symbol: String, interval: &str, limit: Option) -> anyhow::Result; [INFO] [stdout] 14 + fn get_kline(&self, symbol: String, interval: &str, limit: Option) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | async fn get_symbol_list(&self) -> anyhow::Result>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 15 - async fn get_symbol_list(&self) -> anyhow::Result>; [INFO] [stdout] 15 + fn get_symbol_list(&self) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | async fn get_symbol_with_volume(&self) -> anyhow::Result>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 16 - async fn get_symbol_with_volume(&self) -> anyhow::Result>; [INFO] [stdout] 16 + fn get_symbol_with_volume(&self) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | async fn order_position(&self) -> anyhow::Result<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 22 - async fn order_position(&self) -> anyhow::Result<()>; [INFO] [stdout] 22 + fn order_position(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | async fn change_leverage(&self, symbol: &str, leverage: i32) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 23 - async fn change_leverage(&self, symbol: &str, leverage: i32) -> anyhow::Result; [INFO] [stdout] 23 + fn change_leverage(&self, symbol: &str, leverage: i32) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | async fn all_open_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 24 - async fn all_open_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] 24 + fn all_open_orders(&self, symbol: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | async fn new_order( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 25 ~ fn new_order( [INFO] [stdout] 26 | &self, [INFO] [stdout] ... [INFO] [stdout] 34 | callback_rate: Option, [INFO] [stdout] 35 ~ ) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/model/binance_model.rs:202:38 [INFO] [stdout] | [INFO] [stdout] 202 | CommonEndpoint::Klines { symbol, interval, limit } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `symbol: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/model/binance_model.rs:202:46 [INFO] [stdout] | [INFO] [stdout] 202 | CommonEndpoint::Klines { symbol, interval, limit } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `interval: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `limit_or_default` [INFO] [stdout] --> src/model/binance_model.rs:203:37 [INFO] [stdout] | [INFO] [stdout] 203 | ... let limit_or_default = limit.unwrap_or(500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_limit_or_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut query = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/model/binance_model.rs:238:45 [INFO] [stdout] | [INFO] [stdout] 238 | CommonEndpoint::ExchnageInfo => query!(), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut query = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/model/binance_model.rs:239:39 [INFO] [stdout] | [INFO] [stdout] 239 | CommonEndpoint::Ticker => query!(), [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/macros.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut query = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/model/binance_model.rs:265:17 [INFO] [stdout] | [INFO] [stdout] 265 | query!() [INFO] [stdout] | -------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/model/binance_model.rs:381:39 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `symbol: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/model/binance_model.rs:381:47 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `side: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type` [INFO] [stdout] --> src/model/binance_model.rs:381:53 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_in_force` [INFO] [stdout] --> src/model/binance_model.rs:381:61 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `time_in_force: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/model/binance_model.rs:381:76 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `quantity: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/model/binance_model.rs:381:86 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_price` [INFO] [stdout] --> src/model/binance_model.rs:381:93 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `stop_price: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback_rate` [INFO] [stdout] --> src/model/binance_model.rs:381:105 [INFO] [stdout] | [INFO] [stdout] 381 | TradeEndpoint::NewOrder { symbol, side, r#type, time_in_force, quantity, price, stop_price, callback_rate } => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `callback_rate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/algorithm/algorithm.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | let open_time = utils::timestamp_to_local(self.open_time as i64).map_err(|e| std::fmt::Error)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/algorithm/algorithm.rs:60:85 [INFO] [stdout] | [INFO] [stdout] 60 | let close_time = utils::timestamp_to_local(self.close_time as i64).map_err(|e| std::fmt::Error)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Balance` is never constructed [INFO] [stdout] --> src/model/binance_model.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Balance { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/model/binance_model.rs:402:8 [INFO] [stdout] | [INFO] [stdout] 402 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model/binance_model.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 413 | impl Order { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 414 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tickers` is never read [INFO] [stdout] --> src/model/binance_model.rs:451:5 [INFO] [stdout] | [INFO] [stdout] 450 | pub struct Tickers { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 451 | tickers: Vec [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tickers` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/adapter/adapter_utils.rs:56:40 [INFO] [stdout] | [INFO] [stdout] 56 | .header("X-MBX-APIKEY", api_key.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | async fn get_account_balance(&self) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 6 - async fn get_account_balance(&self) -> anyhow::Result; [INFO] [stdout] 6 + fn get_account_balance(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | async fn get_trade_fee(&self) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 7 - async fn get_trade_fee(&self) -> anyhow::Result; [INFO] [stdout] 7 + fn get_trade_fee(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | async fn query_order(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 8 - async fn query_order(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] 8 + fn query_order(&self, symbol: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | async fn all_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 9 - async fn all_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] 9 + fn all_orders(&self, symbol: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | async fn get_kline(&self, symbol: String, interval: &str, limit: Option) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 14 - async fn get_kline(&self, symbol: String, interval: &str, limit: Option) -> anyhow::Result; [INFO] [stdout] 14 + fn get_kline(&self, symbol: String, interval: &str, limit: Option) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | async fn get_symbol_list(&self) -> anyhow::Result>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 15 - async fn get_symbol_list(&self) -> anyhow::Result>; [INFO] [stdout] 15 + fn get_symbol_list(&self) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | async fn get_symbol_with_volume(&self) -> anyhow::Result>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 16 - async fn get_symbol_with_volume(&self) -> anyhow::Result>; [INFO] [stdout] 16 + fn get_symbol_with_volume(&self) -> impl std::future::Future>> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | async fn order_position(&self) -> anyhow::Result<()>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 22 - async fn order_position(&self) -> anyhow::Result<()>; [INFO] [stdout] 22 + fn order_position(&self) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | async fn change_leverage(&self, symbol: &str, leverage: i32) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 23 - async fn change_leverage(&self, symbol: &str, leverage: i32) -> anyhow::Result; [INFO] [stdout] 23 + fn change_leverage(&self, symbol: &str, leverage: i32) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | async fn all_open_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 24 - async fn all_open_orders(&self, symbol: &str) -> anyhow::Result; [INFO] [stdout] 24 + fn all_open_orders(&self, symbol: &str) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> src/port/binance_port.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | async fn new_order( [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 25 ~ fn new_order( [INFO] [stdout] 26 | &self, [INFO] [stdout] ... [INFO] [stdout] 34 | callback_rate: Option, [INFO] [stdout] 35 ~ ) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "62186ea893a4f03c6846759da092e5e2cc45da8a5a2a160682e0638dcb0e4f4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62186ea893a4f03c6846759da092e5e2cc45da8a5a2a160682e0638dcb0e4f4c", kill_on_drop: false }` [INFO] [stdout] 62186ea893a4f03c6846759da092e5e2cc45da8a5a2a160682e0638dcb0e4f4c