[INFO] cloning repository https://github.com/jasperdg/nearyswap [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jasperdg/nearyswap" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjasperdg%2Fnearyswap", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjasperdg%2Fnearyswap'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd71af62564b247d8a6f42eae832a3f8187e186e [INFO] checking jasperdg/nearyswap against master#3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjasperdg%2Fnearyswap" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jasperdg/nearyswap on toolchain 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jasperdg/nearyswap [INFO] finished tweaking git repo https://github.com/jasperdg/nearyswap [INFO] tweaked toml for git repo https://github.com/jasperdg/nearyswap written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/jasperdg/nearyswap already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/jobserver:/tmp/crater-runner-fifo:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 966d473f5827895be92f2eba9aef83e4509237bb3cd8bcf3ca1d235544a3257e [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" "966d473f5827895be92f2eba9aef83e4509237bb3cd8bcf3ca1d235544a3257e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "966d473f5827895be92f2eba9aef83e4509237bb3cd8bcf3ca1d235544a3257e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "966d473f5827895be92f2eba9aef83e4509237bb3cd8bcf3ca1d235544a3257e", kill_on_drop: false }` [INFO] [stdout] 966d473f5827895be92f2eba9aef83e4509237bb3cd8bcf3ca1d235544a3257e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/jobserver:/tmp/crater-runner-fifo:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "RUSTUP_TOOLCHAIN=3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "-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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/tmp/crater-runner-fifo/jobserver-crater-fwd" "/opt/rustwide/cargo-home/bin/cargo" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdc4c6b4ae87877628775d603f6e6e72521d4d3d4fcd333288a508ea95b53450 [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" "fdc4c6b4ae87877628775d603f6e6e72521d4d3d4fcd333288a508ea95b53450", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling hashbrown v0.9.0 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking near-runtime-utils v2.2.0 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Checking bs58 v0.3.1 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking sha3 v0.8.2 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.7.1 [INFO] [stderr] Compiling borsh-derive-internal v0.7.1 [INFO] [stderr] Compiling near-sdk-core v2.0.0 [INFO] [stderr] Compiling borsh-derive v0.7.1 [INFO] [stderr] Compiling near-sdk-macros v2.0.0 [INFO] [stderr] Checking borsh v0.7.1 [INFO] [stderr] Checking near-runtime-fees v2.2.0 [INFO] [stderr] Compiling near-rpc-error-core v0.1.0 [INFO] [stderr] Compiling near-rpc-error-macro v0.1.0 [INFO] [stderr] Checking near-vm-errors v2.2.0 [INFO] [stderr] Checking near-vm-logic v2.2.0 [INFO] [stderr] Checking near-sdk v2.0.0 [INFO] [stderr] Checking nearyswap v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `UnorderedMap`, `Vector` [INFO] [stdout] --> src/pool.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use near_sdk::collections::{UnorderedMap, Vector}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_balance` [INFO] [stdout] --> src/mintable_fungible_token.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let new_balance = cur_balance + amount; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_balance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_balance` [INFO] [stdout] --> src/mintable_fungible_token.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let new_balance = cur_balance + amount; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pool.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut liquidity; [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: constant is never used: `STORAGE_PRICE_PER_BYTE` [INFO] [stdout] --> src/mintable_fungible_token.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const STORAGE_PRICE_PER_BYTE: Balance = 100000000000000000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn set_allowance(&mut self, escrow_account_id: &AccountId, allowance: Balance) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn get_allowance(&self, escrow_account_id: &AccountId) -> Balance { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn inc_allowance(&mut self, escrow_account_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dec_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn dec_allowance(&mut self, escrow_account_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transfer_from` [INFO] [stdout] --> src/mintable_fungible_token.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn transfer_from(&mut self, owner_id: AccountId, new_owner_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transfer` [INFO] [stdout] --> src/mintable_fungible_token.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn transfer(&mut self, new_owner_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_total_supply` [INFO] [stdout] --> src/mintable_fungible_token.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn get_total_supply(&self) -> U128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn get_allowance(&self, owner_id: AccountId, escrow_account_id: AccountId) -> U128 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `burn` [INFO] [stdout] --> src/mintable_fungible_token.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn burn (&mut self, owner_id: &AccountId, amount: u128) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refund_storage` [INFO] [stdout] --> src/mintable_fungible_token.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | fn refund_storage(&self, initial_storage: StorageUsage) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_liquidity` [INFO] [stdout] --> src/pool.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn remove_liquidity(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `UnorderedMap`, `Vector` [INFO] [stdout] --> src/pool.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use near_sdk::collections::{UnorderedMap, Vector}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_balance` [INFO] [stdout] --> src/mintable_fungible_token.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let new_balance = cur_balance + amount; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_balance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_balance` [INFO] [stdout] --> src/mintable_fungible_token.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let new_balance = cur_balance + amount; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pool.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut liquidity; [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: constant is never used: `STORAGE_PRICE_PER_BYTE` [INFO] [stdout] --> src/mintable_fungible_token.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const STORAGE_PRICE_PER_BYTE: Balance = 100000000000000000000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/mintable_fungible_token.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(account_hash: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn set_allowance(&mut self, escrow_account_id: &AccountId, allowance: Balance) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn get_allowance(&self, escrow_account_id: &AccountId) -> Balance { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/mintable_fungible_token.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn inc_allowance(&mut self, escrow_account_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dec_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn dec_allowance(&mut self, escrow_account_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transfer_from` [INFO] [stdout] --> src/mintable_fungible_token.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn transfer_from(&mut self, owner_id: AccountId, new_owner_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `transfer` [INFO] [stdout] --> src/mintable_fungible_token.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn transfer(&mut self, new_owner_id: AccountId, amount: U128) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_total_supply` [INFO] [stdout] --> src/mintable_fungible_token.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn get_total_supply(&self) -> U128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_balance` [INFO] [stdout] --> src/mintable_fungible_token.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn get_balance(&self, owner_id: AccountId) -> U128 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_allowance` [INFO] [stdout] --> src/mintable_fungible_token.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn get_allowance(&self, owner_id: AccountId, escrow_account_id: AccountId) -> U128 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mint` [INFO] [stdout] --> src/mintable_fungible_token.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn mint (&mut self, owner_id: &AccountId, amount: u128) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `burn` [INFO] [stdout] --> src/mintable_fungible_token.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn burn (&mut self, owner_id: &AccountId, amount: u128) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_account` [INFO] [stdout] --> src/mintable_fungible_token.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | fn get_account(&self, owner_id: &AccountId) -> Account { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_account` [INFO] [stdout] --> src/mintable_fungible_token.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | fn set_account(&mut self, owner_id: &AccountId, account: &Account) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refund_storage` [INFO] [stdout] --> src/mintable_fungible_token.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | fn refund_storage(&self, initial_storage: StorageUsage) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/pool.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(token0: AccountId, token1: AccountId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/pool.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(&mut self, new_balance0: u128, new_balance1: u128) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_liquidity` [INFO] [stdout] --> src/pool.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn add_liquidity(&mut self, amount0: U128, amount1: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_liquidity` [INFO] [stdout] --> src/pool.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn remove_liquidity(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `swap_t0_for_t1` [INFO] [stdout] --> src/pool.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn swap_t0_for_t1(&mut self, amount_out: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `swap_t1_for_t0` [INFO] [stdout] --> src/pool.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn swap_t1_for_t0(&mut self, amount_out: U128) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_balance` [INFO] [stdout] --> src/pool.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_balance(&self, owner: AccountId) -> U128 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "fdc4c6b4ae87877628775d603f6e6e72521d4d3d4fcd333288a508ea95b53450", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdc4c6b4ae87877628775d603f6e6e72521d4d3d4fcd333288a508ea95b53450", kill_on_drop: false }` [INFO] [stdout] fdc4c6b4ae87877628775d603f6e6e72521d4d3d4fcd333288a508ea95b53450