[INFO] fetching crate okx 0.1.8... [INFO] building okx-0.1.8 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] extracting crate okx 0.1.8 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate okx 0.1.8 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate okx 0.1.8 [INFO] tweaked toml for crates.io crate okx 0.1.8 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate okx 0.1.8 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate okx 0.1.8 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitflags v2.9.3 [INFO] [stderr] Downloaded windows-targets v0.53.3 [INFO] [stderr] Downloaded tokio-tungstenite v0.21.0 [INFO] [stderr] Downloaded pest_generator v2.8.1 [INFO] [stderr] Downloaded mockito v1.7.0 [INFO] [stderr] Downloaded anyhow v1.0.99 [INFO] [stderr] Downloaded pest_meta v2.8.1 [INFO] [stderr] Downloaded indexmap v2.11.0 [INFO] [stderr] Downloaded pest v2.8.1 [INFO] [stderr] Downloaded serde_json v1.0.143 [INFO] [stderr] Downloaded cc v1.2.34 [INFO] [stderr] Downloaded pest_derive v2.8.1 [INFO] [stderr] Downloaded portable-atomic v1.11.1 [INFO] [stderr] Downloaded regex v1.11.2 [INFO] [stderr] Downloaded tungstenite v0.21.0 [INFO] [stderr] Downloaded rustix v1.0.8 [INFO] [stderr] Downloaded regex-automata v0.4.10 [INFO] [stderr] Downloaded libc v0.2.175 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d50197a17ab0ae9ccdcc519b459dd3893500dd3436ddcaa019a6d9301c87f27 [INFO] running `Command { std: "docker" "start" "-a" "2d50197a17ab0ae9ccdcc519b459dd3893500dd3436ddcaa019a6d9301c87f27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d50197a17ab0ae9ccdcc519b459dd3893500dd3436ddcaa019a6d9301c87f27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d50197a17ab0ae9ccdcc519b459dd3893500dd3436ddcaa019a6d9301c87f27", kill_on_drop: false }` [INFO] [stdout] 2d50197a17ab0ae9ccdcc519b459dd3893500dd3436ddcaa019a6d9301c87f27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff5f903dd9c749fea89b69fb49a8f06082c8cfcd80ba829cb80ad3d483de45f2 [INFO] running `Command { std: "docker" "start" "-a" "ff5f903dd9c749fea89b69fb49a8f06082c8cfcd80ba829cb80ad3d483de45f2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling config v0.14.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling okx v0.1.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::config::Credentials` [INFO] [stdout] --> src/api/account/account_api.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::Credentials; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/api/account/account_api.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/api/account/account_api.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::client` [INFO] [stdout] --> src/api/account/account_api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_tungstenite::tungstenite::client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/api/announcements/announcements_api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/api/big_data/big_data_api.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/dto/trade/trade_dto.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/websocket/client.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/websocket/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/websocket/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MaybeTlsStream` and `WebSocketStream` [INFO] [stdout] --> src/websocket/client.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | connect_async, tungstenite::protocol::Message, MaybeTlsStream, WebSocketStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dto::common` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::dto::common; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/asset/asset_api.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut body = json!(transfer_req); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/utils.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | let time = chrono::DateTime::::from_utc( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils.rs:79:32 [INFO] [stdout] | [INFO] [stdout] 79 | chrono::NaiveDateTime::from_timestamp_opt(time / 1000, ((time % 1000) * 1_000_000) as u32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_str` [INFO] [stdout] --> src/websocket/auto_reconnect_client.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let sign_str = format!("{}GET/users/self/verify", timestamp); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | chrono::NaiveDateTime::from_timestamp_opt(seconds, nanos) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/utils.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | .map(|dt| chrono::DateTime::from_utc(dt, chrono::Utc)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json_err` [INFO] [stdout] --> src/debug_helper.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | Error::JsonError(json_err) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `smg` [INFO] [stdout] --> src/debug_helper.rs:73:49 [INFO] [stdout] | [INFO] [stdout] 73 | Error::OkxApiError { code, message, smg } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `smg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reconnect_config` [INFO] [stdout] --> src/websocket/manager.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let reconnect_config = ReconnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reconnect_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OkxApiErrorResponse` is never constructed [INFO] [stdout] --> src/client.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct OkxApiErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `business_client` are never read [INFO] [stdout] --> src/websocket/manager.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct OkxWebsocketManager { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | config: ManagerConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | business_client: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `wdId` should have a snake case name [INFO] [stdout] --> src/dto/asset/asset_dto.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub wdId: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `wd_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `depId` should have a snake case name [INFO] [stdout] --> src/dto/asset/asset_dto.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub depId: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dep_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/websocket/channel.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn as_str(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 96 | pub fn as_str(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "ff5f903dd9c749fea89b69fb49a8f06082c8cfcd80ba829cb80ad3d483de45f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff5f903dd9c749fea89b69fb49a8f06082c8cfcd80ba829cb80ad3d483de45f2", kill_on_drop: false }` [INFO] [stdout] ff5f903dd9c749fea89b69fb49a8f06082c8cfcd80ba829cb80ad3d483de45f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d878d067d2d78c17914f1478dac3820825430bb858af10487098aefec42c7ed5 [INFO] running `Command { std: "docker" "start" "-a" "d878d067d2d78c17914f1478dac3820825430bb858af10487098aefec42c7ed5", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling colored v3.0.0 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling mockito v1.7.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling okx v0.1.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::config::Credentials` [INFO] [stdout] --> src/api/account/account_api.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::Credentials; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/api/account/account_api.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/api/account/account_api.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::client` [INFO] [stdout] --> src/api/account/account_api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_tungstenite::tungstenite::client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/api/announcements/announcements_api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/api/big_data/big_data_api.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/dto/trade/trade_dto.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/websocket/client.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/websocket/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/websocket/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MaybeTlsStream` and `WebSocketStream` [INFO] [stdout] --> src/websocket/client.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | connect_async, tungstenite::protocol::Message, MaybeTlsStream, WebSocketStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dto::common` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::dto::common; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/asset/asset_api.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut body = json!(transfer_req); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/utils.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | let time = chrono::DateTime::::from_utc( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils.rs:79:32 [INFO] [stdout] | [INFO] [stdout] 79 | chrono::NaiveDateTime::from_timestamp_opt(time / 1000, ((time % 1000) * 1_000_000) as u32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_str` [INFO] [stdout] --> src/websocket/auto_reconnect_client.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let sign_str = format!("{}GET/users/self/verify", timestamp); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::Credentials` [INFO] [stdout] --> src/api/account/account_api.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::Credentials; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/api/account/account_api.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/api/account/account_api.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::client` [INFO] [stdout] --> src/api/account/account_api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio_tungstenite::tungstenite::client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/api/announcements/announcements_api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/api/big_data/big_data_api.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::value` [INFO] [stdout] --> src/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/dto/trade/trade_dto.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/websocket/client.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/websocket/client.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/websocket/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MaybeTlsStream` and `WebSocketStream` [INFO] [stdout] --> src/websocket/client.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | connect_async, tungstenite::protocol::Message, MaybeTlsStream, WebSocketStream, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dto::common` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::dto::common; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | chrono::NaiveDateTime::from_timestamp_opt(seconds, nanos) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/utils.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | .map(|dt| chrono::DateTime::from_utc(dt, chrono::Utc)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/api/asset/asset_api.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut body = json!(transfer_req); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json_err` [INFO] [stdout] --> src/debug_helper.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | Error::JsonError(json_err) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `smg` [INFO] [stdout] --> src/debug_helper.rs:73:49 [INFO] [stdout] | [INFO] [stdout] 73 | Error::OkxApiError { code, message, smg } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `smg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/utils.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | let time = chrono::DateTime::::from_utc( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils.rs:79:32 [INFO] [stdout] | [INFO] [stdout] 79 | chrono::NaiveDateTime::from_timestamp_opt(time / 1000, ((time % 1000) * 1_000_000) as u32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_str` [INFO] [stdout] --> src/websocket/auto_reconnect_client.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let sign_str = format!("{}GET/users/self/verify", timestamp); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reconnect_config` [INFO] [stdout] --> src/websocket/manager.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let reconnect_config = ReconnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reconnect_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OkxApiErrorResponse` is never constructed [INFO] [stdout] --> src/client.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct OkxApiErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `business_client` are never read [INFO] [stdout] --> src/websocket/manager.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct OkxWebsocketManager { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | config: ManagerConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | business_client: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `wdId` should have a snake case name [INFO] [stdout] --> src/dto/asset/asset_dto.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub wdId: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `wd_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `depId` should have a snake case name [INFO] [stdout] --> src/dto/asset/asset_dto.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub depId: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dep_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/websocket/channel.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn as_str(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 96 | pub fn as_str(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/utils.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | chrono::NaiveDateTime::from_timestamp_opt(seconds, nanos) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/utils.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | .map(|dt| chrono::DateTime::from_utc(dt, chrono::Utc)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `json_err` [INFO] [stdout] --> src/debug_helper.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | Error::JsonError(json_err) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_json_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `smg` [INFO] [stdout] --> src/debug_helper.rs:73:49 [INFO] [stdout] | [INFO] [stdout] 73 | Error::OkxApiError { code, message, smg } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `smg: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OkxMarket` [INFO] [stdout] --> examples/order.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use okx::{Error, OkxClient, OkxMarket, OkxTrade}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> examples/order.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `okx::api::api_trait::OkxApiTrait` [INFO] [stdout] --> examples/announcements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use okx::api::api_trait::OkxApiTrait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reconnect_config` [INFO] [stdout] --> src/websocket/manager.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let reconnect_config = ReconnectConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reconnect_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OkxApiErrorResponse` is never constructed [INFO] [stdout] --> src/client.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct OkxApiErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `config` and `business_client` are never read [INFO] [stdout] --> src/websocket/manager.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct OkxWebsocketManager { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 55 | config: ManagerConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | business_client: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `wdId` should have a snake case name [INFO] [stdout] --> src/dto/asset/asset_dto.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub wdId: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `wd_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `depId` should have a snake case name [INFO] [stdout] --> src/dto/asset/asset_dto.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub depId: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dep_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/websocket/channel.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn as_str(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 96 | pub fn as_str(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 38.99s [INFO] running `Command { std: "docker" "inspect" "d878d067d2d78c17914f1478dac3820825430bb858af10487098aefec42c7ed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d878d067d2d78c17914f1478dac3820825430bb858af10487098aefec42c7ed5", kill_on_drop: false }` [INFO] [stdout] d878d067d2d78c17914f1478dac3820825430bb858af10487098aefec42c7ed5