[INFO] cloning repository https://github.com/ZYJ-q/bybit_traders [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZYJ-q/bybit_traders" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZYJ-q%2Fbybit_traders", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZYJ-q%2Fbybit_traders'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7bf07301cc5d7843378386edc713ffd835f9246a [INFO] testing ZYJ-q/bybit_traders against 1.77.0 for beta-1.78-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZYJ-q%2Fbybit_traders" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZYJ-q/bybit_traders on toolchain 1.77.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.77.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZYJ-q/bybit_traders [INFO] finished tweaking git repo https://github.com/ZYJ-q/bybit_traders [INFO] tweaked toml for git repo https://github.com/ZYJ-q/bybit_traders written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ZYJ-q/bybit_traders already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.77.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mysql_common v0.24.1 [INFO] [stderr] Downloaded rkyv_derive v0.7.41 [INFO] [stderr] Downloaded log4rs v0.10.0 [INFO] [stderr] Downloaded io-enum v0.2.6 [INFO] [stderr] Downloaded rkyv v0.7.41 [INFO] [stderr] Downloaded mysql v20.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdc3509a7c1a7ef66d7d2c655954b30b0519ea882393cfa0a5c509bb53648dfe [INFO] running `Command { std: "docker" "start" "-a" "bdc3509a7c1a7ef66d7d2c655954b30b0519ea882393cfa0a5c509bb53648dfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdc3509a7c1a7ef66d7d2c655954b30b0519ea882393cfa0a5c509bb53648dfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdc3509a7c1a7ef66d7d2c655954b30b0519ea882393cfa0a5c509bb53648dfe", kill_on_drop: false }` [INFO] [stdout] bdc3509a7c1a7ef66d7d2c655954b30b0519ea882393cfa0a5c509bb53648dfe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0239070b0eca7aeb4e6ffae9c25358077d2e54d19c5c62a056c326b5f34a6a9a [INFO] running `Command { std: "docker" "start" "-a" "0239070b0eca7aeb4e6ffae9c25358077d2e54d19c5c62a056c326b5f34a6a9a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling proc-macro2 v1.0.52 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_derive v1.0.156 [INFO] [stderr] Compiling serde v1.0.156 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-core v0.3.27 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling syn v2.0.12 [INFO] [stderr] Compiling openssl-sys v0.9.81 [INFO] [stderr] Compiling libz-sys v1.1.8 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling net2 v0.2.38 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling futures-task v0.3.27 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.46 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling futures-util v0.3.27 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling serde_json v1.0.94 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling futures-sink v0.3.27 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling futures-channel v0.3.27 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling aho-corasick v1.0.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling rust_decimal v1.29.1 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling regex-syntax v0.7.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling unicode-bidi v0.3.11 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [INFO] [stderr] Compiling regex v1.8.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling io-enum v0.2.6 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling lexical v5.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling mysql v20.1.0 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling lru v0.6.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling nix v0.19.1 [INFO] [stderr] Compiling thread-id v3.3.0 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling arc-swap v0.4.8 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling ssh2 v0.9.4 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde-value v0.6.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling tracing-subscriber v0.3.17 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling mysql_common v0.24.1 [INFO] [stderr] Compiling log4rs v0.10.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling bybit_trader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/binance/futures/http/actions.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_time` [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let now_time = Utc::now().timestamp_millis(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, NaiveDateTime, Utc, Local}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_api` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | mut ssh_api: SshClient, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_api` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wx_robot` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | wx_robot: WxbotHttpClient, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wx_robot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ori_fund` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ori_fund: f64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ori_fund` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `running` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut running = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/main.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut response: Map = Map::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json_data` [INFO] [stdout] --> src/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut json_data: Map = Map::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let date = format!("{}", now.format("%Y/%m/%d %H:%M:%S")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/main.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mut ssh_api: SshClient, [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut running = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut response: Map = Map::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut json_data: Map = Map::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_future_config` [INFO] [stdout] --> src/main.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let binance_future_config = binance_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_future_config` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | #[warn(unused_mut, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bybit_futures_config` [INFO] [stdout] --> src/main.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let bybit_futures_config = bybit_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bybit_futures_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 33s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "0239070b0eca7aeb4e6ffae9c25358077d2e54d19c5c62a056c326b5f34a6a9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0239070b0eca7aeb4e6ffae9c25358077d2e54d19c5c62a056c326b5f34a6a9a", kill_on_drop: false }` [INFO] [stdout] 0239070b0eca7aeb4e6ffae9c25358077d2e54d19c5c62a056c326b5f34a6a9a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3ec4f283f4da658588d29e4f526def63036994315a778b1e8719e5395f3bd18 [INFO] running `Command { std: "docker" "start" "-a" "f3ec4f283f4da658588d29e4f526def63036994315a778b1e8719e5395f3bd18", kill_on_drop: false }` [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/binance/futures/http/actions.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_time` [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let now_time = Utc::now().timestamp_millis(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bybit_trader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, NaiveDateTime, Utc, Local}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_api` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | mut ssh_api: SshClient, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_api` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wx_robot` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | wx_robot: WxbotHttpClient, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wx_robot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ori_fund` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ori_fund: f64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ori_fund` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `running` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut running = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/main.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut response: Map = Map::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json_data` [INFO] [stdout] --> src/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut json_data: Map = Map::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let date = format!("{}", now.format("%Y/%m/%d %H:%M:%S")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/main.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mut ssh_api: SshClient, [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut running = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut response: Map = Map::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut json_data: Map = Map::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_future_config` [INFO] [stdout] --> src/main.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let binance_future_config = binance_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_future_config` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | #[warn(unused_mut, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bybit_futures_config` [INFO] [stdout] --> src/main.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let bybit_futures_config = bybit_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bybit_futures_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/binance/futures/http/actions.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_time` [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let now_time = Utc::now().timestamp_millis(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.92s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "f3ec4f283f4da658588d29e4f526def63036994315a778b1e8719e5395f3bd18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3ec4f283f4da658588d29e4f526def63036994315a778b1e8719e5395f3bd18", kill_on_drop: false }` [INFO] [stdout] f3ec4f283f4da658588d29e4f526def63036994315a778b1e8719e5395f3bd18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b2514481d5d6d6c6841365219415ce8e0de19556734fb928351e3303534dc34a [INFO] running `Command { std: "docker" "start" "-a" "b2514481d5d6d6c6841365219415ce8e0de19556734fb928351e3303534dc34a", kill_on_drop: false }` [INFO] [stderr] warning: value assigned to `end_times` is never read [INFO] [stderr] --> src/adapters/binance/futures/http/actions.rs:126:17 [INFO] [stderr] | [INFO] [stderr] 126 | let mut end_times = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `now_time` [INFO] [stderr] --> src/adapters/bybit/futures/http/actions.rs:56:13 [INFO] [stderr] | [INFO] [stderr] 56 | let now_time = Utc::now().timestamp_millis(); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_time` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `end_times` is never read [INFO] [stderr] --> src/adapters/bybit/futures/http/actions.rs:63:17 [INFO] [stderr] | [INFO] [stderr] 63 | let mut end_times = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: `bybit_trader` (lib) generated 3 warnings (run `cargo fix --lib -p bybit_trader` to apply 1 suggestion) [INFO] [stderr] warning: `bybit_trader` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] warning: unused imports: `DateTime`, `NaiveDateTime` [INFO] [stderr] --> src/main.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use chrono::{DateTime, NaiveDateTime, Utc, Local}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `debug` [INFO] [stderr] --> src/main.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | use log::{debug, info, warn}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ssh_api` [INFO] [stderr] --> src/main.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | mut ssh_api: SshClient, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_api` [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/main.rs:14:20 [INFO] [stderr] | [INFO] [stderr] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `wx_robot` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | wx_robot: WxbotHttpClient, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wx_robot` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ori_fund` [INFO] [stderr] --> src/main.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | ori_fund: f64, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ori_fund` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `running` [INFO] [stderr] --> src/main.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | let mut running = false; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_running` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `response` [INFO] [stderr] --> src/main.rs:50:17 [INFO] [stderr] | [INFO] [stderr] 50 | let mut response: Map = Map::new(); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `json_data` [INFO] [stderr] --> src/main.rs:51:17 [INFO] [stderr] | [INFO] [stderr] 51 | let mut json_data: Map = Map::new(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `date` [INFO] [stderr] --> src/main.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | let date = format!("{}", now.format("%Y/%m/%d %H:%M:%S")); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `end_times` is never read [INFO] [stderr] --> src/main.rs:224:17 [INFO] [stderr] | [INFO] [stderr] 224 | let mut end_times = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | mut ssh_api: SshClient, [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/main.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | let mut running = false; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:50:13 [INFO] [stderr] | [INFO] [stderr] 50 | let mut response: Map = Map::new(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | let mut json_data: Map = Map::new(); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `binance_future_config` [INFO] [stderr] --> src/main.rs:310:13 [INFO] [stderr] | [INFO] [stderr] 310 | let binance_future_config = binance_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_future_config` [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/main.rs:277:20 [INFO] [stderr] | [INFO] [stderr] 277 | #[warn(unused_mut, unused_variables)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bybit_futures_config` [INFO] [stderr] --> src/main.rs:311:13 [INFO] [stderr] | [INFO] [stderr] 311 | let bybit_futures_config = bybit_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bybit_futures_config` [INFO] [stderr] [INFO] [stderr] warning: `bybit_trader` (bin "bybit_trader" test) generated 16 warnings (run `cargo fix --bin "bybit_trader" --tests` to apply 15 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bybit_trader-f5218c7f9bef0e87) [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/bybit_trader-2a313c8538d953c6) [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] [stderr] Doc-tests bybit_trader [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] [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" "b2514481d5d6d6c6841365219415ce8e0de19556734fb928351e3303534dc34a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2514481d5d6d6c6841365219415ce8e0de19556734fb928351e3303534dc34a", kill_on_drop: false }` [INFO] [stdout] b2514481d5d6d6c6841365219415ce8e0de19556734fb928351e3303534dc34a [INFO] testing ZYJ-q/bybit_traders against beta-2024-03-24 for beta-1.78-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZYJ-q%2Fbybit_traders" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZYJ-q/bybit_traders on toolchain beta-2024-03-24 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-03-24" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZYJ-q/bybit_traders [INFO] finished tweaking git repo https://github.com/ZYJ-q/bybit_traders [INFO] tweaked toml for git repo https://github.com/ZYJ-q/bybit_traders written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ZYJ-q/bybit_traders already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-03-24" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-03-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9669aa108edd3d81f5876eec72f35d105a3fa22a5b7553ff855e561a72214922 [INFO] running `Command { std: "docker" "start" "-a" "9669aa108edd3d81f5876eec72f35d105a3fa22a5b7553ff855e561a72214922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9669aa108edd3d81f5876eec72f35d105a3fa22a5b7553ff855e561a72214922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9669aa108edd3d81f5876eec72f35d105a3fa22a5b7553ff855e561a72214922", kill_on_drop: false }` [INFO] [stdout] 9669aa108edd3d81f5876eec72f35d105a3fa22a5b7553ff855e561a72214922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-03-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c56640afc524458f71bb4cb1c12c6938754cc98d07d0e5acbea47ee4d567b35d [INFO] running `Command { std: "docker" "start" "-a" "c56640afc524458f71bb4cb1c12c6938754cc98d07d0e5acbea47ee4d567b35d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling proc-macro2 v1.0.52 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde_derive v1.0.156 [INFO] [stderr] Compiling serde v1.0.156 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling futures-core v0.3.27 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling syn v2.0.12 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling openssl-sys v0.9.81 [INFO] [stderr] Compiling libz-sys v1.1.8 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling net2 v0.2.38 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling futures-task v0.3.27 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling openssl v0.10.46 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling serde_json v1.0.94 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-util v0.3.27 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling futures-sink v0.3.27 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling futures-channel v0.3.27 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling aho-corasick v1.0.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling rust_decimal v1.29.1 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling unicode-bidi v0.3.11 [INFO] [stderr] Compiling regex-syntax v0.7.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling regex v1.8.1 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.24 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling io-enum v0.2.6 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling lexical v5.2.2 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling derive_utils v0.11.2 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling mysql v20.1.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling lru v0.6.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling thread-id v3.3.0 [INFO] [stderr] Compiling nix v0.19.1 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling arc-swap v0.4.8 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling bufstream v0.1.4 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling serde-value v0.6.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling mysql_common v0.24.1 [INFO] [stderr] Compiling log4rs v0.10.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.17 [INFO] [stderr] Compiling ssh2 v0.9.4 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling bybit_trader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `hex` is imported redundantly [INFO] [stdout] --> src/adapters/binance/futures/http/client.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use hex; [INFO] [stdout] | ^^^ the item `hex` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `hex` is imported redundantly [INFO] [stdout] --> src/adapters/bybit/futures/http/client.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex; [INFO] [stdout] | ^^^ the item `hex` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/binance/futures/http/actions.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `now_time` [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let now_time = Utc::now().timestamp_millis(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_now_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/adapters/bybit/futures/http/actions.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{DateTime, NaiveDateTime, Utc, Local}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_api` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | mut ssh_api: SshClient, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_api` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wx_robot` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | wx_robot: WxbotHttpClient, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wx_robot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ori_fund` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ori_fund: f64, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ori_fund` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `running` [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut running = false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/main.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut response: Map = Map::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json_data` [INFO] [stdout] --> src/main.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut json_data: Map = Map::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `date` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let date = format!("{}", now.format("%Y/%m/%d %H:%M:%S")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_times` is never read [INFO] [stdout] --> src/main.rs:224:17 [INFO] [stdout] | [INFO] [stdout] 224 | let mut end_times = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mut ssh_api: SshClient, [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | #[warn(unused_mut, unused_variables, dead_code)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut running = false; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut response: Map = Map::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut json_data: Map = Map::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binance_future_config` [INFO] [stdout] --> src/main.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let binance_future_config = binance_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binance_future_config` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:277:20 [INFO] [stdout] | [INFO] [stdout] 277 | #[warn(unused_mut, unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bybit_futures_config` [INFO] [stdout] --> src/main.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let bybit_futures_config = bybit_config.get("futures").unwrap().as_array().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bybit_futures_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:303:28 [INFO] [stdout] | [INFO] [stdout] 303 | let real_time_handle = tokio::spawn(async move { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 304 | | // let mut futures_config: Map = Map::new(); [INFO] [stdout] 305 | | [INFO] [stdout] 306 | | // let mut servers_config = Map::new(); [INFO] [stdout] ... | [INFO] [stdout] 388 | | real_time(symbols, ssh_api, wx_robot, 500.0).await; [INFO] [stdout] 389 | | }); [INFO] [stdout] | |______^ `core::fmt::rt::Opaque` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `core::fmt::rt::Opaque`, which is required by `{async block@src/main.rs:303:41: 389:6}: Send` [INFO] [stdout] = note: required for `&core::fmt::rt::Opaque` to implement `Send` [INFO] [stdout] note: required because it appears within the type `core::fmt::rt::Argument<'_>` [INFO] [stdout] --> /rustc/277d06bc95c6c38a2337ccde798b2c709384bd84/library/core/src/fmt/rt.rs:75:12 [INFO] [stdout] = note: required because it captures the following types: `http::method::Method`, `&str`, `bool`, `&mut HashMap`, `Option`, `impl std::future::Future>`, `reqwest::async_impl::response::Response`, `impl std::future::Future>`, `&[&str]`, `core::fmt::rt::Argument<'_>`, `http::status::StatusCode`, `impl std::future::Future>` [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/adapters/bybit/futures/http/client.rs:112:25 [INFO] [stdout] | [INFO] [stdout] 112 | ) -> Option { [INFO] [stdout] | _________________________^ [INFO] [stdout] 113 | | // let data: HashMap = HashMap::new(); [INFO] [stdout] 114 | | if let Some(response) = self.package_request(&method, url, need_sign, params).await { [INFO] [stdout] 115 | | if response.status() == StatusCode::OK { [INFO] [stdout] ... | [INFO] [stdout] 140 | | } [INFO] [stdout] 141 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required because it captures the following types: `&ByBitFuturesApi`, `&i64`, `HashMap`, `i64`, `DateTime`, `DateTime`, `std::string::String`, `std::string::String`, `impl std::future::Future>` [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> /opt/rustwide/workdir/src/adapters/bybit/futures/http/actions.rs:50:100 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn get_order_history(&self, category:&str, end:&i64, time_id:&i64) -> Option { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 51 | | // let my_currency = String::from(currency.unwrap_or("USDT")); [INFO] [stdout] 52 | | [INFO] [stdout] 53 | | let mut params: HashMap = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 100 | | } [INFO] [stdout] 101 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] = note: required because it captures the following types: `SshClient`, `WxbotHttpClient`, `i64`, `i64`, `HashMap`, `serde_json::Map`, `serde_json::Map`, `serde_json::Map`, `DateTime`, `std::string::String`, `std::vec::IntoIter`, `Option`, `Positions`, `ByBitFuturesApi`, `u64`, `VecDeque`, `impl std::future::Future>`, `bool`, `VecDeque`, `impl std::future::Future>`, `i64`, `i64`, `Delay` [INFO] [stdout] note: required because it's used within this `async` fn body [INFO] [stdout] --> src/main.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | ) { [INFO] [stdout] | ___^ [INFO] [stdout] 22 | | //rece: &mut Receiver<&str>){ [INFO] [stdout] 23 | | info!("get ready for real time loop"); [INFO] [stdout] 24 | | let mut running = false; [INFO] [stdout] ... | [INFO] [stdout] 274 | | } [INFO] [stdout] 275 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: required because it captures the following types: `std::string::String`, `impl std::future::Future` [INFO] [stdout] note: required because it's used within this `async` block [INFO] [stdout] --> src/main.rs:303:41 [INFO] [stdout] | [INFO] [stdout] 303 | let real_time_handle = tokio::spawn(async move { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 304 | | // let mut futures_config: Map = Map::new(); [INFO] [stdout] 305 | | [INFO] [stdout] 306 | | // let mut servers_config = Map::new(); [INFO] [stdout] ... | [INFO] [stdout] 388 | | real_time(symbols, ssh_api, wx_robot, 500.0).await; [INFO] [stdout] 389 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-0.2.25/src/task/spawn.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn spawn(task: T) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 126 | where [INFO] [stdout] 127 | T: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bybit_trader` (bin "bybit_trader") due to 2 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c56640afc524458f71bb4cb1c12c6938754cc98d07d0e5acbea47ee4d567b35d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c56640afc524458f71bb4cb1c12c6938754cc98d07d0e5acbea47ee4d567b35d", kill_on_drop: false }` [INFO] [stdout] c56640afc524458f71bb4cb1c12c6938754cc98d07d0e5acbea47ee4d567b35d