[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjasperdg%2Fnearyswap" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jasperdg/nearyswap on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-11/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-11/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84c2c83a6c8cd219213714e65cb49b07b609d9148f10d19f8d380217daadb34b [INFO] running `Command { std: "docker" "start" "-a" "84c2c83a6c8cd219213714e65cb49b07b609d9148f10d19f8d380217daadb34b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84c2c83a6c8cd219213714e65cb49b07b609d9148f10d19f8d380217daadb34b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84c2c83a6c8cd219213714e65cb49b07b609d9148f10d19f8d380217daadb34b", kill_on_drop: false }` [INFO] [stdout] 84c2c83a6c8cd219213714e65cb49b07b609d9148f10d19f8d380217daadb34b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d27ad21c2a7125d6ea03461a4f54d041343b13447f9bf1ab3539db69d9320c5 [INFO] running `Command { std: "docker" "start" "-a" "7d27ad21c2a7125d6ea03461a4f54d041343b13447f9bf1ab3539db69d9320c5", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] serde_json v1.0.57: indexmap, preserve_order [INFO] [stderr] [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking bs58 v0.3.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking near-runtime-utils v2.2.0 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking digest v0.8.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 block-buffer v0.7.3 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking sha3 v0.8.2 [INFO] [stderr] Compiling borsh-derive-internal v0.7.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.7.1 [INFO] [stderr] Compiling near-sdk-core v2.0.0 [INFO] [stderr] Compiling serde_derive v1.0.116 [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 serde v1.0.116 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/pool.rs (2 fixes) [INFO] [stderr] Fixed src/mintable_fungible_token.rs (2 fixes) [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: 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: 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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 45.37s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking serde_json v1.0.57 [INFO] [stderr] Checking near-sdk v2.0.0 [INFO] [stderr] Checking nearyswap v0.1.0 (/tmp/fixit) [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: 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: 24 warnings emitted [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: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.12s [INFO] running `Command { std: "docker" "inspect" "7d27ad21c2a7125d6ea03461a4f54d041343b13447f9bf1ab3539db69d9320c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d27ad21c2a7125d6ea03461a4f54d041343b13447f9bf1ab3539db69d9320c5", kill_on_drop: false }` [INFO] [stdout] 7d27ad21c2a7125d6ea03461a4f54d041343b13447f9bf1ab3539db69d9320c5