[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] testing jasperdg/nearyswap against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjasperdg%2Fnearyswap" "/workspace/builds/worker-61/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-61/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jasperdg/nearyswap on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-61/source/rust-toolchain [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-61/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" "+beta-2022-04-10" "fetch" "--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/builds/worker-61/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ad937ee0a4668635b3696524ddcd62c2f1ea31e5dc4224ac4f6e65248efbd96d [INFO] running `Command { std: "docker" "start" "-a" "ad937ee0a4668635b3696524ddcd62c2f1ea31e5dc4224ac4f6e65248efbd96d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad937ee0a4668635b3696524ddcd62c2f1ea31e5dc4224ac4f6e65248efbd96d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad937ee0a4668635b3696524ddcd62c2f1ea31e5dc4224ac4f6e65248efbd96d", kill_on_drop: false }` [INFO] [stdout] ad937ee0a4668635b3696524ddcd62c2f1ea31e5dc4224ac4f6e65248efbd96d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c846698ec8270ad20dc2d504a2f710dc66f203bccbc3b9412efeb75e7073b62 [INFO] running `Command { std: "docker" "start" "-a" "4c846698ec8270ad20dc2d504a2f710dc66f203bccbc3b9412efeb75e7073b62", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.21 [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 hashbrown v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling near-runtime-utils v2.2.0 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling memory_units v0.4.0 [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 byteorder v1.3.4 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling sha3 v0.8.2 [INFO] [stderr] Compiling quote v1.0.7 [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] Compiling borsh v0.7.1 [INFO] [stderr] Compiling 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] Compiling near-vm-errors v2.2.0 [INFO] [stderr] Compiling near-vm-logic v2.2.0 [INFO] [stderr] Compiling near-sdk v2.0.0 [INFO] [stderr] Compiling 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.48s [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] running `Command { std: "docker" "inspect" "4c846698ec8270ad20dc2d504a2f710dc66f203bccbc3b9412efeb75e7073b62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c846698ec8270ad20dc2d504a2f710dc66f203bccbc3b9412efeb75e7073b62", kill_on_drop: false }` [INFO] [stdout] 4c846698ec8270ad20dc2d504a2f710dc66f203bccbc3b9412efeb75e7073b62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64634a4335dfc2bb3141967e57697e9a013191bb57bf1c1a1cbb02b65a78fe78 [INFO] running `Command { std: "docker" "start" "-a" "64634a4335dfc2bb3141967e57697e9a013191bb57bf1c1a1cbb02b65a78fe78", 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] [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] [stderr] Compiling nearyswap v0.1.0 (/opt/rustwide/workdir) [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] [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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.81s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/nearyswap-72d1c3dc0c8971c9) [INFO] running `Command { std: "docker" "inspect" "64634a4335dfc2bb3141967e57697e9a013191bb57bf1c1a1cbb02b65a78fe78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64634a4335dfc2bb3141967e57697e9a013191bb57bf1c1a1cbb02b65a78fe78", kill_on_drop: false }` [INFO] [stdout] 64634a4335dfc2bb3141967e57697e9a013191bb57bf1c1a1cbb02b65a78fe78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-61/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 318217f783a693f131bbbe17bde45550b904d84cda6613f313f2b5eb457fd9e4 [INFO] running `Command { std: "docker" "start" "-a" "318217f783a693f131bbbe17bde45550b904d84cda6613f313f2b5eb457fd9e4", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `UnorderedMap`, `Vector` [INFO] [stderr] --> src/pool.rs:3:29 [INFO] [stderr] | [INFO] [stderr] 3 | use near_sdk::collections::{UnorderedMap, Vector}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_balance` [INFO] [stderr] --> src/mintable_fungible_token.rs:230:13 [INFO] [stderr] | [INFO] [stderr] 230 | let new_balance = cur_balance + amount; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_balance` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `new_balance` [INFO] [stderr] --> src/mintable_fungible_token.rs:242:13 [INFO] [stderr] | [INFO] [stderr] 242 | let new_balance = cur_balance + amount; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_balance` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/pool.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | let mut liquidity; [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `STORAGE_PRICE_PER_BYTE` [INFO] [stderr] --> src/mintable_fungible_token.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | const STORAGE_PRICE_PER_BYTE: Balance = 100000000000000000000; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/mintable_fungible_token.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn new(account_hash: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_allowance` [INFO] [stderr] --> src/mintable_fungible_token.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn set_allowance(&mut self, escrow_account_id: &AccountId, allowance: Balance) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_allowance` [INFO] [stderr] --> src/mintable_fungible_token.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn get_allowance(&self, escrow_account_id: &AccountId) -> Balance { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/mintable_fungible_token.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `inc_allowance` [INFO] [stderr] --> src/mintable_fungible_token.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn inc_allowance(&mut self, escrow_account_id: AccountId, amount: U128) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `dec_allowance` [INFO] [stderr] --> src/mintable_fungible_token.rs:121:12 [INFO] [stderr] | [INFO] [stderr] 121 | pub fn dec_allowance(&mut self, escrow_account_id: AccountId, amount: U128) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `transfer_from` [INFO] [stderr] --> src/mintable_fungible_token.rs:148:12 [INFO] [stderr] | [INFO] [stderr] 148 | pub fn transfer_from(&mut self, owner_id: AccountId, new_owner_id: AccountId, amount: U128) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `transfer` [INFO] [stderr] --> src/mintable_fungible_token.rs:199:12 [INFO] [stderr] | [INFO] [stderr] 199 | pub fn transfer(&mut self, new_owner_id: AccountId, amount: U128) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_total_supply` [INFO] [stderr] --> src/mintable_fungible_token.rs:206:12 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn get_total_supply(&self) -> U128 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_balance` [INFO] [stderr] --> src/mintable_fungible_token.rs:211:12 [INFO] [stderr] | [INFO] [stderr] 211 | pub fn get_balance(&self, owner_id: AccountId) -> U128 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_allowance` [INFO] [stderr] --> src/mintable_fungible_token.rs:220:12 [INFO] [stderr] | [INFO] [stderr] 220 | pub fn get_allowance(&self, owner_id: AccountId, escrow_account_id: AccountId) -> U128 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mint` [INFO] [stderr] --> src/mintable_fungible_token.rs:228:12 [INFO] [stderr] | [INFO] [stderr] 228 | pub fn mint (&mut self, owner_id: &AccountId, amount: u128) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `burn` [INFO] [stderr] --> src/mintable_fungible_token.rs:239:12 [INFO] [stderr] | [INFO] [stderr] 239 | pub fn burn (&mut self, owner_id: &AccountId, amount: u128) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_account` [INFO] [stderr] --> src/mintable_fungible_token.rs:254:8 [INFO] [stderr] | [INFO] [stderr] 254 | fn get_account(&self, owner_id: &AccountId) -> Account { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_account` [INFO] [stderr] --> src/mintable_fungible_token.rs:261:8 [INFO] [stderr] | [INFO] [stderr] 261 | fn set_account(&mut self, owner_id: &AccountId, account: &Account) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `refund_storage` [INFO] [stderr] --> src/mintable_fungible_token.rs:270:8 [INFO] [stderr] | [INFO] [stderr] 270 | fn refund_storage(&self, initial_storage: StorageUsage) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/pool.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn new(token0: AccountId, token1: AccountId) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update` [INFO] [stderr] --> src/pool.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | fn update(&mut self, new_balance0: u128, new_balance1: u128) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_liquidity` [INFO] [stderr] --> src/pool.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn add_liquidity(&mut self, amount0: U128, amount1: U128) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove_liquidity` [INFO] [stderr] --> src/pool.rs:74:12 [INFO] [stderr] | [INFO] [stderr] 74 | pub fn remove_liquidity(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `swap_t0_for_t1` [INFO] [stderr] --> src/pool.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 89 | pub fn swap_t0_for_t1(&mut self, amount_out: U128) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `swap_t1_for_t0` [INFO] [stderr] --> src/pool.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn swap_t1_for_t0(&mut self, amount_out: U128) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_balance` [INFO] [stderr] --> src/pool.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn get_balance(&self, owner: AccountId) -> U128 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `nearyswap` (lib) generated 28 warnings [INFO] [stderr] warning: `nearyswap` (lib test) generated 16 warnings (16 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nearyswap-72d1c3dc0c8971c9) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::pool_test::init ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests nearyswap [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "318217f783a693f131bbbe17bde45550b904d84cda6613f313f2b5eb457fd9e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "318217f783a693f131bbbe17bde45550b904d84cda6613f313f2b5eb457fd9e4", kill_on_drop: false }` [INFO] [stdout] 318217f783a693f131bbbe17bde45550b904d84cda6613f313f2b5eb457fd9e4