[INFO] cloning repository https://github.com/AlanGuo/crypo-loan-monitor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlanGuo/crypo-loan-monitor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlanGuo%2Fcrypo-loan-monitor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlanGuo%2Fcrypo-loan-monitor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 15e4fa8b26b69d05f12e25a50950b39a13b39abc [INFO] checking AlanGuo/crypo-loan-monitor against try#42d1facfffa1a5357d6d62815f7be91f8ad69ed8 for pr-95474 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlanGuo%2Fcrypo-loan-monitor" "/workspace/builds/worker-35/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-35/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlanGuo/crypo-loan-monitor on toolchain 42d1facfffa1a5357d6d62815f7be91f8ad69ed8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AlanGuo/crypo-loan-monitor [INFO] finished tweaking git repo https://github.com/AlanGuo/crypo-loan-monitor [INFO] tweaked toml for git repo https://github.com/AlanGuo/crypo-loan-monitor written to /workspace/builds/worker-35/source/Cargo.toml [INFO] crate git repo https://github.com/AlanGuo/crypo-loan-monitor already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9eb4b1eaae46f2da82e7dd89b581c8660e4703802461128eacc07b123f177d6c [INFO] running `Command { std: "docker" "start" "-a" "9eb4b1eaae46f2da82e7dd89b581c8660e4703802461128eacc07b123f177d6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9eb4b1eaae46f2da82e7dd89b581c8660e4703802461128eacc07b123f177d6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9eb4b1eaae46f2da82e7dd89b581c8660e4703802461128eacc07b123f177d6c", kill_on_drop: false }` [INFO] [stdout] 9eb4b1eaae46f2da82e7dd89b581c8660e4703802461128eacc07b123f177d6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56590ee48ea21d126cba991a549ebd15006d1103ec97e0c8b7fe4798b656ee9a [INFO] running `Command { std: "docker" "start" "-a" "56590ee48ea21d126cba991a549ebd15006d1103ec97e0c8b7fe4798b656ee9a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ipnet v2.4.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking directories v0.10.0 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.23 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking tracing v0.1.32 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking mio v0.8.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.1 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling enum-ordinalize v3.1.11 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling educe v0.4.19 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking h2 v0.3.12 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking confy v0.3.1 [INFO] [stderr] Checking tokio-serde v0.8.0 [INFO] [stderr] Checking hyper v0.14.17 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.9 [INFO] [stderr] Checking crypto-loan-monitor v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AccountType` [INFO] [stdout] --> src/engine/exchange/huobi.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use super::types::{ LoanInfo, AccountInfo, AccountType }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/engine/exchange/okex.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DepthInfo`, `MarketInfo`, `MarketStatus`, `OrderInfo`, `OrderSide`, `OrderStatus`, `Tick` [INFO] [stdout] --> src/engine/exchange/okex.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use super::types::{ MarketInfo, MarketStatus, DepthInfo, Tick, AccountInfo, OrderInfo, OrderStatus, OrderSide, LoanInfo }; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::Exchanges` [INFO] [stdout] --> src/monitor/main.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::engine::exchange::{types::Exchanges, Exchange}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AccountType` [INFO] [stdout] --> src/engine/exchange/huobi.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use super::types::{ LoanInfo, AccountInfo, AccountType }; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/engine/exchange/okex.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DepthInfo`, `MarketInfo`, `MarketStatus`, `OrderInfo`, `OrderSide`, `OrderStatus`, `Tick` [INFO] [stdout] --> src/engine/exchange/okex.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use super::types::{ MarketInfo, MarketStatus, DepthInfo, Tick, AccountInfo, OrderInfo, OrderStatus, OrderSide, LoanInfo }; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::Exchanges` [INFO] [stdout] --> src/monitor/main.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::engine::exchange::{types::Exchanges, Exchange}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `min_f64` [INFO] [stdout] --> src/util.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn min_f64 (a: f64, b: f64) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_f64` [INFO] [stdout] --> src/util.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn max_f64 (a: f64, b: f64) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `huobi_withdraw_fee` [INFO] [stdout] --> src/util.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn huobi_withdraw_fee (asset: &String) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn account_info(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `order_info` [INFO] [stdout] --> src/engine/exchange.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | pub async fn order_info(&self, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_order` [INFO] [stdout] --> src/engine/exchange.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn create_order(&self, side: OrderSide, price: f64, volume: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel_order` [INFO] [stdout] --> src/engine/exchange.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn cancel_order(&self, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel_all_order` [INFO] [stdout] --> src/engine/exchange.rs:86:16 [INFO] [stdout] | [INFO] [stdout] 86 | pub async fn cancel_all_order(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn withdraw(&self, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TRADING` [INFO] [stdout] --> src/engine/exchange/types.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | TRADING, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MarketStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CLOSED` [INFO] [stdout] --> src/engine/exchange/types.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | CLOSED [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MarketStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `USDSFUTURE` [INFO] [stdout] --> src/engine/exchange/types.rs:101:3 [INFO] [stdout] | [INFO] [stdout] 101 | USDSFUTURE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SPOT` [INFO] [stdout] --> src/engine/exchange/types.rs:102:3 [INFO] [stdout] | [INFO] [stdout] 102 | SPOT [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `HUOBI_USDT_WITHDRAW_CHAIN` [INFO] [stdout] --> src/engine/exchange/config.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub static HUOBI_USDT_WITHDRAW_CHAIN: &str = "trc20usdt"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `OKEX_USDT_WITHDRAW_CHAIN` [INFO] [stdout] --> src/engine/exchange/config.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub static OKEX_USDT_WITHDRAW_CHAIN: &str = "USDT-TRC20"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BINANCE_USDT_WITHDRAW_CHAIN` [INFO] [stdout] --> src/engine/exchange/config.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub static BINANCE_USDT_WITHDRAW_CHAIN: &str = "trx"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange/binance.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 87 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `order_info` [INFO] [stdout] --> src/engine/exchange/binance.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | pub async fn order_info(ex: &Exchange, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_order` [INFO] [stdout] --> src/engine/exchange/binance.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | pub async fn create_order(ex: &Exchange, side: OrderSide, price: f64, volume: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cancel_order` [INFO] [stdout] --> src/engine/exchange/binance.rs:177:14 [INFO] [stdout] | [INFO] [stdout] 177 | pub async fn cancel_order(ex: &Exchange, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cancel_all_order` [INFO] [stdout] --> src/engine/exchange/binance.rs:196:14 [INFO] [stdout] | [INFO] [stdout] 196 | pub async fn cancel_all_order(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange/binance.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange/huobi.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange/huobi.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `HmacSha256` [INFO] [stdout] --> src/engine/exchange/okex.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | type HmacSha256 = Hmac; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_okex_sign` [INFO] [stdout] --> src/engine/exchange/okex.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn build_okex_sign(cfg: &OkexConfig, protocol: &str, host: &str, method: &str, path: &str, body: Vec<[&str;2]>, is_array: bool) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loan_info` [INFO] [stdout] --> src/engine/exchange/okex.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn loan_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange/okex.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange/okex.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `min_f64` [INFO] [stdout] --> src/util.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn min_f64 (a: f64, b: f64) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max_f64` [INFO] [stdout] --> src/util.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn max_f64 (a: f64, b: f64) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `huobi_withdraw_fee` [INFO] [stdout] --> src/util.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn huobi_withdraw_fee (asset: &String) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | pub async fn account_info(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `order_info` [INFO] [stdout] --> src/engine/exchange.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | pub async fn order_info(&self, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_order` [INFO] [stdout] --> src/engine/exchange.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn create_order(&self, side: OrderSide, price: f64, volume: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel_order` [INFO] [stdout] --> src/engine/exchange.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn cancel_order(&self, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel_all_order` [INFO] [stdout] --> src/engine/exchange.rs:86:16 [INFO] [stdout] | [INFO] [stdout] 86 | pub async fn cancel_all_order(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn withdraw(&self, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TRADING` [INFO] [stdout] --> src/engine/exchange/types.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | TRADING, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MarketStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `CLOSED` [INFO] [stdout] --> src/engine/exchange/types.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | CLOSED [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MarketStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `USDSFUTURE` [INFO] [stdout] --> src/engine/exchange/types.rs:101:3 [INFO] [stdout] | [INFO] [stdout] 101 | USDSFUTURE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SPOT` [INFO] [stdout] --> src/engine/exchange/types.rs:102:3 [INFO] [stdout] | [INFO] [stdout] 102 | SPOT [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AccountType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/engine/exchange/types.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `HUOBI_USDT_WITHDRAW_CHAIN` [INFO] [stdout] --> src/engine/exchange/config.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub static HUOBI_USDT_WITHDRAW_CHAIN: &str = "trc20usdt"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `OKEX_USDT_WITHDRAW_CHAIN` [INFO] [stdout] --> src/engine/exchange/config.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub static OKEX_USDT_WITHDRAW_CHAIN: &str = "USDT-TRC20"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BINANCE_USDT_WITHDRAW_CHAIN` [INFO] [stdout] --> src/engine/exchange/config.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub static BINANCE_USDT_WITHDRAW_CHAIN: &str = "trx"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange/binance.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 87 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `order_info` [INFO] [stdout] --> src/engine/exchange/binance.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | pub async fn order_info(ex: &Exchange, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_order` [INFO] [stdout] --> src/engine/exchange/binance.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | pub async fn create_order(ex: &Exchange, side: OrderSide, price: f64, volume: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cancel_order` [INFO] [stdout] --> src/engine/exchange/binance.rs:177:14 [INFO] [stdout] | [INFO] [stdout] 177 | pub async fn cancel_order(ex: &Exchange, order_id: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cancel_all_order` [INFO] [stdout] --> src/engine/exchange/binance.rs:196:14 [INFO] [stdout] | [INFO] [stdout] 196 | pub async fn cancel_all_order(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange/binance.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange/huobi.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange/huobi.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `HmacSha256` [INFO] [stdout] --> src/engine/exchange/okex.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | type HmacSha256 = Hmac; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_okex_sign` [INFO] [stdout] --> src/engine/exchange/okex.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn build_okex_sign(cfg: &OkexConfig, protocol: &str, host: &str, method: &str, path: &str, body: Vec<[&str;2]>, is_array: bool) -> ... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loan_info` [INFO] [stdout] --> src/engine/exchange/okex.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn loan_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `account_info` [INFO] [stdout] --> src/engine/exchange/okex.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `withdraw` [INFO] [stdout] --> src/engine/exchange/okex.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "56590ee48ea21d126cba991a549ebd15006d1103ec97e0c8b7fe4798b656ee9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56590ee48ea21d126cba991a549ebd15006d1103ec97e0c8b7fe4798b656ee9a", kill_on_drop: false }` [INFO] [stdout] 56590ee48ea21d126cba991a549ebd15006d1103ec97e0c8b7fe4798b656ee9a