[INFO] cloning repository https://github.com/0x-pankaj/probo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0x-pankaj/probo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x-pankaj%2Fprobo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x-pankaj%2Fprobo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1600dcd1a6cdaa872ac1a5fb27a10ad61068efac [INFO] testing 0x-pankaj/probo against 1.99.0-beta.8 for beta-1.100-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0x-pankaj%2Fprobo" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/0x-pankaj/probo [INFO] finished tweaking git repo https://github.com/0x-pankaj/probo [INFO] tweaked toml for git repo https://github.com/0x-pankaj/probo written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/0x-pankaj/probo on toolchain 1.99.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/0x-pankaj/probo 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" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deadpool-redis v0.16.0 [INFO] [stderr] Downloaded jiff-static v0.2.13 [INFO] [stderr] Downloaded deadpool v0.12.2 [INFO] [stderr] Downloaded icu_properties v2.0.0 [INFO] [stderr] Downloaded icu_properties_data v2.0.0 [INFO] [stderr] Downloaded redis v0.25.4 [INFO] [stderr] Downloaded jiff v0.2.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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] eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa [INFO] running `Command { std: "docker" "start" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", 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" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling icu_properties_data v2.0.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling jiff v0.2.13 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling deadpool v0.12.2 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling redis v0.26.1 [INFO] [stderr] Compiling redis v0.25.4 [INFO] [stderr] Compiling deadpool-redis v0.16.0 [INFO] [stderr] Compiling probo-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Sell` is never constructed [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum OrderType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Buy, [INFO] [stdout] 15 | Sell, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderType` has derived impls for the traits `Debug` and `Clone`, 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: fields `user_id` and `timestamp` are never read [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct Order { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 20 | id: u64, [INFO] [stdout] 21 | user_id: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Order` 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 `buy_order_id`, `sell_order_id`, `option`, `price`, and `quantity` are never read [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 31 | buy_order_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 32 | sell_order_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 33 | option: OptionType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | quantity: u32, [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 `option` is never read [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct OrderBook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | option: OptionType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_order` is never used [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | fn remove_order(&mut self, order_type: OrderType, price: f64, order_id: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commision_rate` is never read [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct MatchingEngine { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | commision_rate: f64, //eg 0.0223 -> 2.23 percentage [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cancel_order`, `get_market_price`, and `get_order_book` are never used [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl MatchingEngine { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | fn cancel_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | fn get_market_price(&self, option: OptionType) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | fn get_order_book(&self, option: OptionType) -> (BTreeMap, BTreeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.74s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.25.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling probo-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Sell` is never constructed [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum OrderType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Buy, [INFO] [stdout] 15 | Sell, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderType` has derived impls for the traits `Debug` and `Clone`, 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: fields `user_id` and `timestamp` are never read [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct Order { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 20 | id: u64, [INFO] [stdout] 21 | user_id: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Order` 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 `buy_order_id`, `sell_order_id`, `option`, `price`, and `quantity` are never read [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Trade { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 31 | buy_order_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 32 | sell_order_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 33 | option: OptionType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 34 | price: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | quantity: u32, [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 `option` is never read [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct OrderBook { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 39 | option: OptionType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_order` is never used [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl OrderBook { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | fn remove_order(&mut self, order_type: OrderType, price: f64, order_id: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commision_rate` is never read [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 86 | struct MatchingEngine { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | commision_rate: f64, //eg 0.0223 -> 2.23 percentage [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cancel_order`, `get_market_price`, and `get_order_book` are never used [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl MatchingEngine { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 153 | fn cancel_order( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 491 | fn get_market_price(&self, option: OptionType) -> (Option, Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 506 | fn get_order_book(&self, option: OptionType) -> (BTreeMap, BTreeMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.25.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: variant `Sell` is never constructed [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 13 | enum OrderType { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] 14 | Buy, [INFO] [stderr] 15 | Sell, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OrderType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `user_id` and `timestamp` are never read [INFO] [stderr] --> src/main.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 19 | struct Order { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 20 | id: u64, [INFO] [stderr] 21 | user_id: u32, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | timestamp: u64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Order` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `buy_order_id`, `sell_order_id`, `option`, `price`, and `quantity` are never read [INFO] [stderr] --> src/main.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 30 | struct Trade { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 31 | buy_order_id: u64, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 32 | sell_order_id: u64, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 33 | option: OptionType, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 34 | price: f64, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 35 | quantity: u32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Trade` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `option` is never read [INFO] [stderr] --> src/main.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 38 | pub struct OrderBook { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 39 | option: OptionType, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `remove_order` is never used [INFO] [stderr] --> src/main.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 44 | impl OrderBook { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 70 | fn remove_order(&mut self, order_type: OrderType, price: f64, order_id: u64) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `commision_rate` is never read [INFO] [stderr] --> src/main.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 86 | struct MatchingEngine { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 90 | commision_rate: f64, //eg 0.0223 -> 2.23 percentage [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `cancel_order`, `get_market_price`, and `get_order_book` are never used [INFO] [stderr] --> src/main.rs:153:8 [INFO] [stderr] | [INFO] [stderr] 93 | impl MatchingEngine { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 153 | fn cancel_order( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 491 | fn get_market_price(&self, option: OptionType) -> (Option, Option) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 506 | fn get_order_book(&self, option: OptionType) -> (BTreeMap, BTreeMap) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `probo-engine` (bin "probo-engine" test) generated 7 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.25.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/probo_engine-2ce6b2e4b788a294) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa", kill_on_drop: false }` [INFO] [stdout] eaf71fb72c9f51e185c88673631899922995bc079827f9d758485d0d9941edaa