[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] testing AlanGuo/crypo-loan-monitor against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlanGuo%2Fcrypo-loan-monitor" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlanGuo/crypo-loan-monitor on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-0/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" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df5806508346921d35fb1df9acf8ff6e326e17b7b3eac86f1b94800df3997ecb [INFO] running `Command { std: "docker" "start" "-a" "df5806508346921d35fb1df9acf8ff6e326e17b7b3eac86f1b94800df3997ecb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df5806508346921d35fb1df9acf8ff6e326e17b7b3eac86f1b94800df3997ecb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df5806508346921d35fb1df9acf8ff6e326e17b7b3eac86f1b94800df3997ecb", kill_on_drop: false }` [INFO] [stdout] df5806508346921d35fb1df9acf8ff6e326e17b7b3eac86f1b94800df3997ecb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a598307aafef748c21095f717c128f8d5000155d3893581b05cda0db1642e644 [INFO] running `Command { std: "docker" "start" "-a" "a598307aafef748c21095f717c128f8d5000155d3893581b05cda0db1642e644", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling directories v0.10.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling enum-ordinalize v3.1.11 [INFO] [stderr] Compiling educe v0.4.19 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.12 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling confy v0.3.1 [INFO] [stderr] Compiling tokio-serde v0.8.0 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling 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: 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.42s [INFO] running `Command { std: "docker" "inspect" "a598307aafef748c21095f717c128f8d5000155d3893581b05cda0db1642e644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a598307aafef748c21095f717c128f8d5000155d3893581b05cda0db1642e644", kill_on_drop: false }` [INFO] [stdout] a598307aafef748c21095f717c128f8d5000155d3893581b05cda0db1642e644 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0fc65d74281b027d159e26219cace4113bd21af977756c3d66d51e18bf573097 [INFO] running `Command { std: "docker" "start" "-a" "0fc65d74281b027d159e26219cace4113bd21af977756c3d66d51e18bf573097", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.94s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/monitor-4bc2a9ca3628539c) [INFO] running `Command { std: "docker" "inspect" "0fc65d74281b027d159e26219cace4113bd21af977756c3d66d51e18bf573097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fc65d74281b027d159e26219cace4113bd21af977756c3d66d51e18bf573097", kill_on_drop: false }` [INFO] [stdout] 0fc65d74281b027d159e26219cace4113bd21af977756c3d66d51e18bf573097 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 60e8f176c0622dc5aa6beaf3fd3181ac49e52676306eacbbc5e548ab6e3c9d7a [INFO] running `Command { std: "docker" "start" "-a" "60e8f176c0622dc5aa6beaf3fd3181ac49e52676306eacbbc5e548ab6e3c9d7a", 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] warning: unused import: `AccountType` [INFO] [stderr] --> src/engine/exchange/huobi.rs:2:44 [INFO] [stderr] | [INFO] [stderr] 2 | use super::types::{ LoanInfo, AccountInfo, AccountType }; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `collections::HashMap` [INFO] [stderr] --> src/engine/exchange/okex.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DepthInfo`, `MarketInfo`, `MarketStatus`, `OrderInfo`, `OrderSide`, `OrderStatus`, `Tick` [INFO] [stderr] --> src/engine/exchange/okex.rs:3:21 [INFO] [stderr] | [INFO] [stderr] 3 | use super::types::{ MarketInfo, MarketStatus, DepthInfo, Tick, AccountInfo, OrderInfo, OrderStatus, OrderSide, LoanInfo }; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `types::Exchanges` [INFO] [stderr] --> src/monitor/main.rs:2:31 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::engine::exchange::{types::Exchanges, Exchange}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `min_f64` [INFO] [stderr] --> src/util.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn min_f64 (a: f64, b: f64) -> f64 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `max_f64` [INFO] [stderr] --> src/util.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn max_f64 (a: f64, b: f64) -> f64 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `huobi_withdraw_fee` [INFO] [stderr] --> src/util.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn huobi_withdraw_fee (asset: &String) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `account_info` [INFO] [stderr] --> src/engine/exchange.rs:32:16 [INFO] [stderr] | [INFO] [stderr] 32 | pub async fn account_info(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `order_info` [INFO] [stderr] --> src/engine/exchange.rs:46:16 [INFO] [stderr] | [INFO] [stderr] 46 | pub async fn order_info(&self, order_id: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_order` [INFO] [stderr] --> src/engine/exchange.rs:60:16 [INFO] [stderr] | [INFO] [stderr] 60 | pub async fn create_order(&self, side: OrderSide, price: f64, volume: f64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cancel_order` [INFO] [stderr] --> src/engine/exchange.rs:73:16 [INFO] [stderr] | [INFO] [stderr] 73 | pub async fn cancel_order(&self, order_id: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cancel_all_order` [INFO] [stderr] --> src/engine/exchange.rs:86:16 [INFO] [stderr] | [INFO] [stderr] 86 | pub async fn cancel_all_order(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `withdraw` [INFO] [stderr] --> src/engine/exchange.rs:113:16 [INFO] [stderr] | [INFO] [stderr] 113 | pub async fn withdraw(&self, asset: String, address: String, amount: f64) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `TRADING` [INFO] [stderr] --> src/engine/exchange/types.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | TRADING, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MarketStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/engine/exchange/types.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `CLOSED` [INFO] [stderr] --> src/engine/exchange/types.rs:7:3 [INFO] [stderr] | [INFO] [stderr] 7 | CLOSED [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MarketStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/engine/exchange/types.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `USDSFUTURE` [INFO] [stderr] --> src/engine/exchange/types.rs:101:3 [INFO] [stderr] | [INFO] [stderr] 101 | USDSFUTURE, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `AccountType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/engine/exchange/types.rs:99:10 [INFO] [stderr] | [INFO] [stderr] 99 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `SPOT` [INFO] [stderr] --> src/engine/exchange/types.rs:102:3 [INFO] [stderr] | [INFO] [stderr] 102 | SPOT [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `AccountType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/engine/exchange/types.rs:99:10 [INFO] [stderr] | [INFO] [stderr] 99 | #[derive(Debug, PartialEq, Eq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: static is never used: `HUOBI_USDT_WITHDRAW_CHAIN` [INFO] [stderr] --> src/engine/exchange/config.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | pub static HUOBI_USDT_WITHDRAW_CHAIN: &str = "trc20usdt"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `OKEX_USDT_WITHDRAW_CHAIN` [INFO] [stderr] --> src/engine/exchange/config.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | pub static OKEX_USDT_WITHDRAW_CHAIN: &str = "USDT-TRC20"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `BINANCE_USDT_WITHDRAW_CHAIN` [INFO] [stderr] --> src/engine/exchange/config.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | pub static BINANCE_USDT_WITHDRAW_CHAIN: &str = "trx"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `account_info` [INFO] [stderr] --> src/engine/exchange/binance.rs:87:14 [INFO] [stderr] | [INFO] [stderr] 87 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `order_info` [INFO] [stderr] --> src/engine/exchange/binance.rs:112:14 [INFO] [stderr] | [INFO] [stderr] 112 | pub async fn order_info(ex: &Exchange, order_id: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_order` [INFO] [stderr] --> src/engine/exchange/binance.rs:151:14 [INFO] [stderr] | [INFO] [stderr] 151 | pub async fn create_order(ex: &Exchange, side: OrderSide, price: f64, volume: f64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `cancel_order` [INFO] [stderr] --> src/engine/exchange/binance.rs:177:14 [INFO] [stderr] | [INFO] [stderr] 177 | pub async fn cancel_order(ex: &Exchange, order_id: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `cancel_all_order` [INFO] [stderr] --> src/engine/exchange/binance.rs:196:14 [INFO] [stderr] | [INFO] [stderr] 196 | pub async fn cancel_all_order(ex: &Exchange) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `withdraw` [INFO] [stderr] --> src/engine/exchange/binance.rs:260:14 [INFO] [stderr] | [INFO] [stderr] 260 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `account_info` [INFO] [stderr] --> src/engine/exchange/huobi.rs:50:14 [INFO] [stderr] | [INFO] [stderr] 50 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `withdraw` [INFO] [stderr] --> src/engine/exchange/huobi.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `HmacSha256` [INFO] [stderr] --> src/engine/exchange/okex.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | type HmacSha256 = Hmac; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `build_okex_sign` [INFO] [stderr] --> src/engine/exchange/okex.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | async fn build_okex_sign(cfg: &OkexConfig, protocol: &str, host: &str, method: &str, path: &str, body: Vec<[&str;2]>, is_array: bool) -> ... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `loan_info` [INFO] [stderr] --> src/engine/exchange/okex.rs:66:14 [INFO] [stderr] | [INFO] [stderr] 66 | pub async fn loan_info(ex: &Exchange) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `account_info` [INFO] [stderr] --> src/engine/exchange/okex.rs:98:14 [INFO] [stderr] | [INFO] [stderr] 98 | pub async fn account_info(ex: &Exchange) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `withdraw` [INFO] [stderr] --> src/engine/exchange/okex.rs:142:14 [INFO] [stderr] | [INFO] [stderr] 142 | pub async fn withdraw(ex: &Exchange, asset: String, address: String, amount: f64) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `crypto-loan-monitor` (bin "monitor" test) generated 33 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/monitor-4bc2a9ca3628539c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "60e8f176c0622dc5aa6beaf3fd3181ac49e52676306eacbbc5e548ab6e3c9d7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60e8f176c0622dc5aa6beaf3fd3181ac49e52676306eacbbc5e548ab6e3c9d7a", kill_on_drop: false }` [INFO] [stdout] 60e8f176c0622dc5aa6beaf3fd3181ac49e52676306eacbbc5e548ab6e3c9d7a