[INFO] cloning repository https://github.com/kusa-sekai/uniswap_v3_offchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kusa-sekai/uniswap_v3_offchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkusa-sekai%2Funiswap_v3_offchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkusa-sekai%2Funiswap_v3_offchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a7e9caab63adbb86d41f404f7220223119bb78b [INFO] building kusa-sekai/uniswap_v3_offchain against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkusa-sekai%2Funiswap_v3_offchain" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kusa-sekai/uniswap_v3_offchain on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kusa-sekai/uniswap_v3_offchain [INFO] finished tweaking git repo https://github.com/kusa-sekai/uniswap_v3_offchain [INFO] tweaked toml for git repo https://github.com/kusa-sekai/uniswap_v3_offchain written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kusa-sekai/uniswap_v3_offchain 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed8d62b14b62e7bdec3f068c7a752119b7732300b8dd15931b0777d96a3bc8f8 [INFO] running `Command { std: "docker" "start" "-a" "ed8d62b14b62e7bdec3f068c7a752119b7732300b8dd15931b0777d96a3bc8f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed8d62b14b62e7bdec3f068c7a752119b7732300b8dd15931b0777d96a3bc8f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed8d62b14b62e7bdec3f068c7a752119b7732300b8dd15931b0777d96a3bc8f8", kill_on_drop: false }` [INFO] [stdout] ed8d62b14b62e7bdec3f068c7a752119b7732300b8dd15931b0777d96a3bc8f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2be0ce2c33708dcd581f28c43359cafb40899e141a0120568a14ddfb3d5703b0 [INFO] running `Command { std: "docker" "start" "-a" "2be0ce2c33708dcd581f28c43359cafb40899e141a0120568a14ddfb3d5703b0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling uniswap_v3_offchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `current_sqrt_price` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let current_sqrt_price = pool.sqrt_price; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_sqrt_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | fn close(mut self, mut pool: Pool, mut account: Account) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_b_amount` is never read [INFO] [stdout] --> src/main.rs:226:17 [INFO] [stdout] | [INFO] [stdout] 226 | remaining_b_amount -= delta_y; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_b_amount` is never read [INFO] [stdout] --> src/main.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | remaining_b_amount -= delta_y; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | let mut next_tick_sqrt_price: f64 = get_sqrt_price_at_tick(pool.current_tick_index + 1); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | let mut delta_y: f64 = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:233:25 [INFO] [stdout] | [INFO] [stdout] 233 | let mut delta_x: f64 = liquidity as f64 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | let mut curret_tick_index = pool.current_tick_index; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:245:33 [INFO] [stdout] | [INFO] [stdout] 245 | if let Some(mut next_tick) = next_tick_opinion { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_a_address`, `token_b_address`, and `tick_spacing` are never read [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Pool { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | token_a_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | token_b_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | tick_spacing: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_address`, `upper_tick_index`, `lower_tick_index`, and `liquidity` are never read [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 29 | account_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | upper_tick_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | lower_tick_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | liquidity: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | fn close(mut self, mut pool: Pool, mut account: Account) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | Position::new(&mut pool, &mut account, 11, 0, 10000000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 296 | let _ = Position::new(&mut pool, &mut account, 11, 0, 10000000); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | Position::new(&mut pool, &mut account, 3, 0, 10000000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 299 | let _ = Position::new(&mut pool, &mut account, 3, 0, 10000000); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | account.swap_b_to_a(&mut pool, 1000 as f64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 301 | let _ = account.swap_b_to_a(&mut pool, 1000 as f64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.05s [INFO] running `Command { std: "docker" "inspect" "2be0ce2c33708dcd581f28c43359cafb40899e141a0120568a14ddfb3d5703b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2be0ce2c33708dcd581f28c43359cafb40899e141a0120568a14ddfb3d5703b0", kill_on_drop: false }` [INFO] [stdout] 2be0ce2c33708dcd581f28c43359cafb40899e141a0120568a14ddfb3d5703b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4da07b68be146fd7bbc3e92273e38fcb394ffe355c7ed61a6f7d5fd4ef1ee2f3 [INFO] running `Command { std: "docker" "start" "-a" "4da07b68be146fd7bbc3e92273e38fcb394ffe355c7ed61a6f7d5fd4ef1ee2f3", kill_on_drop: false }` [INFO] [stderr] Compiling uniswap_v3_offchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `current_sqrt_price` [INFO] [stdout] --> src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let current_sqrt_price = pool.sqrt_price; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_sqrt_price` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | fn close(mut self, mut pool: Pool, mut account: Account) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_b_amount` is never read [INFO] [stdout] --> src/main.rs:226:17 [INFO] [stdout] | [INFO] [stdout] 226 | remaining_b_amount -= delta_y; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_b_amount` is never read [INFO] [stdout] --> src/main.rs:260:21 [INFO] [stdout] | [INFO] [stdout] 260 | remaining_b_amount -= delta_y; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | let mut next_tick_sqrt_price: f64 = get_sqrt_price_at_tick(pool.current_tick_index + 1); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | let mut delta_y: f64 = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:233:25 [INFO] [stdout] | [INFO] [stdout] 233 | let mut delta_x: f64 = liquidity as f64 [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 241 | let mut curret_tick_index = pool.current_tick_index; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:245:33 [INFO] [stdout] | [INFO] [stdout] 245 | if let Some(mut next_tick) = next_tick_opinion { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `token_a_address`, `token_b_address`, and `tick_spacing` are never read [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Pool { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | token_a_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | token_b_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | tick_spacing: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `account_address`, `upper_tick_index`, `lower_tick_index`, and `liquidity` are never read [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 29 | account_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | upper_tick_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | lower_tick_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | liquidity: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `close` is never used [INFO] [stdout] --> src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | fn close(mut self, mut pool: Pool, mut account: Account) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | Position::new(&mut pool, &mut account, 11, 0, 10000000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 296 | let _ = Position::new(&mut pool, &mut account, 11, 0, 10000000); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 299 | Position::new(&mut pool, &mut account, 3, 0, 10000000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 299 | let _ = Position::new(&mut pool, &mut account, 3, 0, 10000000); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | account.swap_b_to_a(&mut pool, 1000 as f64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 301 | let _ = account.swap_b_to_a(&mut pool, 1000 as f64); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "4da07b68be146fd7bbc3e92273e38fcb394ffe355c7ed61a6f7d5fd4ef1ee2f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4da07b68be146fd7bbc3e92273e38fcb394ffe355c7ed61a6f7d5fd4ef1ee2f3", kill_on_drop: false }` [INFO] [stdout] 4da07b68be146fd7bbc3e92273e38fcb394ffe355c7ed61a6f7d5fd4ef1ee2f3