[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] building AlanGuo/crypo-loan-monitor against master#c52b9c10bfb5164015eb977ff498e0597ae63eb1 for pr-97025 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlanGuo%2Fcrypo-loan-monitor" "/workspace/builds/worker-78/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-78/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlanGuo/crypo-loan-monitor on toolchain c52b9c10bfb5164015eb977ff498e0597ae63eb1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c52b9c10bfb5164015eb977ff498e0597ae63eb1" "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-78/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" "+c52b9c10bfb5164015eb977ff498e0597ae63eb1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded enum-ordinalize v3.1.11 [INFO] [stderr] Downloaded semver v1.0.6 [INFO] [stderr] Downloaded directories v0.10.0 [INFO] [stderr] Downloaded confy v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c52b9c10bfb5164015eb977ff498e0597ae63eb1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aad7ec5791556a4bd3ec0001d0efcd649f9af781b9d0d4d67e557f9778b190d8 [INFO] running `Command { std: "docker" "start" "-a" "aad7ec5791556a4bd3ec0001d0efcd649f9af781b9d0d4d67e557f9778b190d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aad7ec5791556a4bd3ec0001d0efcd649f9af781b9d0d4d67e557f9778b190d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aad7ec5791556a4bd3ec0001d0efcd649f9af781b9d0d4d67e557f9778b190d8", kill_on_drop: false }` [INFO] [stdout] aad7ec5791556a4bd3ec0001d0efcd649f9af781b9d0d4d67e557f9778b190d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c52b9c10bfb5164015eb977ff498e0597ae63eb1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a56f6207b7b88594bda18eaa9f20c63ccd40c7ab10626118d4a0e076ecde48f [INFO] running `Command { std: "docker" "start" "-a" "1a56f6207b7b88594bda18eaa9f20c63ccd40c7ab10626118d4a0e076ecde48f", kill_on_drop: false }` [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] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling directories v0.10.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling enum-ordinalize v3.1.11 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling educe v0.4.19 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling futures-executor v0.3.21 [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_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling tokio-serde v0.8.0 [INFO] [stderr] Compiling confy v0.3.1 [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: 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] = note: `#[warn(dead_code)]` on by default [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] [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: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 36.46s [INFO] running `Command { std: "docker" "inspect" "1a56f6207b7b88594bda18eaa9f20c63ccd40c7ab10626118d4a0e076ecde48f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a56f6207b7b88594bda18eaa9f20c63ccd40c7ab10626118d4a0e076ecde48f", kill_on_drop: false }` [INFO] [stdout] 1a56f6207b7b88594bda18eaa9f20c63ccd40c7ab10626118d4a0e076ecde48f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-78/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c52b9c10bfb5164015eb977ff498e0597ae63eb1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61d4dcecf140c69ab494eabc09fffec6243a31fd63524741f29af45c0967f7c0 [INFO] running `Command { std: "docker" "start" "-a" "61d4dcecf140c69ab494eabc09fffec6243a31fd63524741f29af45c0967f7c0", 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: 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] = note: `#[warn(dead_code)]` on by default [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] [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: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.39s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/monitor-ff0bbaebab877973) [INFO] running `Command { std: "docker" "inspect" "61d4dcecf140c69ab494eabc09fffec6243a31fd63524741f29af45c0967f7c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61d4dcecf140c69ab494eabc09fffec6243a31fd63524741f29af45c0967f7c0", kill_on_drop: false }` [INFO] [stdout] 61d4dcecf140c69ab494eabc09fffec6243a31fd63524741f29af45c0967f7c0