[INFO] cloning repository https://github.com/jeremyletang/niceish_price_bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jeremyletang/niceish_price_bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeremyletang%2Fniceish_price_bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeremyletang%2Fniceish_price_bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4fcc889076a1f3baf760702c79decb39598a0bdf [INFO] building jeremyletang/niceish_price_bot against master#d59f06fc64844ec2073e5e888f7470989ef25ff9 for pr-119440 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeremyletang%2Fniceish_price_bot" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jeremyletang/niceish_price_bot on toolchain d59f06fc64844ec2073e5e888f7470989ef25ff9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jeremyletang/niceish_price_bot [INFO] finished tweaking git repo https://github.com/jeremyletang/niceish_price_bot [INFO] tweaked toml for git repo https://github.com/jeremyletang/niceish_price_bot written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jeremyletang/niceish_price_bot 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" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/jeremyletang/vega-rust-sdk` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tonic-build v0.10.2 [INFO] [stderr] Downloaded prost-types v0.12.1 [INFO] [stderr] Downloaded ct-codecs v1.1.1 [INFO] [stderr] Downloaded prost-build v0.12.1 [INFO] [stderr] Downloaded prost-derive v0.12.1 [INFO] [stderr] Downloaded prost v0.12.1 [INFO] [stderr] Downloaded ed25519-compact v2.0.4 [INFO] [stderr] Downloaded regex v1.9.4 [INFO] [stderr] Downloaded regex-automata v0.3.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80db6f83dcd3ad8b0ed5956b61cd88e2fc32ef7b0d41130ef5fe4a9a9566b1f9 [INFO] running `Command { std: "docker" "start" "-a" "80db6f83dcd3ad8b0ed5956b61cd88e2fc32ef7b0d41130ef5fe4a9a9566b1f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80db6f83dcd3ad8b0ed5956b61cd88e2fc32ef7b0d41130ef5fe4a9a9566b1f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80db6f83dcd3ad8b0ed5956b61cd88e2fc32ef7b0d41130ef5fe4a9a9566b1f9", kill_on_drop: false }` [INFO] [stdout] 80db6f83dcd3ad8b0ed5956b61cd88e2fc32ef7b0d41130ef5fe4a9a9566b1f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 601271c4e7b1bce79e4b7489d34320326bf1a39d42acdda5ef02155f4b899e4f [INFO] running `Command { std: "docker" "start" "-a" "601271c4e7b1bce79e4b7489d34320326bf1a39d42acdda5ef02155f4b899e4f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling anyhow v1.0.69 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling prettyplease v0.2.15 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling autotools v0.2.5 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling petgraph v0.6.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling protobuf-src v1.1.0+21.5 [INFO] [stderr] Compiling regex-automata v0.3.7 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling prost-derive v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling regex v1.9.4 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling futures-macro v0.3.26 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling prost v0.12.1 [INFO] [stderr] Compiling prost-types v0.12.1 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling prost-build v0.12.1 [INFO] [stderr] Compiling io-lifetimes v1.0.5 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling tonic-build v0.10.2 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling tokio-util v0.7.7 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling matchit v0.7.0 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling rustix v0.36.8 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling unicode-bidi v0.3.10 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling bitcoin_hashes v0.11.0 [INFO] [stderr] Compiling keccak v0.1.4 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling ct-codecs v1.1.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ed25519-compact v2.0.4 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling bip39 v2.0.0 [INFO] [stderr] Compiling clap_lex v0.3.1 [INFO] [stderr] Compiling is-terminal v0.4.3 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling clap_derive v4.1.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling futures-executor v0.3.26 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling tungstenite v0.18.0 [INFO] [stderr] Compiling futures v0.3.26 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling tonic v0.10.2 [INFO] [stderr] Compiling clap v4.1.4 [INFO] [stderr] Compiling vega_protobufs v0.1.0 (https://github.com/jeremyletang/vega-rust-sdk#b0501a8a) [INFO] [stderr] Compiling vega_crypto v0.1.0 (https://github.com/jeremyletang/vega-rust-sdk#b0501a8a) [INFO] [stderr] Compiling nice_prices_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/strategy2.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | use vega_protobufs::vega::{Asset, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/strategy2.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let d = Decimals::new(&mkt, &asset); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position_factor`, `price_factor`, and `asset_factor` are never read [INFO] [stdout] --> src/strategy2.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 388 | struct Decimals { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 389 | position_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 390 | price_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 391 | asset_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `from_asset_precision`, `from_market_price_precision`, `from_market_position_precision`, `to_market_price_precision`, and `to_market_position_precision` are never used [INFO] [stdout] --> src/strategy2.rs:403:8 [INFO] [stdout] | [INFO] [stdout] 394 | impl Decimals { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 403 | fn from_asset_precision(&self, amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 407 | fn from_market_price_precision(&self, price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | fn from_market_position_precision(&self, position: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | fn to_market_price_precision(&self, price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | fn to_market_position_precision(&self, position: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_assets` is never used [INFO] [stdout] --> src/vega_store2.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl VegaStore { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn get_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 53s [INFO] running `Command { std: "docker" "inspect" "601271c4e7b1bce79e4b7489d34320326bf1a39d42acdda5ef02155f4b899e4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "601271c4e7b1bce79e4b7489d34320326bf1a39d42acdda5ef02155f4b899e4f", kill_on_drop: false }` [INFO] [stdout] 601271c4e7b1bce79e4b7489d34320326bf1a39d42acdda5ef02155f4b899e4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d59f06fc64844ec2073e5e888f7470989ef25ff9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3967164113f1484e50d8f7376626d83ad897cb6270e2345c0b3114c39df14f1f [INFO] running `Command { std: "docker" "start" "-a" "3967164113f1484e50d8f7376626d83ad897cb6270e2345c0b3114c39df14f1f", kill_on_drop: false }` [INFO] [stderr] Compiling nice_prices_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> src/strategy2.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | use vega_protobufs::vega::{Asset, Position}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/strategy2.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let d = Decimals::new(&mkt, &asset); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position_factor`, `price_factor`, and `asset_factor` are never read [INFO] [stdout] --> src/strategy2.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 388 | struct Decimals { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 389 | position_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 390 | price_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 391 | asset_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `from_asset_precision`, `from_market_price_precision`, `from_market_position_precision`, `to_market_price_precision`, and `to_market_position_precision` are never used [INFO] [stdout] --> src/strategy2.rs:403:8 [INFO] [stdout] | [INFO] [stdout] 394 | impl Decimals { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 403 | fn from_asset_precision(&self, amount: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 407 | fn from_market_price_precision(&self, price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | fn from_market_position_precision(&self, position: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | fn to_market_price_precision(&self, price: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 419 | fn to_market_position_precision(&self, position: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_assets` is never used [INFO] [stdout] --> src/vega_store2.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl VegaStore { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn get_assets(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.35s [INFO] running `Command { std: "docker" "inspect" "3967164113f1484e50d8f7376626d83ad897cb6270e2345c0b3114c39df14f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3967164113f1484e50d8f7376626d83ad897cb6270e2345c0b3114c39df14f1f", kill_on_drop: false }` [INFO] [stdout] 3967164113f1484e50d8f7376626d83ad897cb6270e2345c0b3114c39df14f1f