[INFO] cloning repository https://github.com/eightfx/FTX_to_MySQL [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eightfx/FTX_to_MySQL" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f1e80fc05426522af7056b8bda13f8598d68ae9 [INFO] checking eightfx/FTX_to_MySQL against master#2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4 for pr-84385 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eightfx/FTX_to_MySQL on toolchain 2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eightfx/FTX_to_MySQL [INFO] finished tweaking git repo https://github.com/eightfx/FTX_to_MySQL [INFO] tweaked toml for git repo https://github.com/eightfx/FTX_to_MySQL written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/eightfx/FTX_to_MySQL already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_decimal_macros v1.19.0 [INFO] [stderr] Downloaded rust_decimal v1.19.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 038ce1e98405bbbbd7cc9e477c5692fa4bf4436dfd086ab279c5a778ee190050 [INFO] running `Command { std: "docker" "start" "-a" "038ce1e98405bbbbd7cc9e477c5692fa4bf4436dfd086ab279c5a778ee190050", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "038ce1e98405bbbbd7cc9e477c5692fa4bf4436dfd086ab279c5a778ee190050", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "038ce1e98405bbbbd7cc9e477c5692fa4bf4436dfd086ab279c5a778ee190050", kill_on_drop: false }` [INFO] [stdout] 038ce1e98405bbbbd7cc9e477c5692fa4bf4436dfd086ab279c5a778ee190050 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9952c2c83540136c0cf4ba719be0331b9e987da7298e657ab7cb982210e8b89f [INFO] running `Command { std: "docker" "start" "-a" "9952c2c83540136c0cf4ba719be0331b9e987da7298e657ab7cb982210e8b89f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking futures-sink v0.3.19 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling darling_core v0.13.1 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.52 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking hmac-sha256 v0.1.7 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling rust_decimal v1.19.0 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Checking tokio v1.15.0 [INFO] [stderr] Compiling rust_decimal_macros v1.19.0 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking tungstenite v0.13.0 [INFO] [stderr] Checking futures-executor v0.3.19 [INFO] [stderr] Checking futures v0.3.19 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-tungstenite v0.14.0 [INFO] [stderr] Checking h2 v0.3.10 [INFO] [stderr] Checking diesel v1.4.8 [INFO] [stderr] Checking hyper v0.14.16 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking serde_qs v0.8.5 [INFO] [stderr] Checking serde_with v1.11.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.8 [INFO] [stderr] Checking FTX_to_MySQL v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: crate `FTX_to_MySQL` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ftx_to_my_sql` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `FTX_to_MySQL` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ftx_to_my_sql` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let x = future::join_all(tasks.into_iter()).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange_name` is never read [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TableSaveDataList { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 24 | id: i32, [INFO] [stdout] 25 | exchange_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Us` is never constructed [INFO] [stdout] --> src/ftx/options.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Endpoint { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 5 | Com, [INFO] [stdout] 6 | Us, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Endpoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `rest` is never used [INFO] [stdout] --> src/ftx/options.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn rest(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `header_prefix` is never used [INFO] [stdout] --> src/ftx/options.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn header_prefix(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `us` is never used [INFO] [stdout] --> src/ftx/options.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn us() -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_env_us` is never used [INFO] [stdout] --> src/ftx/options.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn from_env_us() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `subaccount` is never used [INFO] [stdout] --> src/ftx/options.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn subaccount(mut self, subaccount: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rest` is never constructed [INFO] [stdout] --> src/ftx/rest/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Rest { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `request` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 74 | pub async fn request(&self, req: R) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_subaccounts` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | pub async fn get_subaccounts(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_subaccount` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:187:18 [INFO] [stdout] | [INFO] [stdout] 187 | pub async fn create_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `change_subaccount_name` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:195:18 [INFO] [stdout] | [INFO] [stdout] 195 | pub async fn change_subaccount_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_subaccount` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:205:18 [INFO] [stdout] | [INFO] [stdout] 205 | pub async fn delete_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_subaccount_balances` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:213:18 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn get_subaccount_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `transfer_between_subaccounts` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | pub async fn transfer_between_subaccounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_markets` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 238 | pub async fn get_markets(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_market` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:243:18 [INFO] [stdout] | [INFO] [stdout] 243 | pub async fn get_market(&self, market_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_orderbook` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 248 | pub async fn get_orderbook( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_trades` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:261:18 [INFO] [stdout] | [INFO] [stdout] 261 | pub async fn get_trades( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_historical_prices` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:278:18 [INFO] [stdout] | [INFO] [stdout] 278 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_futures` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:297:18 [INFO] [stdout] | [INFO] [stdout] 297 | pub async fn get_futures(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_future` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:302:18 [INFO] [stdout] | [INFO] [stdout] 302 | pub async fn get_future(&self, future_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_account` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:307:18 [INFO] [stdout] | [INFO] [stdout] 307 | pub async fn get_account(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `change_account_leverage` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:312:18 [INFO] [stdout] | [INFO] [stdout] 312 | pub async fn change_account_leverage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_coins` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:320:18 [INFO] [stdout] | [INFO] [stdout] 320 | pub async fn get_coins(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_positions` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:325:18 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn get_positions(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_deposit_address` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:330:18 [INFO] [stdout] | [INFO] [stdout] 330 | pub async fn get_wallet_deposit_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_balances` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:343:18 [INFO] [stdout] | [INFO] [stdout] 343 | pub async fn get_wallet_balances(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_deposits` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:348:18 [INFO] [stdout] | [INFO] [stdout] 348 | pub async fn get_wallet_deposits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_withdrawals` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:363:18 [INFO] [stdout] | [INFO] [stdout] 363 | pub async fn get_wallet_withdrawals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_open_orders` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:378:18 [INFO] [stdout] | [INFO] [stdout] 378 | pub async fn get_open_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_order_history` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:386:18 [INFO] [stdout] | [INFO] [stdout] 386 | pub async fn get_order_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `place_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:405:18 [INFO] [stdout] | [INFO] [stdout] 405 | pub async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `place_trigger_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:442:18 [INFO] [stdout] | [INFO] [stdout] 442 | pub async fn place_trigger_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `modify_order_by_client_id` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:469:18 [INFO] [stdout] | [INFO] [stdout] 469 | pub async fn modify_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `modify_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:484:18 [INFO] [stdout] | [INFO] [stdout] 484 | pub async fn modify_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:501:18 [INFO] [stdout] | [INFO] [stdout] 501 | pub async fn get_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_order_by_client_id` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:506:18 [INFO] [stdout] | [INFO] [stdout] 506 | pub async fn get_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cancel_all_orders` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:514:18 [INFO] [stdout] | [INFO] [stdout] 514 | pub async fn cancel_all_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cancel_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:531:18 [INFO] [stdout] | [INFO] [stdout] 531 | pub async fn cancel_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cancel_order_by_client_id` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:536:18 [INFO] [stdout] | [INFO] [stdout] 536 | pub async fn cancel_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/ftx/rest/error.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Api`, `PlacingLimitOrderRequiresPrice` and `NoSecretConfigured` are never constructed [INFO] [stdout] --> src/ftx/rest/error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | #[error("Api error: {0}")] [INFO] [stdout] 8 | Api(String), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | PlacingLimitOrderRequiresPrice, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | NoSecretConfigured, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/account.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new(leverage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/fills.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/futures.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn new(future_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_depth` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn with_depth(market_name: &str, depth: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn new(market_name: &str, resolution: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `all_market` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn all_market() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_market` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn new(order_id: Id) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn new(order_id: Id) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_market` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new(nickname: &str, new_nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn new(coin: &str, size: S, source: &str, destination: &str) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new(coin: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_method` is never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn with_method(coin: &str, method: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ENDPOINT` is never used [INFO] [stdout] --> src/ftx/ws/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub const ENDPOINT: &'static str = "wss://ftx.com/ws"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ENDPOINT_US` is never used [INFO] [stdout] --> src/ftx/ws/mod.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub const ENDPOINT_US: &'static str = "wss://ftx.us/ws"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unsubscribe` is never used [INFO] [stdout] --> src/ftx/ws/mod.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | pub async fn unsubscribe(&mut self, channels: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `unsubscribe_all` is never used [INFO] [stdout] --> src/ftx/ws/mod.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | pub async fn unsubscribe_all(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NotSubscribedToThisChannel` and `Disconnected` are never constructed [INFO] [stdout] --> src/ftx/ws/error.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 9 | #[error("Not subscribed to this channel {0:?}")] [INFO] [stdout] 10 | NotSubscribedToThisChannel(Channel), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `verify_checksum` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn verify_checksum(&self, checksum: Checksum) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `bid_price` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn bid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `ask_price` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn ask_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `mid_price` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn mid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `best_bid` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn best_bid(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `best_ask` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn best_ask(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `best_bid_and_ask` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn best_bid_and_ask(&self) -> Option<((Decimal, Decimal), (Decimal, Decimal))> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `quote` is never used [INFO] [stdout] --> src/ftx/ws/model.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn quote(&self, side: Side, quantity: Decimal) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `FTX_to_MySQL` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ftx_to_my_sql` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let x = future::join_all(tasks.into_iter()).await; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exchange_name` is never read [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TableSaveDataList { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 24 | id: i32, [INFO] [stdout] 25 | exchange_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Us` is never constructed [INFO] [stdout] --> src/ftx/options.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Endpoint { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 5 | Com, [INFO] [stdout] 6 | Us, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Endpoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `us` is never used [INFO] [stdout] --> src/ftx/options.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn us() -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_env_us` is never used [INFO] [stdout] --> src/ftx/options.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn from_env_us() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `subaccount` is never used [INFO] [stdout] --> src/ftx/options.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn subaccount(mut self, subaccount: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_subaccounts` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | pub async fn get_subaccounts(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create_subaccount` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:187:18 [INFO] [stdout] | [INFO] [stdout] 187 | pub async fn create_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `change_subaccount_name` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:195:18 [INFO] [stdout] | [INFO] [stdout] 195 | pub async fn change_subaccount_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_subaccount` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:205:18 [INFO] [stdout] | [INFO] [stdout] 205 | pub async fn delete_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_subaccount_balances` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:213:18 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn get_subaccount_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `transfer_between_subaccounts` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:221:18 [INFO] [stdout] | [INFO] [stdout] 221 | pub async fn transfer_between_subaccounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_markets` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:238:18 [INFO] [stdout] | [INFO] [stdout] 238 | pub async fn get_markets(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_market` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:243:18 [INFO] [stdout] | [INFO] [stdout] 243 | pub async fn get_market(&self, market_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_orderbook` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:248:18 [INFO] [stdout] | [INFO] [stdout] 248 | pub async fn get_orderbook( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_trades` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:261:18 [INFO] [stdout] | [INFO] [stdout] 261 | pub async fn get_trades( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_historical_prices` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:278:18 [INFO] [stdout] | [INFO] [stdout] 278 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_futures` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:297:18 [INFO] [stdout] | [INFO] [stdout] 297 | pub async fn get_futures(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_future` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:302:18 [INFO] [stdout] | [INFO] [stdout] 302 | pub async fn get_future(&self, future_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_account` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:307:18 [INFO] [stdout] | [INFO] [stdout] 307 | pub async fn get_account(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `change_account_leverage` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:312:18 [INFO] [stdout] | [INFO] [stdout] 312 | pub async fn change_account_leverage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_coins` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:320:18 [INFO] [stdout] | [INFO] [stdout] 320 | pub async fn get_coins(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_positions` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:325:18 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn get_positions(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_deposit_address` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:330:18 [INFO] [stdout] | [INFO] [stdout] 330 | pub async fn get_wallet_deposit_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_balances` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:343:18 [INFO] [stdout] | [INFO] [stdout] 343 | pub async fn get_wallet_balances(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_deposits` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:348:18 [INFO] [stdout] | [INFO] [stdout] 348 | pub async fn get_wallet_deposits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_wallet_withdrawals` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:363:18 [INFO] [stdout] | [INFO] [stdout] 363 | pub async fn get_wallet_withdrawals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_open_orders` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:378:18 [INFO] [stdout] | [INFO] [stdout] 378 | pub async fn get_open_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_order_history` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:386:18 [INFO] [stdout] | [INFO] [stdout] 386 | pub async fn get_order_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `place_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:405:18 [INFO] [stdout] | [INFO] [stdout] 405 | pub async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `place_trigger_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:442:18 [INFO] [stdout] | [INFO] [stdout] 442 | pub async fn place_trigger_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `modify_order_by_client_id` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:469:18 [INFO] [stdout] | [INFO] [stdout] 469 | pub async fn modify_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `modify_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:484:18 [INFO] [stdout] | [INFO] [stdout] 484 | pub async fn modify_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:501:18 [INFO] [stdout] | [INFO] [stdout] 501 | pub async fn get_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_order_by_client_id` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:506:18 [INFO] [stdout] | [INFO] [stdout] 506 | pub async fn get_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cancel_all_orders` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:514:18 [INFO] [stdout] | [INFO] [stdout] 514 | pub async fn cancel_all_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cancel_order` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:531:18 [INFO] [stdout] | [INFO] [stdout] 531 | pub async fn cancel_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `cancel_order_by_client_id` is never used [INFO] [stdout] --> src/ftx/rest/mod.rs:536:18 [INFO] [stdout] | [INFO] [stdout] 536 | pub async fn cancel_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlacingLimitOrderRequiresPrice` is never constructed [INFO] [stdout] --> src/ftx/rest/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | PlacingLimitOrderRequiresPrice, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/account.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new(leverage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn new(market_name: &str, resolution: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_market` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new(coin: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_method` is never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn with_method(coin: &str, method: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ENDPOINT` is never used [INFO] [stdout] --> src/ftx/ws/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub const ENDPOINT: &'static str = "wss://ftx.com/ws"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ENDPOINT_US` is never used [INFO] [stdout] --> src/ftx/ws/mod.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | pub const ENDPOINT_US: &'static str = "wss://ftx.us/ws"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Disconnected` is never constructed [INFO] [stdout] --> src/ftx/ws/error.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `FTX_to_MySQL` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ftx_to_my_sql` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "9952c2c83540136c0cf4ba719be0331b9e987da7298e657ab7cb982210e8b89f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9952c2c83540136c0cf4ba719be0331b9e987da7298e657ab7cb982210e8b89f", kill_on_drop: false }` [INFO] [stdout] 9952c2c83540136c0cf4ba719be0331b9e987da7298e657ab7cb982210e8b89f