[INFO] cloning repository https://github.com/Siddid-Soni/rust-websocket [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Siddid-Soni/rust-websocket" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSiddid-Soni%2Frust-websocket", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSiddid-Soni%2Frust-websocket'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9daeb82a103ba982c0f591bd9d9576267c01da37 [INFO] checking Siddid-Soni/rust-websocket against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSiddid-Soni%2Frust-websocket" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Siddid-Soni/rust-websocket [INFO] finished tweaking git repo https://github.com/Siddid-Soni/rust-websocket [INFO] tweaked toml for git repo https://github.com/Siddid-Soni/rust-websocket written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Siddid-Soni/rust-websocket on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Siddid-Soni/rust-websocket 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4 [INFO] running `Command { std: "docker" "start" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling cc v1.2.25 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking jiff v0.2.14 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tungstenite v0.23.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-tungstenite v0.23.1 [INFO] [stderr] Checking hyper-util v0.1.13 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking nse_socket v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/auth/session.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{warn, info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/auth/session.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/trading/order.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration as ChronoDuration`, and `Utc` [INFO] [stdout] --> src/data/loader.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, Utc, NaiveDate, Duration as ChronoDuration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/data/pubsub.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/data/controller.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/data/controller.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/data/controller.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MultiSymbolDataBroadcaster` [INFO] [stdout] --> src/data/controller.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::data::{DataLoader, MultiSymbolDataBroadcaster, PubSubManager, StockData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataBroadcaster` and `TimePeriod` [INFO] [stdout] --> src/data/mod.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | ..., DataLoader, DataBroadcaster, MultiSymbolDataBroadcaster, HistoricalDataManager, HistoricalDataResponse, TimePeriod}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/main.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/auth/session.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{warn, info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/auth/session.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/trading/order.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Duration as ChronoDuration`, and `Utc` [INFO] [stdout] --> src/data/loader.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, Utc, NaiveDate, Duration as ChronoDuration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/data/pubsub.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/data/controller.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/data/controller.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{info, warn, error}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/data/controller.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MultiSymbolDataBroadcaster` [INFO] [stdout] --> src/data/controller.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::data::{DataLoader, MultiSymbolDataBroadcaster, PubSubManager, StockData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DataBroadcaster` and `TimePeriod` [INFO] [stdout] --> src/data/mod.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | ..., DataLoader, DataBroadcaster, MultiSymbolDataBroadcaster, HistoricalDataManager, HistoricalDataResponse, TimePeriod}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/main.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use chrono::{Utc, NaiveDate}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/data/loader.rs:10:68 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, Utc, NaiveDate, Duration as ChronoDuration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TimeZone` [INFO] [stdout] --> src/data/loader.rs:10:68 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, Utc, NaiveDate, Duration as ChronoDuration, TimeZone}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/api/handlers.rs:133:28 [INFO] [stdout] | [INFO] [stdout] 133 | .map_err(|(status, msg)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/api/handlers.rs:590:28 [INFO] [stdout] | [INFO] [stdout] 590 | .map_err(|(status, msg)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/api/handlers.rs:637:28 [INFO] [stdout] | [INFO] [stdout] 637 | .map_err(|(status, msg)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/api/handlers.rs:133:28 [INFO] [stdout] | [INFO] [stdout] 133 | .map_err(|(status, msg)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/api/handlers.rs:590:28 [INFO] [stdout] | [INFO] [stdout] 590 | .map_err(|(status, msg)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/api/handlers.rs:637:28 [INFO] [stdout] | [INFO] [stdout] 637 | .map_err(|(status, msg)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datetime_str` [INFO] [stdout] --> src/data/loader.rs:538:33 [INFO] [stdout] | [INFO] [stdout] 538 | if let Some(datetime_str) = &data.datetime { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_datetime_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datetime_str` [INFO] [stdout] --> src/data/loader.rs:538:33 [INFO] [stdout] | [INFO] [stdout] 538 | if let Some(datetime_str) = &data.datetime { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_datetime_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_scale_factor` [INFO] [stdout] --> src/data/loader.rs:611:9 [INFO] [stdout] | [INFO] [stdout] 611 | time_scale_factor: f64, // Used for scaling time intervals, not dates [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_scale_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_two_months_duration` [INFO] [stdout] --> src/data/loader.rs:654:17 [INFO] [stdout] | [INFO] [stdout] 654 | let last_two_months_duration = last_two_months_end.signed_duration_since(last_two_months_start).num_days(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_two_months_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_scale_factor` [INFO] [stdout] --> src/data/loader.rs:611:9 [INFO] [stdout] | [INFO] [stdout] 611 | time_scale_factor: f64, // Used for scaling time intervals, not dates [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_scale_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_two_months_duration` [INFO] [stdout] --> src/data/loader.rs:654:17 [INFO] [stdout] | [INFO] [stdout] 654 | let last_two_months_duration = last_two_months_end.signed_duration_since(last_two_months_start).num_days(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_two_months_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/data/loader.rs:793:21 [INFO] [stdout] | [INFO] [stdout] 793 | let start_time = chrono::Utc::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/data/loader.rs:793:21 [INFO] [stdout] | [INFO] [stdout] 793 | let start_time = chrono::Utc::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `admin_tx` [INFO] [stdout] --> src/main.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | admin_tx: broadcast::Sender [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_admin_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/websocket/handler.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl WebSocketHandler { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn handle_connection_with_pubsub( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn authenticate_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn create_error_response(&self, status: StatusCode, message: &str) -> ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | async fn handle_websocket_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn spawn_write_task( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | fn spawn_read_task( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_manager` is never read [INFO] [stdout] --> src/websocket/admin.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct AdminWebSocketHandler { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 22 | session_manager: SessionManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `order_filled`, `order_partial_fill`, and `order_updated` are never used [INFO] [stdout] --> src/websocket/admin.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 181 | impl AdminOrderEvent { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn order_filled(order: Order, user_id: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn order_partial_fill(order: Order, user_id: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn order_updated(order: Order, user_id: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pubsub_manager` is never read [INFO] [stdout] --> src/api/handlers.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ApiState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub pubsub_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CONNECTIONS` is never used [INFO] [stdout] --> src/auth/session.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const MAX_CONNECTIONS: usize = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `session_id`, `user_id`, `connected_at`, and `permissions` are never read [INFO] [stdout] --> src/auth/session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ConnectionInfo { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 18 | pub session_id: String, // JWT ID (jti) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | pub user_id: String, // User identifier [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | pub connected_at: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | pub last_heartbeat: Instant, [INFO] [stdout] 22 | pub permissions: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionInfo` 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 `try_acquire_session`, `get_user_sessions`, `get_session_info`, and `log_session_stats` are never used [INFO] [stdout] --> src/auth/session.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl SessionManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn try_acquire_session(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn get_user_sessions(&self, user_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get_session_info(&self, session_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn log_session_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fill` is never used [INFO] [stdout] --> src/trading/order.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 128 | impl Order { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn fill(&mut self, fill_price: f64, fill_quantity: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_orders_by_symbol` are never used [INFO] [stdout] --> src/trading/order.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl OrderManager { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 172 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn get_orders_by_symbol(&self, symbol: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_effective_date` is never used [INFO] [stdout] --> src/data/loader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl StockMessage { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_effective_date(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_json`, `is_within_last_month`, and `get_display_date` are never used [INFO] [stdout] --> src/data/loader.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 407 | impl StockData { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 460 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | pub fn is_within_last_month(&self, latest_date: &NaiveDate) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | pub fn get_display_date(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataBroadcaster` is never constructed [INFO] [stdout] --> src/data/loader.rs:712:12 [INFO] [stdout] | [INFO] [stdout] 712 | pub struct DataBroadcaster { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_broadcasting`, and `get_data_count` are never used [INFO] [stdout] --> src/data/loader.rs:718:12 [INFO] [stdout] | [INFO] [stdout] 717 | impl DataBroadcaster { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 718 | pub fn new(data: Vec, interval_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 725 | pub fn start_broadcasting(self, tx: broadcast::Sender) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 757 | pub fn get_data_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MultiSymbolDataBroadcaster` is never constructed [INFO] [stdout] --> src/data/loader.rs:763:12 [INFO] [stdout] | [INFO] [stdout] 763 | pub struct MultiSymbolDataBroadcaster { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_broadcasting`, `get_symbol_count`, and `get_total_records` are never used [INFO] [stdout] --> src/data/loader.rs:770:12 [INFO] [stdout] | [INFO] [stdout] 769 | impl MultiSymbolDataBroadcaster { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 770 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 782 | pub fn start_broadcasting(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 851 | pub fn get_symbol_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 855 | pub fn get_total_records(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_subscriber_count`, `get_current_subscriptions`, `get_current_subscription`, `is_subscribed`, `get_subscription_count`, and `get_symbol_list` are never used [INFO] [stdout] --> src/data/pubsub.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl PubSubManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_subscriber_count(&self, symbol: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn get_current_subscriptions(&self, session_id: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get_current_subscription(&self, session_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn is_subscribed(&self, session_id: &str, symbol: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_subscription_count(&self, session_id: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn get_symbol_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/controller.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl BroadcastController { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 37 | pub fn new(pubsub_manager: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_TIME_SCALE_FACTOR` is never used [INFO] [stdout] --> src/config.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DEFAULT_TIME_SCALE_FACTOR: f64 = 0.01; // 100x faster than real time [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `admin_tx` [INFO] [stdout] --> src/main.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | admin_tx: broadcast::Sender [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_admin_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/websocket/handler.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl WebSocketHandler { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn handle_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn handle_connection_with_pubsub( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn authenticate_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | fn create_error_response(&self, status: StatusCode, message: &str) -> ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | async fn handle_websocket_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn spawn_write_task( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | fn spawn_read_task( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `session_manager` is never read [INFO] [stdout] --> src/websocket/admin.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct AdminWebSocketHandler { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] 22 | session_manager: SessionManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `order_filled`, `order_partial_fill`, and `order_updated` are never used [INFO] [stdout] --> src/websocket/admin.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 181 | impl AdminOrderEvent { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn order_filled(order: Order, user_id: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn order_partial_fill(order: Order, user_id: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn order_updated(order: Order, user_id: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pubsub_manager` is never read [INFO] [stdout] --> src/api/handlers.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ApiState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub pubsub_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_CONNECTIONS` is never used [INFO] [stdout] --> src/auth/session.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const MAX_CONNECTIONS: usize = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `session_id`, `user_id`, `connected_at`, and `permissions` are never read [INFO] [stdout] --> src/auth/session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ConnectionInfo { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 18 | pub session_id: String, // JWT ID (jti) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | pub user_id: String, // User identifier [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | pub connected_at: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | pub last_heartbeat: Instant, [INFO] [stdout] 22 | pub permissions: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/auth/session.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl ConnectionInfo { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 26 | pub fn new(claims: &Claims) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_acquire_session`, `get_user_sessions`, `get_session_info`, and `log_session_stats` are never used [INFO] [stdout] --> src/auth/session.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl SessionManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn try_acquire_session(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn get_user_sessions(&self, user_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get_session_info(&self, session_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn log_session_stats(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fill` is never used [INFO] [stdout] --> src/trading/order.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 128 | impl Order { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn fill(&mut self, fill_price: f64, fill_quantity: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_orders_by_symbol` are never used [INFO] [stdout] --> src/trading/order.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl OrderManager { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 172 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn get_orders_by_symbol(&self, symbol: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_effective_date` is never used [INFO] [stdout] --> src/data/loader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl StockMessage { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_effective_date(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_json`, `is_within_last_month`, and `get_display_date` are never used [INFO] [stdout] --> src/data/loader.rs:460:12 [INFO] [stdout] | [INFO] [stdout] 407 | impl StockData { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 460 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | pub fn is_within_last_month(&self, latest_date: &NaiveDate) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | pub fn get_display_date(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataBroadcaster` is never constructed [INFO] [stdout] --> src/data/loader.rs:712:12 [INFO] [stdout] | [INFO] [stdout] 712 | pub struct DataBroadcaster { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_broadcasting`, and `get_data_count` are never used [INFO] [stdout] --> src/data/loader.rs:718:12 [INFO] [stdout] | [INFO] [stdout] 717 | impl DataBroadcaster { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 718 | pub fn new(data: Vec, interval_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 725 | pub fn start_broadcasting(self, tx: broadcast::Sender) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 757 | pub fn get_data_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MultiSymbolDataBroadcaster` is never constructed [INFO] [stdout] --> src/data/loader.rs:763:12 [INFO] [stdout] | [INFO] [stdout] 763 | pub struct MultiSymbolDataBroadcaster { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start_broadcasting`, `get_symbol_count`, and `get_total_records` are never used [INFO] [stdout] --> src/data/loader.rs:770:12 [INFO] [stdout] | [INFO] [stdout] 769 | impl MultiSymbolDataBroadcaster { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 770 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 782 | pub fn start_broadcasting(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 851 | pub fn get_symbol_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 855 | pub fn get_total_records(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_subscriber_count`, `get_current_subscriptions`, `get_current_subscription`, `is_subscribed`, `get_subscription_count`, and `get_symbol_list` are never used [INFO] [stdout] --> src/data/pubsub.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl PubSubManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_subscriber_count(&self, symbol: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn get_current_subscriptions(&self, session_id: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get_current_subscription(&self, session_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn is_subscribed(&self, session_id: &str, symbol: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn get_subscription_count(&self, session_id: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn get_symbol_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/controller.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl BroadcastController { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 37 | pub fn new(pubsub_manager: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_TIME_SCALE_FACTOR` is never used [INFO] [stdout] --> src/config.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DEFAULT_TIME_SCALE_FACTOR: f64 = 0.01; // 100x faster than real time [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `Box` [INFO] [stdout] --> src/main.rs:157:20 [INFO] [stdout] | [INFO] [stdout] 157 | return Err(e.into()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 157 - return Err(e.into()); [INFO] [stdout] 157 + return Err(e); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 157 - return Err(e.into()); [INFO] [stdout] 157 + return Err( as Into<_>>::into(e)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `Box` [INFO] [stdout] --> src/main.rs:157:20 [INFO] [stdout] | [INFO] [stdout] 157 | return Err(e.into()); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 157 - return Err(e.into()); [INFO] [stdout] 157 + return Err(e); [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 157 - return Err(e.into()); [INFO] [stdout] 157 + return Err( as Into<_>>::into(e)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nse_socket` (bin "nse_socket" test) due to 1 previous error; 38 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `nse_socket` (bin "nse_socket") due to 1 previous error; 39 warnings emitted [INFO] [stderr] warning: unused dependency `tower` [INFO] [stderr] --> Cargo.toml:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | tower = "0.4.13" [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `tower` [INFO] [stderr] warning: `nse_socket` (manifest) generated 1 warning [INFO] running `Command { std: "docker" "inspect" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4", kill_on_drop: false }` [INFO] [stdout] 82c739c4b6f884f944fb1a8d88c3e6e6ef2c85052e8536867e6e47d50da5e5a4