[INFO] cloning repository https://github.com/kripanshudixit20/trade_bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kripanshudixit20/trade_bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkripanshudixit20%2Ftrade_bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkripanshudixit20%2Ftrade_bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e2a93eed43ee5fd08a89f046e92b8fe5c71dc53d [INFO] checking kripanshudixit20/trade_bot against try#b20a093d9fb1ffaa04ae9852cb034864a992bafd for pr-85073 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkripanshudixit20%2Ftrade_bot" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kripanshudixit20/trade_bot on toolchain b20a093d9fb1ffaa04ae9852cb034864a992bafd [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b20a093d9fb1ffaa04ae9852cb034864a992bafd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kripanshudixit20/trade_bot [INFO] finished tweaking git repo https://github.com/kripanshudixit20/trade_bot [INFO] tweaked toml for git repo https://github.com/kripanshudixit20/trade_bot written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/kripanshudixit20/trade_bot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b20a093d9fb1ffaa04ae9852cb034864a992bafd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+b20a093d9fb1ffaa04ae9852cb034864a992bafd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5efdcabff628f924597340d8896e2fb14520514c76eacc59b9ee40f7796e4fa9 [INFO] running `Command { std: "docker" "start" "-a" "5efdcabff628f924597340d8896e2fb14520514c76eacc59b9ee40f7796e4fa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5efdcabff628f924597340d8896e2fb14520514c76eacc59b9ee40f7796e4fa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5efdcabff628f924597340d8896e2fb14520514c76eacc59b9ee40f7796e4fa9", kill_on_drop: false }` [INFO] [stdout] 5efdcabff628f924597340d8896e2fb14520514c76eacc59b9ee40f7796e4fa9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+b20a093d9fb1ffaa04ae9852cb034864a992bafd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b59d3b745c14eccbdd49f01c1f56307067ed9a0861c45a68b54873cb123fa5d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5b59d3b745c14eccbdd49f01c1f56307067ed9a0861c45a68b54873cb123fa5d", kill_on_drop: false }` [INFO] [stderr] Checking trade_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `getBalance` [INFO] [stdout] --> functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn getBalance() -> f64 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getMarketPrice` [INFO] [stdout] --> functions.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn getMarketPrice() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `placeSellOrder` [INFO] [stdout] --> functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn placeSellOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `placeBuyOrder` [INFO] [stdout] --> functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn placeBuyOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getOperationDetails` [INFO] [stdout] --> functions.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn getOperationDetails( ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `startBot` [INFO] [stdout] --> functions.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn startBot() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BUY_THRESHOLD` [INFO] [stdout] --> main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | static mut BUY_THRESHOLD: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `DIP_THRESHOLD` [INFO] [stdout] --> main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | static mut DIP_THRESHOLD: f64 = -2.25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `UPWARD_TREND_THRESHOLD` [INFO] [stdout] --> main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static mut UPWARD_TREND_THRESHOLD: f64 = 1.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `PROFIT_THESHOLD` [INFO] [stdout] --> main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | static mut PROFIT_THESHOLD: f64 = 1.25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `STOP_LOSS_THRESHOLD` [INFO] [stdout] --> main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | static mut STOP_LOSS_THRESHOLD: f64 = -2.00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `lastOpPrice` [INFO] [stdout] --> main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | static mut lastOpPrice: f64 = 100.00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `isNextOperationBuy` [INFO] [stdout] --> main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | static mut isNextOperationBuy: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `StateOfBot` [INFO] [stdout] --> main.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum StateOfBot { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `TryToBuy` [INFO] [stdout] --> main.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn TryToBuy(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `TryToSell` [INFO] [stdout] --> main.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe fn TryToSell(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `AttemptToMakeTrade` [INFO] [stdout] --> main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe fn AttemptToMakeTrade() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lastOpPrice` should have an upper case name [INFO] [stdout] --> main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | static mut lastOpPrice: f64 = 100.00; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LAST_OP_PRICE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `isNextOperationBuy` should have an upper case name [INFO] [stdout] --> main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | static mut isNextOperationBuy: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `IS_NEXT_OPERATION_BUY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TryToBuy` should have a snake case name [INFO] [stdout] --> main.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn TryToBuy(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `try_to_buy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `percentageDiff` should have a snake case name [INFO] [stdout] --> main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn TryToBuy(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `percentage_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TryToSell` should have a snake case name [INFO] [stdout] --> main.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe fn TryToSell(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `try_to_sell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `percentageDiff` should have a snake case name [INFO] [stdout] --> main.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe fn TryToSell(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `percentage_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AttemptToMakeTrade` should have a snake case name [INFO] [stdout] --> main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe fn AttemptToMakeTrade() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `attempt_to_make_trade` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentPrice` should have a snake case name [INFO] [stdout] --> main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let currentPrice: f64 = functions::getMarketPrice(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `percentageDiff` should have a snake case name [INFO] [stdout] --> main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let percentageDiff: f64 = (currentPrice - lastOpPrice) / (lastOpPrice * 100.0); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `percentage_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getBalance` should have a snake case name [INFO] [stdout] --> functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn getBalance() -> f64 [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getMarketPrice` should have a snake case name [INFO] [stdout] --> functions.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn getMarketPrice() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_market_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeSellOrder` should have a snake case name [INFO] [stdout] --> functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn placeSellOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `place_sell_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeBuyOrder` should have a snake case name [INFO] [stdout] --> functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn placeBuyOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `place_buy_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getOperationDetails` should have a snake case name [INFO] [stdout] --> functions.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn getOperationDetails( ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_operation_details` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `startBot` should have a snake case name [INFO] [stdout] --> functions.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn startBot() [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getBalance` [INFO] [stdout] --> functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn getBalance() -> f64 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getMarketPrice` [INFO] [stdout] --> functions.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn getMarketPrice() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `placeSellOrder` [INFO] [stdout] --> functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn placeSellOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `placeBuyOrder` [INFO] [stdout] --> functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn placeBuyOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getOperationDetails` [INFO] [stdout] --> functions.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn getOperationDetails( ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `startBot` [INFO] [stdout] --> functions.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn startBot() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `BUY_THRESHOLD` [INFO] [stdout] --> main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | static mut BUY_THRESHOLD: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `DIP_THRESHOLD` [INFO] [stdout] --> main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | static mut DIP_THRESHOLD: f64 = -2.25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `UPWARD_TREND_THRESHOLD` [INFO] [stdout] --> main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | static mut UPWARD_TREND_THRESHOLD: f64 = 1.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `PROFIT_THESHOLD` [INFO] [stdout] --> main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | static mut PROFIT_THESHOLD: f64 = 1.25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `STOP_LOSS_THRESHOLD` [INFO] [stdout] --> main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | static mut STOP_LOSS_THRESHOLD: f64 = -2.00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `lastOpPrice` [INFO] [stdout] --> main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | static mut lastOpPrice: f64 = 100.00; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `isNextOperationBuy` [INFO] [stdout] --> main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | static mut isNextOperationBuy: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `StateOfBot` [INFO] [stdout] --> main.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum StateOfBot { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `TryToBuy` [INFO] [stdout] --> main.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn TryToBuy(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `TryToSell` [INFO] [stdout] --> main.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe fn TryToSell(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `AttemptToMakeTrade` [INFO] [stdout] --> main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe fn AttemptToMakeTrade() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `lastOpPrice` should have an upper case name [INFO] [stdout] --> main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | static mut lastOpPrice: f64 = 100.00; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LAST_OP_PRICE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `isNextOperationBuy` should have an upper case name [INFO] [stdout] --> main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | static mut isNextOperationBuy: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `IS_NEXT_OPERATION_BUY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TryToBuy` should have a snake case name [INFO] [stdout] --> main.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn TryToBuy(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `try_to_buy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `percentageDiff` should have a snake case name [INFO] [stdout] --> main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn TryToBuy(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `percentage_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `TryToSell` should have a snake case name [INFO] [stdout] --> main.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe fn TryToSell(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `try_to_sell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `percentageDiff` should have a snake case name [INFO] [stdout] --> main.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | unsafe fn TryToSell(percentageDiff: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `percentage_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `AttemptToMakeTrade` should have a snake case name [INFO] [stdout] --> main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe fn AttemptToMakeTrade() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `attempt_to_make_trade` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentPrice` should have a snake case name [INFO] [stdout] --> main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let currentPrice: f64 = functions::getMarketPrice(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `percentageDiff` should have a snake case name [INFO] [stdout] --> main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let percentageDiff: f64 = (currentPrice - lastOpPrice) / (lastOpPrice * 100.0); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `percentage_diff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getBalance` should have a snake case name [INFO] [stdout] --> functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn getBalance() -> f64 [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getMarketPrice` should have a snake case name [INFO] [stdout] --> functions.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn getMarketPrice() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_market_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeSellOrder` should have a snake case name [INFO] [stdout] --> functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn placeSellOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `place_sell_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeBuyOrder` should have a snake case name [INFO] [stdout] --> functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn placeBuyOrder() -> f64 [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `place_buy_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getOperationDetails` should have a snake case name [INFO] [stdout] --> functions.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn getOperationDetails( ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_operation_details` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `startBot` should have a snake case name [INFO] [stdout] --> functions.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn startBot() [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_bot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "5b59d3b745c14eccbdd49f01c1f56307067ed9a0861c45a68b54873cb123fa5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b59d3b745c14eccbdd49f01c1f56307067ed9a0861c45a68b54873cb123fa5d", kill_on_drop: false }` [INFO] [stdout] 5b59d3b745c14eccbdd49f01c1f56307067ed9a0861c45a68b54873cb123fa5d