[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#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feightfx%2FFTX_to_MySQL" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [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-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/eightfx/FTX_to_MySQL on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/eightfx/FTX_to_MySQL 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tinyvec v1.5.1 [INFO] [stderr] Downloaded pkg-config v0.3.24 [INFO] [stderr] Downloaded cc v1.0.72 [INFO] [stderr] Downloaded quote v1.0.14 [INFO] [stderr] Downloaded tokio-tungstenite v0.14.0 [INFO] [stderr] Downloaded openssl-sys v0.9.72 [INFO] [stderr] Downloaded serde_qs v0.8.5 [INFO] [stderr] Downloaded percent-encoding v1.0.1 [INFO] [stderr] Downloaded rust_decimal_macros v1.19.0 [INFO] [stderr] Downloaded futures-sink v0.3.19 [INFO] [stderr] Downloaded futures-core v0.3.19 [INFO] [stderr] Downloaded diesel_derives v1.4.1 [INFO] [stderr] Downloaded mysqlclient-sys v0.2.4 [INFO] [stderr] Downloaded serde_derive v1.0.133 [INFO] [stderr] Downloaded futures v0.3.19 [INFO] [stderr] Downloaded anyhow v1.0.52 [INFO] [stderr] Downloaded serde_json v1.0.74 [INFO] [stderr] Downloaded futures-util v0.3.19 [INFO] [stderr] Downloaded serde v1.0.133 [INFO] [stderr] Downloaded pin-project v1.0.10 [INFO] [stderr] Downloaded url v1.7.2 [INFO] [stderr] Downloaded diesel v1.4.8 [INFO] [stderr] Downloaded bumpalo v3.9.1 [INFO] [stderr] Downloaded hyper v0.14.16 [INFO] [stderr] Downloaded h2 v0.3.10 [INFO] [stderr] Downloaded serde_with v1.11.0 [INFO] [stderr] Downloaded reqwest v0.11.8 [INFO] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded rust_decimal v1.19.0 [INFO] [stderr] Downloaded http v0.2.6 [INFO] [stderr] Downloaded idna v0.1.5 [INFO] [stderr] Downloaded crc32fast v1.3.0 [INFO] [stderr] Downloaded rustversion v1.0.6 [INFO] [stderr] Downloaded futures-io v0.3.19 [INFO] [stderr] Downloaded syn v1.0.85 [INFO] [stderr] Downloaded ryu v1.0.9 [INFO] [stderr] Downloaded darling_core v0.13.1 [INFO] [stderr] Downloaded futures-macro v0.3.19 [INFO] [stderr] Downloaded serde_with_macros v1.5.1 [INFO] [stderr] Downloaded futures-channel v0.3.19 [INFO] [stderr] Downloaded pin-project-internal v1.0.10 [INFO] [stderr] Downloaded itoa v1.0.1 [INFO] [stderr] Downloaded hmac-sha256 v0.1.7 [INFO] [stderr] Downloaded darling v0.13.1 [INFO] [stderr] Downloaded tokio-macros v1.7.0 [INFO] [stderr] Downloaded futures-executor v0.3.19 [INFO] [stderr] Downloaded input_buffer v0.4.0 [INFO] [stderr] Downloaded tungstenite v0.13.0 [INFO] [stderr] Downloaded darling_macro v0.13.1 [INFO] [stderr] Downloaded futures-task v0.3.19 [INFO] [stderr] Downloaded tokio v1.15.0 [INFO] [stderr] Downloaded encoding_rs v0.8.30 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d24d0f9f83dcc962977da97d492d69264cad76ccd49f0489202c001ecfeb7340 [INFO] running `Command { std: "docker" "start" "-a" "d24d0f9f83dcc962977da97d492d69264cad76ccd49f0489202c001ecfeb7340", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d24d0f9f83dcc962977da97d492d69264cad76ccd49f0489202c001ecfeb7340", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d24d0f9f83dcc962977da97d492d69264cad76ccd49f0489202c001ecfeb7340", kill_on_drop: false }` [INFO] [stdout] d24d0f9f83dcc962977da97d492d69264cad76ccd49f0489202c001ecfeb7340 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b2da57d82dfa25318d8b12c4a9c599dc392afece6dcf5407f69c22b5eccb7b2 [INFO] running `Command { std: "docker" "start" "-a" "9b2da57d82dfa25318d8b12c4a9c599dc392afece6dcf5407f69c22b5eccb7b2", 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 autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Checking futures-sink v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling generic-array v0.14.5 [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] Compiling indexmap v1.7.0 [INFO] [stderr] Checking openssl-probe v0.1.4 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling rustversion v1.0.6 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tower-service v0.3.1 [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] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling anyhow v1.0.52 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling arrayvec v0.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 regex-syntax v0.6.25 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking hmac-sha256 v0.1.7 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Compiling rust_decimal v1.19.0 [INFO] [stderr] Compiling rust_decimal_macros v1.19.0 [INFO] [stderr] Compiling darling_core v0.13.1 [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 pin-project-internal v1.0.10 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking tokio v1.15.0 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Checking tungstenite v0.13.0 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling serde_with_macros v1.5.1 [INFO] [stderr] Checking diesel v1.4.8 [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 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 v0.14.16 [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: 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 import: `self::fills::*` [INFO] [stdout] --> src/ftx/rest/model/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::fills::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::spot_margin::*` [INFO] [stdout] --> src/ftx/rest/model/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::spot_margin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketType` [INFO] [stdout] --> src/ftx/ws/model.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::ftx::rest::{Coin, Id, MarketType, OrderInfo, Side, Symbol}; [INFO] [stdout] | ^^^^^^^^^^ [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 import: `self::spot_margin::*` [INFO] [stdout] --> src/ftx/rest/model/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::spot_margin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MarketType` [INFO] [stdout] --> src/ftx/ws/model.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | pub use crate::ftx::rest::{Coin, Id, MarketType, OrderInfo, Side, Symbol}; [INFO] [stdout] | ^^^^^^^^^^ [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: methods `rest` and `header_prefix` are never used [INFO] [stdout] --> src/ftx/options.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Endpoint { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn rest(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn header_prefix(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `us`, `from_env_us`, and `subaccount` are never used [INFO] [stdout] --> src/ftx/options.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl Options { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 47 | pub fn us() -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn from_env_us() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [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: multiple associated items are never used [INFO] [stdout] --> src/ftx/rest/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Rest { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 36 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn request(&self, req: R) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub async fn get_subaccounts(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub async fn create_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn change_subaccount_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn delete_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub async fn get_subaccount_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub async fn transfer_between_subaccounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub async fn get_markets(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub async fn get_market(&self, market_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn get_orderbook( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn get_trades( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub async fn get_futures(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub async fn get_future(&self, future_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | pub async fn get_account(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub async fn change_account_leverage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub async fn get_coins(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub async fn get_positions(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | pub async fn get_wallet_deposit_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub async fn get_wallet_balances(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn get_wallet_deposits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub async fn get_wallet_withdrawals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | pub async fn get_open_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub async fn get_order_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | pub async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | pub async fn place_trigger_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | pub async fn modify_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub async fn modify_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | pub async fn get_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub async fn cancel_all_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 531 | pub async fn cancel_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^ [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: enum `Error` is never used [INFO] [stdout] --> src/ftx/rest/error.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Request` is never used [INFO] [stdout] --> src/ftx/rest/model/mod.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub trait Request: Serialize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SuccessResponse` is never constructed [INFO] [stdout] --> src/ftx/rest/model/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct SuccessResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/ftx/rest/model/mod.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize_as_timestamp` is never used [INFO] [stdout] --> src/ftx/rest/model/mod.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn serialize_as_timestamp( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/ftx/rest/model/account.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetAccount` is never constructed [INFO] [stdout] --> src/ftx/rest/model/account.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct GetAccount {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeAccountLeverage` is never constructed [INFO] [stdout] --> src/ftx/rest/model/account.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct ChangeAccountLeverage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] 51 | impl ChangeAccountLeverage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 52 | pub fn new(leverage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `FutureType` is never used [INFO] [stdout] --> src/ftx/rest/model/common.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub enum FutureType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DepositStatus` is never used [INFO] [stdout] --> src/ftx/rest/model/common.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum DepositStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MarketType` is never used [INFO] [stdout] --> src/ftx/rest/model/common.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | pub enum MarketType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/ftx/rest/model/common.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WithdrawStatus` is never used [INFO] [stdout] --> src/ftx/rest/model/common.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum WithdrawStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFills` is never constructed [INFO] [stdout] --> src/ftx/rest/model/fills.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct GetFills { [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] 14 | impl GetFills { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Future` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Future { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFutures` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct GetFutures {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFuture` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct GetFuture { [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] 59 | impl GetFuture { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(future_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FundingRate` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct FundingRate { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FundingRates` is never used [INFO] [stdout] --> src/ftx/rest/model/futures.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | pub type FundingRates = Vec; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFundingRates` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct GetFundingRates {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FutureStats` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct FutureStats { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFutureStats` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct GetFutureStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetExpiredFutures` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct GetExpiredFutures {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Market` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Market { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetMarkets` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct GetMarkets {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetMarket` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct GetMarket { [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] 55 | impl GetMarket { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 56 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Orderbook` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Orderbook { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOrderBook` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct GetOrderBook { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_depth` are never used [INFO] [stdout] --> src/ftx/rest/model/markets.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl GetOrderBook { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 92 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn with_depth(market_name: &str, depth: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Trade` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Trade { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetTrades` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct GetTrades { [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] 149 | impl GetTrades { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 150 | pub fn new(market_name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Price` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetHistoricalPrices` is never constructed [INFO] [stdout] --> src/ftx/rest/model/markets.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct GetHistoricalPrices { [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] 200 | impl GetHistoricalPrices { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 201 | pub fn new(market_name: &str, resolution: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/orders.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct OrderInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub r#type: OrderType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | pub price: Option, // null for new market orders [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub reduce_only: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub ioc: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub post_only: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub status: OrderStatus, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub filled_size: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub remaining_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub avg_fill_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub liquidation: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | pub client_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub retry_until_filled: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub trigger_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub order_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | pub triggered_at: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOpenOrders` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct GetOpenOrders { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `all_market` and `with_market` are never used [INFO] [stdout] --> src/ftx/rest/model/orders.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl GetOpenOrders { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 43 | pub fn all_market() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct PlaceOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModifyOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct ModifyOrder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub struct GetOrder { [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] 119 | impl GetOrder { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 120 | pub fn new(order_id: Id) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct CancelOrder { [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] 143 | impl CancelOrder { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 144 | pub fn new(order_id: Id) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelAllOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub struct CancelAllOrder { [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] 174 | impl CancelAllOrder { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 175 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelOrderByClientId` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct CancelOrderByClientId { [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] 198 | impl CancelOrderByClientId { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 199 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOrderByClientId` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub struct GetOrderByClientId { [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] 225 | impl GetOrderByClientId { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 226 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOrderHistory` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub struct GetOrderHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceTriggerOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct PlaceTriggerOrder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModifyOrderByClientId` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct ModifyOrderByClientId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetPositions` is never constructed [INFO] [stdout] --> src/ftx/rest/model/positions.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct GetPositions {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetLendingRates` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct GetLendingRates {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LendingRate` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LendingRate { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyLendingHistory` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct MyLendingHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetMyLendingHistory` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GetMyLendingHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetLendingInfo` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct GetLendingInfo {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LendingInfo` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct LendingInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubmitLendingOffer` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct SubmitLendingOffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Subaccount` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Subaccount { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetSubaccounts` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct GetSubaccounts {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateSubaccount` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CreateSubaccount { [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] 38 | impl CreateSubaccount { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 39 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Create` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Create { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeSubaccountName` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct ChangeSubaccountName { [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] 69 | impl ChangeSubaccountName { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 70 | pub fn new(nickname: &str, new_nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeleteSubaccount` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct DeleteSubaccount { [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] 92 | impl DeleteSubaccount { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 93 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Balance` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Balance { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetSubaccountBalances` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct GetSubaccountBalances { [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] 125 | impl GetSubaccountBalances { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 126 | pub fn new(nickname: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transfer` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct Transfer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransferBetweenSubaccounts` is never constructed [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub struct TransferBetweenSubaccounts { [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] 164 | impl TransferBetweenSubaccounts { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 165 | pub fn new(coin: &str, size: S, source: &str, destination: &str) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletDepositAddress` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WalletDepositAddress { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletBalance` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WalletBalance { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletDeposit` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WalletDeposit { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletDeposits` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct GetWalletDeposits { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletBalances` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct GetWalletBalances {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletDepositAddress` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct GetWalletDepositAddress { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_method` are never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl GetWalletDepositAddress { [INFO] [stdout] | ---------------------------- associated functions in this implementation [INFO] [stdout] 90 | pub fn new(coin: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_method(coin: &str, method: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoinInfo` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CoinInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetCoins` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct GetCoins {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletWithdrawal` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct WalletWithdrawal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletWithdrawals` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub struct GetWalletWithdrawals { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestWithdrawal` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct RequestWithdrawal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ENDPOINT`, `ENDPOINT_US`, `unsubscribe`, and `unsubscribe_all` are never used [INFO] [stdout] --> src/ftx/ws/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 36 | impl Ws { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] 37 | pub const ENDPOINT: &'static str = "wss://ftx.com/ws"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | pub const ENDPOINT_US: &'static str = "wss://ftx.us/ws"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub async fn unsubscribe(&mut self, channels: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [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: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | Ticker(Ticker), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 65 - Ticker(Ticker), [INFO] [stdout] 65 + Ticker(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | Fill(Fill), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 - Fill(Fill), [INFO] [stdout] 68 + Fill(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | Order(OrderInfo), [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 69 - Order(OrderInfo), [INFO] [stdout] 69 + Order(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bid`, `ask`, `bid_size`, `ask_size`, `last`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Ticker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 76 | pub bid: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 77 | pub ask: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 78 | pub bid_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | pub ask_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 80 | pub last: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[serde_as(as = "TimestampSecondsWithFrac")] [INFO] [stdout] 82 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ticker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 88 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | pub time: DateTime, // API returns "2021-05-23T05:24:24.315884+00:00" [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `checksum` and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct OrderbookData { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 107 | pub checksum: Checksum, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 108 | #[serde_as(as = "TimestampSecondsWithFrac")] [INFO] [stdout] 109 | pub time: DateTime, // API returns 1621740952.5079553 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderbookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct Orderbook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 128 | pub symbol: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/ftx/ws/model.rs:182:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl Orderbook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn verify_checksum(&self, checksum: Checksum) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn bid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn ask_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn mid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn best_bid(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn best_ask(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn best_bid_and_ask(&self) -> Option<((Decimal, Decimal), (Decimal, Decimal))> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn quote(&self, side: Side, quantity: Decimal) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/ws/model.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 292 | pub struct Fill { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 293 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 294 | pub market: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 295 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 296 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 297 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 298 | pub r#type: String, // e.g. "order" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 299 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 301 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 302 | pub order_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 303 | pub trade_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 304 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 305 | pub fee: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 306 | pub fee_rate: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 307 | pub fee_currency: Coin, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 308 | pub liquidity: Liquidity, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fill` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_tablesavedatalist` [INFO] [stdout] 23 | struct TableSaveDataList { [INFO] [stdout] | ----------------- `TableSaveDataList` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] | | ------------- `exchange_name` is not local [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_exchange_name` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] | | ----------- `symbol_name` is not local [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_symbol_name` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] | | ---------- `table_name` is not local [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table_name` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [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 items `us`, `from_env_us`, and `subaccount` are never used [INFO] [stdout] --> src/ftx/options.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl Options { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 47 | pub fn us() -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn from_env_us() -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn subaccount(mut self, subaccount: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/ftx/rest/mod.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl Rest { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | pub async fn get_subaccounts(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub async fn create_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | pub async fn change_subaccount_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub async fn delete_subaccount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub async fn get_subaccount_balances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub async fn transfer_between_subaccounts( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub async fn get_markets(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub async fn get_market(&self, market_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub async fn get_orderbook( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub async fn get_trades( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub async fn get_historical_prices( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub async fn get_futures(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | pub async fn get_future(&self, future_name: &str) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | pub async fn get_account(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub async fn change_account_leverage( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub async fn get_coins(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub async fn get_positions(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 330 | pub async fn get_wallet_deposit_address( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 343 | pub async fn get_wallet_balances(&self) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn get_wallet_deposits( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub async fn get_wallet_withdrawals( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 378 | pub async fn get_open_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub async fn get_order_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | pub async fn place_order( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 442 | pub async fn place_trigger_order( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | pub async fn modify_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub async fn modify_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn get_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | pub async fn get_order_by_client_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 514 | pub async fn cancel_all_orders( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 531 | pub async fn cancel_order(&self, order_id: Id) -> Result<::Response> { [INFO] [stdout] | ^^^^^^^^^^^^ [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: field `success` is never read [INFO] [stdout] --> src/ftx/rest/model/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct SuccessResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 43 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SuccessResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `success` is never read [INFO] [stdout] --> src/ftx/rest/model/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct ErrorResponse { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 49 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/account.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 12 | pub backstop_provider: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub charge_interest_on_negative_usd: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub collateral: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub free_collateral: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub initial_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub liquidating: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | pub maintenance_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | pub maker_fee: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub margin_fraction: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub open_margin_fraction: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub position_limit: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 23 | pub position_limit_used: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub taker_fee: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 25 | pub total_account_value: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub total_position_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub use_ftt_collateral: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | pub leverage: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | pub positions: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub spot_lending_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | pub spot_margin_enabled: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetAccount` is never constructed [INFO] [stdout] --> src/ftx/rest/model/account.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct GetAccount {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeAccountLeverage` is never constructed [INFO] [stdout] --> src/ftx/rest/model/account.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct ChangeAccountLeverage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] 51 | impl ChangeAccountLeverage { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 52 | pub fn new(leverage: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DepositStatus` is never used [INFO] [stdout] --> src/ftx/rest/model/common.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | pub enum DepositStatus { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/common.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 109 | pub cost: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 110 | pub entry_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 111 | pub estimated_liquidation_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | pub future: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 113 | pub initial_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 114 | pub long_order_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 115 | pub maintenance_margin_requirement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | pub net_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 117 | pub open_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 118 | pub realized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 119 | pub short_order_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 121 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 122 | pub unrealized_pnl: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 123 | pub collateral_used: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `WithdrawStatus` is never used [INFO] [stdout] --> src/ftx/rest/model/common.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 128 | pub enum WithdrawStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Future { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | pub ask: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | pub bid: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub change1h: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub change24h: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | pub change_bod: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 17 | pub volume_usd24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub volume: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | pub description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | pub expired: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub expiry: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | pub index: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | pub imf_factor: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | pub lower_bound: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub mark: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 28 | pub name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 29 | pub perpetual: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub position_limit_weight: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub post_only: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub price_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub size_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub underlying: Symbol, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub upper_bound: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | #[serde(rename = "type")] [INFO] [stdout] 37 | pub market_type: FutureType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Future` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `future`, `rate`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/futures.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct FundingRate { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 82 | pub future: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 83 | pub rate: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 84 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FundingRate` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FutureStats` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct FutureStats { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetFutureStats` is never constructed [INFO] [stdout] --> src/ftx/rest/model/futures.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct GetFutureStats { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Market { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | #[serde(rename = "type")] [INFO] [stdout] 13 | pub market_type: MarketType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 14 | pub name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | pub underlying: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | pub ask: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | pub bid: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub last: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub post_only: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 23 | pub price_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | pub size_increment: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub restricted: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | pub min_provide_size: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 27 | pub price: Option, // Sometimes, there is no price available? [INFO] [stdout] 28 | pub high_leverage_fee_exempt: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub change1h: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | pub change24h: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub change_bod: Decimal, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | pub quote_volume24h: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | pub volume_usd24h: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Market` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `asks` and `bids` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct Orderbook { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 78 | pub asks: Vec<(Decimal, Decimal)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | pub bids: Vec<(Decimal, Decimal)>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, `price`, `side`, `size`, and `time` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 122 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 123 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 124 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 125 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 126 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `close`, `high`, `low`, `open`, `volume`, and `start_time` are never read [INFO] [stdout] --> src/ftx/rest/model/markets.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 173 | pub close: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 174 | pub high: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | pub low: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 176 | pub open: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 177 | pub volume: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 178 | pub start_time: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Price` has derived impls for the traits `Debug` and `Clone`, but these are 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/markets.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 200 | impl GetHistoricalPrices { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 201 | pub fn new(market_name: &str, resolution: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/orders.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct OrderInfo { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | pub id: Id, [INFO] [stdout] 13 | pub market: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | pub r#type: OrderType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub reduce_only: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | pub ioc: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | pub post_only: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub remaining_size: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub avg_fill_price: Option, [INFO] [stdout] 26 | pub liquidation: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub created_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | pub client_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub retry_until_filled: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub trigger_price: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | pub order_price: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 32 | pub triggered_at: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 33 | pub error: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelAllOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub struct CancelAllOrder { [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] 174 | impl CancelAllOrder { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 175 | pub fn with_market(market: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CancelOrderByClientId` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub struct CancelOrderByClientId { [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] 198 | impl CancelOrderByClientId { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 199 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOrderByClientId` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub struct GetOrderByClientId { [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] 225 | impl GetOrderByClientId { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 226 | pub fn new(client_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetOrderHistory` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub struct GetOrderHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlaceTriggerOrder` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | pub struct PlaceTriggerOrder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModifyOrderByClientId` is never constructed [INFO] [stdout] --> src/ftx/rest/model/orders.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct ModifyOrderByClientId { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetPositions` is never constructed [INFO] [stdout] --> src/ftx/rest/model/positions.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct GetPositions {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetLendingRates` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct GetLendingRates {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LendingRate` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LendingRate { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyLendingHistory` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct MyLendingHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetMyLendingHistory` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GetMyLendingHistory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetLendingInfo` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct GetLendingInfo {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LendingInfo` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct LendingInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubmitLendingOffer` is never constructed [INFO] [stdout] --> src/ftx/rest/model/spot_margin.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub struct SubmitLendingOffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `deletable`, `editable`, and `competition` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Subaccount { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 16 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub deletable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | pub editable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | pub competition: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Subaccount` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nickname`, `deletable`, and `editable` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Create { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 49 | pub nickname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 50 | pub deletable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | pub editable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Create` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coin`, `free`, `total`, `spot_borrow`, and `available_without_borrow` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct Balance { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 111 | pub coin: Coin, [INFO] [stdout] | ^^^^ [INFO] [stdout] 112 | pub free: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | pub total: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | pub spot_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 115 | pub available_without_borrow: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Balance` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `coin`, `size`, `time`, and `notes` are never read [INFO] [stdout] --> src/ftx/rest/model/subaccounts.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct Transfer { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 148 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 149 | pub coin: Coin, [INFO] [stdout] | ^^^^ [INFO] [stdout] 150 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 151 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 152 | pub notes: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transfer` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletDepositAddress` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct WalletDepositAddress { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletBalance` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WalletBalance { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletDeposit` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WalletDeposit { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletDeposits` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct GetWalletDeposits { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletBalances` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct GetWalletBalances {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletDepositAddress` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct GetWalletDepositAddress { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_method` are never used [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl GetWalletDepositAddress { [INFO] [stdout] | ---------------------------- associated functions in this implementation [INFO] [stdout] 90 | pub fn new(coin: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn with_method(coin: &str, method: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct CoinInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 120 | pub id: Coin, // "USDT" [INFO] [stdout] | ^^ [INFO] [stdout] 121 | pub name: String, // "USD Tether" [INFO] [stdout] | ^^^^ [INFO] [stdout] 122 | pub collateral: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 123 | pub usd_fungible: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 124 | pub is_etf: bool, // Not documented [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 125 | pub is_token: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 126 | pub hidden: bool, // Not documented [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 127 | pub can_deposit: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 128 | pub can_withdraw: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 129 | pub can_convert: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 130 | pub has_tag: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 131 | pub collateral_weight: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 132 | pub fiat: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | pub methods: Vec, // ["omni", "erc20", "trx", "sol", "heco"] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 134 | pub erc20_contract: Option, // "0xdAC17F958D2ee523a2206206994597C13D831ec7" [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 135 | pub bep2_asset: Option, // "ETHBEAR-B2B" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 136 | pub trc20_contract: Option, // "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 137 | pub spl_mint: Option, // "BQcdHdAQW1hczDbBi9hiegXAR7A98Q9jx3X3iBBBDiq4" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 138 | pub credit_to: Option, // "USDT" [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 139 | pub spot_margin: bool, // Not documented [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 140 | pub tokenized_equity: Option, // Not documented [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 141 | pub index_price: Decimal, // Not documented; note that ~8% return 1e-8 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WalletWithdrawal` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct WalletWithdrawal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetWalletWithdrawals` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub struct GetWalletWithdrawals { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RequestWithdrawal` is never constructed [INFO] [stdout] --> src/ftx/rest/model/wallet.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct RequestWithdrawal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `ENDPOINT` and `ENDPOINT_US` are never used [INFO] [stdout] --> src/ftx/ws/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 36 | impl Ws { [INFO] [stdout] | ------- associated constants in this implementation [INFO] [stdout] 37 | pub const ENDPOINT: &'static str = "wss://ftx.com/ws"; [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: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | Ticker(Ticker), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 65 - Ticker(Ticker), [INFO] [stdout] 65 + Ticker(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | Fill(Fill), [INFO] [stdout] | ---- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Data` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 - Fill(Fill), [INFO] [stdout] 68 + Fill(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bid`, `ask`, `bid_size`, `ask_size`, `last`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct Ticker { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 76 | pub bid: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 77 | pub ask: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 78 | pub bid_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | pub ask_size: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 80 | pub last: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | #[serde_as(as = "TimestampSecondsWithFrac")] [INFO] [stdout] 82 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ticker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `liquidation`, and `time` are never read [INFO] [stdout] --> src/ftx/ws/model.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 88 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub liquidation: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | pub time: DateTime, // API returns "2021-05-23T05:24:24.315884+00:00" [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `time` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct OrderbookData { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 109 | pub time: DateTime, // API returns 1621740952.5079553 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderbookData` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol` is never read [INFO] [stdout] --> src/ftx/ws/model.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct Orderbook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 128 | pub symbol: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Orderbook` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/ftx/ws/model.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 292 | pub struct Fill { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 293 | pub id: Id, [INFO] [stdout] | ^^ [INFO] [stdout] 294 | pub market: Symbol, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 295 | pub future: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 296 | pub base_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 297 | pub quote_currency: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 298 | pub r#type: String, // e.g. "order" [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 299 | pub side: Side, [INFO] [stdout] | ^^^^ [INFO] [stdout] 300 | pub price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 301 | pub size: Decimal, [INFO] [stdout] | ^^^^ [INFO] [stdout] 302 | pub order_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 303 | pub trade_id: Id, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 304 | pub time: DateTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 305 | pub fee: Decimal, [INFO] [stdout] | ^^^ [INFO] [stdout] 306 | pub fee_rate: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 307 | pub fee_currency: Coin, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 308 | pub liquidity: Liquidity, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fill` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Queryable)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Queryable` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_queryable_for_tablesavedatalist` [INFO] [stdout] 23 | struct TableSaveDataList { [INFO] [stdout] | ----------------- `TableSaveDataList` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Queryable` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Queryable` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Queryable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | `table` is not local [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] | | -- `id` is not local [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_id` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] | | ------------- `exchange_name` is not local [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_exchange_name` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] | | ----------- `symbol_name` is not local [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_symbol_name` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | save_data_list(id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | exchange_name-> Text, [INFO] [stdout] 5 | | symbol_name-> Text, [INFO] [stdout] 6 | | table_name-> Text, [INFO] [stdout] | | ---------- `table_name` is not local [INFO] [stdout] 7 | | }} [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__`QueryId` is not local [INFO] [stdout] | move the `impl` block outside of this function `_impl_query_id_for_table_name` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `QueryId` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `QueryId` may come from an old version of the `diesel_derives` crate, try updating your dependency with `cargo update -p diesel_derives` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the derive macro `QueryId` which comes from the expansion of the macro `table` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.08s [INFO] running `Command { std: "docker" "inspect" "9b2da57d82dfa25318d8b12c4a9c599dc392afece6dcf5407f69c22b5eccb7b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b2da57d82dfa25318d8b12c4a9c599dc392afece6dcf5407f69c22b5eccb7b2", kill_on_drop: false }` [INFO] [stdout] 9b2da57d82dfa25318d8b12c4a9c599dc392afece6dcf5407f69c22b5eccb7b2