[INFO] cloning repository https://github.com/guangyu-coder/trade [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guangyu-coder/trade" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangyu-coder%2Ftrade", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangyu-coder%2Ftrade'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2bd4c1ab513af03fa8f9f7e077d50babb1dd2b0 [INFO] checking guangyu-coder/trade against try#0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef for pr-147859 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangyu-coder%2Ftrade" "/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/guangyu-coder/trade [INFO] finished tweaking git repo https://github.com/guangyu-coder/trade [INFO] tweaked toml for git repo https://github.com/guangyu-coder/trade written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/guangyu-coder/trade on toolchain 0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/guangyu-coder/trade 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" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff845b15fc84626946b14b4a1f811355fff022865c09b3b068ed59e54caf49fa [INFO] running `Command { std: "docker" "start" "-a" "ff845b15fc84626946b14b4a1f811355fff022865c09b3b068ed59e54caf49fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff845b15fc84626946b14b4a1f811355fff022865c09b3b068ed59e54caf49fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff845b15fc84626946b14b4a1f811355fff022865c09b3b068ed59e54caf49fa", kill_on_drop: false }` [INFO] [stdout] ff845b15fc84626946b14b4a1f811355fff022865c09b3b068ed59e54caf49fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5d2ff61edf464aaa6555b03be18dc772ea602459a5f271c22501f11f4f510c5 [INFO] running `Command { std: "docker" "start" "-a" "c5d2ff61edf464aaa6555b03be18dc772ea602459a5f271c22501f11f4f510c5", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zmij v1.0.12 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking rusty-fork v0.3.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking proptest v1.9.0 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-test v0.4.5 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking redis v0.24.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking hk-us-quant-platform v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `name`, `tick_size`, `min_order_size`, and `max_order_size` are never read [INFO] [stdout] --> src/data/validators.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ExchangeConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub trading_hours: TradingHours, [INFO] [stdout] 23 | pub tick_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub min_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub max_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timezone` is never read [INFO] [stdout] --> src/data/validators.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TradingHours { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub timezone: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingHours` 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: multiple methods are never used [INFO] [stdout] --> src/data/validators.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl DataValidator { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn validate_candlestick(&self, data: &CandlestickData) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn validate_order_book(&self, order_book: &OrderBook) -> ValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | pub fn add_valid_symbol(&mut self, symbol: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 441 | pub fn remove_valid_symbol(&mut self, symbol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn update_price_thresholds(&mut self, min_price: Decimal, max_price: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn update_volume_threshold(&mut self, max_volume: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 457 | pub fn update_spread_threshold(&mut self, max_spread_percent: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn add_exchange_config(&mut self, exchange: String, config: ExchangeConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventMetrics` is never constructed [INFO] [stdout] --> src/events.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 316 | pub struct EventMetrics { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventStore` is never constructed [INFO] [stdout] --> src/events.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct EventStore { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_events`, and `replay_events` are never used [INFO] [stdout] --> src/events.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl EventStore { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 342 | pub fn new(redis_client: RedisClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub async fn get_events( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 387 | pub async fn replay_events( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataEvent` is never constructed [INFO] [stdout] --> src/types.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct DataEvent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DataEventType` is never used [INFO] [stdout] --> src/types.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | pub enum DataEventType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_metadata` are never used [INFO] [stdout] --> src/types.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl DataEvent { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 159 | pub fn new(event_type: DataEventType, data: MarketData) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn with_metadata(mut self, key: String, value: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CandlestickData` is never constructed [INFO] [stdout] --> src/types.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct CandlestickData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/types.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl CandlestickData { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 191 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn with_vwap(mut self, vwap: Decimal, trades_count: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn price_range(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn body_size(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | pub fn is_bullish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn is_doji(&self, threshold_percent: f64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBookLevel` is never constructed [INFO] [stdout] --> src/types.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | pub struct OrderBookLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBook` is never constructed [INFO] [stdout] --> src/types.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub struct OrderBook { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/types.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl OrderBook { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 269 | pub fn new(symbol: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 280 | pub fn best_bid(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn best_ask(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn spread(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn total_bid_volume(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn total_ask_volume(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn imbalance(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `tick_size`, `min_order_size`, and `max_order_size` are never read [INFO] [stdout] --> src/data/validators.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ExchangeConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 21 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | pub trading_hours: TradingHours, [INFO] [stdout] 23 | pub tick_size: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub min_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 25 | pub max_order_size: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExchangeConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timezone` is never read [INFO] [stdout] --> src/data/validators.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct TradingHours { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub timezone: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingHours` 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: method `add_exchange_config` is never used [INFO] [stdout] --> src/data/validators.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl DataValidator { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 462 | pub fn add_exchange_config(&mut self, exchange: String, config: ExchangeConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventMetrics` is never constructed [INFO] [stdout] --> src/events.rs:316:12 [INFO] [stdout] | [INFO] [stdout] 316 | pub struct EventMetrics { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventStore` is never constructed [INFO] [stdout] --> src/events.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | pub struct EventStore { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_events`, and `replay_events` are never used [INFO] [stdout] --> src/events.rs:342:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl EventStore { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 342 | pub fn new(redis_client: RedisClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub async fn get_events( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 387 | pub async fn replay_events( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataEvent` is never constructed [INFO] [stdout] --> src/types.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub struct DataEvent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DataEventType` is never used [INFO] [stdout] --> src/types.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | pub enum DataEventType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_metadata` are never used [INFO] [stdout] --> src/types.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 158 | impl DataEvent { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 159 | pub fn new(event_type: DataEventType, data: MarketData) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn with_metadata(mut self, key: String, value: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_vwap` and `body_size` are never used [INFO] [stdout] --> src/types.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl CandlestickData { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn with_vwap(mut self, vwap: Decimal, trades_count: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn body_size(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `imbalance` is never used [INFO] [stdout] --> src/types.rs:308:12 [INFO] [stdout] | [INFO] [stdout] 268 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn imbalance(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 17s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0, sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5` [INFO] running `Command { std: "docker" "inspect" "c5d2ff61edf464aaa6555b03be18dc772ea602459a5f271c22501f11f4f510c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5d2ff61edf464aaa6555b03be18dc772ea602459a5f271c22501f11f4f510c5", kill_on_drop: false }` [INFO] [stdout] c5d2ff61edf464aaa6555b03be18dc772ea602459a5f271c22501f11f4f510c5