[INFO] fetching crate alpaca-client 0.1.4... [INFO] checking alpaca-client-0.1.4 against master#e4106065bf1bb515935d5d024e8d9c86454e2b22 for pr-112160 [INFO] extracting crate alpaca-client 0.1.4 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate alpaca-client 0.1.4 on toolchain e4106065bf1bb515935d5d024e8d9c86454e2b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate alpaca-client 0.1.4 [INFO] finished tweaking crates.io crate alpaca-client 0.1.4 [INFO] tweaked toml for crates.io crate alpaca-client 0.1.4 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded borsh-derive-internal v0.10.3 [INFO] [stderr] Downloaded tokio-macros v0.2.6 [INFO] [stderr] Downloaded schannel v0.1.21 [INFO] [stderr] Downloaded security-framework v2.9.1 [INFO] [stderr] Downloaded bytecheck v0.6.11 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded miow v0.3.7 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] [stderr] Downloaded borsh-derive v0.10.3 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.10.3 [INFO] [stderr] Downloaded proc-macro-crate v0.1.5 [INFO] [stderr] Downloaded wyz v0.5.1 [INFO] [stderr] Downloaded funty v2.0.0 [INFO] [stderr] Downloaded bytecheck_derive v0.6.11 [INFO] [stderr] Downloaded winreg v0.7.0 [INFO] [stderr] Downloaded security-framework-sys v2.9.0 [INFO] [stderr] Downloaded rkyv v0.7.42 [INFO] [stderr] Downloaded hashbrown v0.13.2 [INFO] [stderr] Downloaded bitvec v1.0.1 [INFO] [stderr] Downloaded borsh v0.10.3 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.36 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] [stderr] Downloaded simdutf8 v0.1.4 [INFO] [stderr] Downloaded uuid v1.3.3 [INFO] [stderr] Downloaded rend v0.4.0 [INFO] [stderr] Downloaded rkyv_derive v0.7.42 [INFO] [stderr] Downloaded rust_decimal v1.29.1 [INFO] [stderr] Downloaded radium v0.7.0 [INFO] [stderr] Downloaded tap v1.0.1 [INFO] [stderr] Downloaded core-foundation v0.9.3 [INFO] [stderr] Downloaded mio-named-pipes v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f51b0a45f67dde4722d33c3fd699d84919225cc0f4b0f43769173643dd88397 [INFO] running `Command { std: "docker" "start" "-a" "2f51b0a45f67dde4722d33c3fd699d84919225cc0f4b0f43769173643dd88397", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f51b0a45f67dde4722d33c3fd699d84919225cc0f4b0f43769173643dd88397", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f51b0a45f67dde4722d33c3fd699d84919225cc0f4b0f43769173643dd88397", kill_on_drop: false }` [INFO] [stdout] 2f51b0a45f67dde4722d33c3fd699d84919225cc0f4b0f43769173643dd88397 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04bc80ba7fb48c1f95a0238654e25d7593dc2f8cc2f1092303d5df937d67071c [INFO] running `Command { std: "docker" "start" "-a" "04bc80ba7fb48c1f95a0238654e25d7593dc2f8cc2f1092303d5df937d67071c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.145 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl-sys v0.9.88 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Compiling openssl v0.10.54 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Compiling rust_decimal v1.29.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking ipnet v2.7.2 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.38 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.163 [INFO] [stderr] Compiling pin-project-internal v1.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking pin-project v1.1.0 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking serde v1.0.163 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking serde_json v1.0.96 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking alpaca-client v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` 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 fields are never read [INFO] [stdout] --> src/last_trade.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | price: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | size: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | exchange: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | cond1: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | cond2: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | cond3: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | cond4: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/last_quote.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Last { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 14 | askprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | asksize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | askexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bidprice: Decimal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | bidsize: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | bidexchange: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 20 | timestamp: u128 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Last` 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `positions` [INFO] [stdout] --> tests/client_position.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let positions:Vec = client.get_open_positions(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positions` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_open_position` is never used [INFO] [stdout] --> tests/client_position.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get_open_position() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_all_positions` is never used [INFO] [stdout] --> tests/client_position.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn close_all_positions() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_position` is never used [INFO] [stdout] --> tests/client_position.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn close_position() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_orders.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | &_client.cancel_order(placed_order.id.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = &_client.cancel_order(placed_order.id.unwrap()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | assert!(result, true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 55 | assert!(result, "{}", true) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 88 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | assert!(result, false); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 94 | assert!(result, "{}", false); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> tests/client_position.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | &client.place_order(new_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = &client.place_order(new_order.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/client_position.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | assert!(result, false) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 136 | assert!(result, "{}", false) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&Uuid` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:42:107 [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(&deserialized.id, uuid::Uuid::from_str("e6fe16f3-64a4-4921-8928-cadf02f92f98").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:44:88 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(&deserialized.buying_power, Decimal::from_str("262113.632").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:46:78 [INFO] [stdout] | [INFO] [stdout] 46 | assert_eq!(&deserialized.cash, Decimal::from_str("-23140.2").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&i32` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:48:77 [INFO] [stdout] | [INFO] [stdout] 48 | assert_eq!(&deserialized.daytrade_count, "0".parse::().unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:49:99 [INFO] [stdout] | [INFO] [stdout] 49 | assert_eq!(&deserialized.daytrading_buying_power, Decimal::from_str("262113.632").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:50:81 [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(&deserialized.equity, Decimal::from_str("103820.56").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:51:88 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(&deserialized.initial_margin, Decimal::from_str("63480.38").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:52:86 [INFO] [stdout] | [INFO] [stdout] 52 | assert_eq!(&deserialized.last_equity, Decimal::from_str("103529.24").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:53:98 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(&deserialized.last_maintenance_margin, Decimal::from_str("38000.832").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:54:92 [INFO] [stdout] | [INFO] [stdout] 54 | assert_eq!(&deserialized.long_market_value, Decimal::from_str("126960.76").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:55:93 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(&deserialized.maintenance_margin, Decimal::from_str("38088.228").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:58:90 [INFO] [stdout] | [INFO] [stdout] 58 | assert_eq!(&deserialized.portfolio_value, Decimal::from_str("103820.56").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:59:91 [INFO] [stdout] | [INFO] [stdout] 59 | assert_eq!(&deserialized.regt_buying_power, Decimal::from_str("80680.36").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&rust_decimal::Decimal` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:60:85 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(&deserialized.short_market_value, Decimal::from_str("0").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&Uuid` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:102:125 [INFO] [stdout] | [INFO] [stdout] 102 | let _optional_uuid = std::option::Option::Some(uuid::Uuid::from_str("904837e3-3b76-47ec-b432-046db621571b").unwrap().borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&Uuid` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:105:55 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(&deserialized.client_order_id, uuid.borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.borrow()` on a double reference, which returns `&Uuid` instead of borrowing the inner type [INFO] [stdout] --> tests/serialization.rs:106:48 [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!(&deserialized.asset_id, uuid.borrow()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.31s [INFO] running `Command { std: "docker" "inspect" "04bc80ba7fb48c1f95a0238654e25d7593dc2f8cc2f1092303d5df937d67071c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04bc80ba7fb48c1f95a0238654e25d7593dc2f8cc2f1092303d5df937d67071c", kill_on_drop: false }` [INFO] [stdout] 04bc80ba7fb48c1f95a0238654e25d7593dc2f8cc2f1092303d5df937d67071c