[INFO] cloning repository https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBCDS-on-github%2FNEARmetaBUILD_Hackathon_SmartContract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBCDS-on-github%2FNEARmetaBUILD_Hackathon_SmartContract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] efb755f9e90bd09f036ddd2caa45cb00c6a15382 [INFO] building BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBCDS-on-github%2FNEARmetaBUILD_Hackathon_SmartContract" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 70% (1033/1456) Updating files: 71% (1034/1456) Updating files: 72% (1049/1456) Updating files: 73% (1063/1456) Updating files: 74% (1078/1456) Updating files: 75% (1092/1456) Updating files: 76% (1107/1456) Updating files: 77% (1122/1456) Updating files: 78% (1136/1456) Updating files: 79% (1151/1456) Updating files: 80% (1165/1456) Updating files: 81% (1180/1456) Updating files: 82% (1194/1456) Updating files: 83% (1209/1456) Updating files: 84% (1224/1456) Updating files: 85% (1238/1456) Updating files: 86% (1253/1456) Updating files: 87% (1267/1456) Updating files: 88% (1282/1456) Updating files: 89% (1296/1456) Updating files: 90% (1311/1456) Updating files: 91% (1325/1456) Updating files: 92% (1340/1456) Updating files: 93% (1355/1456) Updating files: 94% (1369/1456) Updating files: 95% (1384/1456) Updating files: 96% (1398/1456) Updating files: 97% (1413/1456) Updating files: 98% (1427/1456) Updating files: 99% (1442/1456) Updating files: 100% (1456/1456) Updating files: 100% (1456/1456), done. [INFO] started tweaking git repo https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract [INFO] finished tweaking git repo https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract [INFO] tweaked toml for git repo https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/BCDS-on-github/NEARmetaBUILD_Hackathon_SmartContract already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sha2 v0.9.3 [INFO] [stderr] Downloaded borsh-derive-internal v0.8.1 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.8.1 [INFO] [stderr] Downloaded borsh-derive v0.8.1 [INFO] [stderr] Downloaded borsh v0.8.1 [INFO] [stderr] Downloaded num-bigint v0.3.1 [INFO] [stderr] Downloaded serde_json v1.0.62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42e92a4e979ed7e86e51ceff1bbcbbc8f1751923d7db2ef3183d825cea30ed9c [INFO] running `Command { std: "docker" "start" "-a" "42e92a4e979ed7e86e51ceff1bbcbbc8f1751923d7db2ef3183d825cea30ed9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42e92a4e979ed7e86e51ceff1bbcbbc8f1751923d7db2ef3183d825cea30ed9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42e92a4e979ed7e86e51ceff1bbcbbc8f1751923d7db2ef3183d825cea30ed9c", kill_on_drop: false }` [INFO] [stdout] 42e92a4e979ed7e86e51ceff1bbcbbc8f1751923d7db2ef3183d825cea30ed9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] b1ceb7132df0941e6db2aaaf4da2103ac0cd826b58f9cffc6119e5d66f274b99 [INFO] running `Command { std: "docker" "start" "-a" "b1ceb7132df0941e6db2aaaf4da2103ac0cd826b58f9cffc6119e5d66f274b99", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling memory_units v0.4.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling near-sys v0.1.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive-internal v0.8.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.1 [INFO] [stderr] Compiling borsh-derive v0.8.1 [INFO] [stderr] Compiling near-sdk-macros v4.0.0-pre.4 [INFO] [stderr] Compiling borsh v0.8.1 [INFO] [stderr] Compiling near-sdk v4.0.0-pre.4 [INFO] [stderr] Compiling nft_simple v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PromiseOrValue` [INFO] [stdout] --> src/lib.rs:7:81 [INFO] [stdout] | [INFO] [stdout] 7 | env, near_bindgen, AccountId, Balance, CryptoHash, PanicOnDefault, Promise, PromiseOrValue, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internal::*` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::internal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use crate::nft_core::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `NonFungibleTokenCore` in the type namespace is first re-exported here [INFO] [stdout] 14 | pub use crate::approval::*; [INFO] [stdout] 15 | pub use crate::royalty::*; [INFO] [stdout] | ----------------- but the name `NonFungibleTokenCore` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/internal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PromiseResult` and `log` [INFO] [stdout] --> src/nft_core.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use near_sdk::{ext_contract, log, Gas, PromiseResult}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_id` [INFO] [stdout] --> src/approval.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/approval.rs:43:73 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approved_account_id` [INFO] [stdout] --> src/approval.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | approved_account_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approved_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approval_id` [INFO] [stdout] --> src/approval.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | approval_id: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approval_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | fn nft_revoke(&mut self, token_id: TokenId, account_id: AccountId) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_id` [INFO] [stdout] --> src/approval.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | fn nft_revoke(&mut self, token_id: TokenId, account_id: AccountId) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | fn nft_revoke_all(&mut self, token_id: TokenId) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/nft_core.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | memo: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/nft_core.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | memo: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/nft_core.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | msg: String, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_id` [INFO] [stdout] --> src/nft_core.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | owner_id: AccountId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/royalty.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len_payout` [INFO] [stdout] --> src/royalty.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len_payout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/royalty.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/royalty.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approval_id` [INFO] [stdout] --> src/royalty.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | approval_id: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approval_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/royalty.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | memo: String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | balance: U128, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len_payout` [INFO] [stdout] --> src/royalty.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | max_len_payout: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len_payout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_deposit` is never used [INFO] [stdout] --> src/internal.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) fn refund_deposit(storage_used: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_APPROVE` is never used [INFO] [stdout] --> src/approval.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GAS_FOR_NFT_APPROVE: Gas = Gas(10_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_DEPOSIT` is never used [INFO] [stdout] --> src/approval.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NO_DEPOSIT: Balance = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_RESOLVE_TRANSFER` is never used [INFO] [stdout] --> src/nft_core.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GAS_FOR_RESOLVE_TRANSFER: Gas = Gas(10_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_TRANSFER_CALL` is never used [INFO] [stdout] --> src/nft_core.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const GAS_FOR_NFT_TRANSFER_CALL: Gas = Gas(25_000_000_000_000 + GAS_FOR_RESOLVE_TRANSFER.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_DEPOSIT` is never used [INFO] [stdout] --> src/nft_core.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NO_DEPOSIT: Balance = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.62s [INFO] running `Command { std: "docker" "inspect" "b1ceb7132df0941e6db2aaaf4da2103ac0cd826b58f9cffc6119e5d66f274b99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1ceb7132df0941e6db2aaaf4da2103ac0cd826b58f9cffc6119e5d66f274b99", kill_on_drop: false }` [INFO] [stdout] b1ceb7132df0941e6db2aaaf4da2103ac0cd826b58f9cffc6119e5d66f274b99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] f7702e9101a7452a71f3c93179a82e30225cd189c186e406d9fc31a847c57458 [INFO] running `Command { std: "docker" "start" "-a" "f7702e9101a7452a71f3c93179a82e30225cd189c186e406d9fc31a847c57458", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `PromiseOrValue` [INFO] [stdout] --> src/lib.rs:7:81 [INFO] [stdout] | [INFO] [stdout] 7 | env, near_bindgen, AccountId, Balance, CryptoHash, PanicOnDefault, Promise, PromiseOrValue, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internal::*` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::internal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use crate::nft_core::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `NonFungibleTokenCore` in the type namespace is first re-exported here [INFO] [stdout] 14 | pub use crate::approval::*; [INFO] [stdout] 15 | pub use crate::royalty::*; [INFO] [stdout] | ----------------- but the name `NonFungibleTokenCore` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/internal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PromiseResult` and `log` [INFO] [stdout] --> src/nft_core.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use near_sdk::{ext_contract, log, Gas, PromiseResult}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_id` [INFO] [stdout] --> src/approval.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/approval.rs:43:73 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approved_account_id` [INFO] [stdout] --> src/approval.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | approved_account_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approved_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approval_id` [INFO] [stdout] --> src/approval.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | approval_id: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approval_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | fn nft_revoke(&mut self, token_id: TokenId, account_id: AccountId) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_id` [INFO] [stdout] --> src/approval.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | fn nft_revoke(&mut self, token_id: TokenId, account_id: AccountId) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | fn nft_revoke_all(&mut self, token_id: TokenId) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/nft_core.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | memo: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/nft_core.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | memo: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/nft_core.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | msg: String, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_id` [INFO] [stdout] --> src/nft_core.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | owner_id: AccountId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/royalty.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len_payout` [INFO] [stdout] --> src/royalty.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len_payout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/royalty.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/royalty.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approval_id` [INFO] [stdout] --> src/royalty.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | approval_id: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approval_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/royalty.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | memo: String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | balance: U128, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len_payout` [INFO] [stdout] --> src/royalty.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | max_len_payout: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len_payout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_deposit` is never used [INFO] [stdout] --> src/internal.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) fn refund_deposit(storage_used: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_APPROVE` is never used [INFO] [stdout] --> src/approval.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GAS_FOR_NFT_APPROVE: Gas = Gas(10_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_DEPOSIT` is never used [INFO] [stdout] --> src/approval.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NO_DEPOSIT: Balance = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_RESOLVE_TRANSFER` is never used [INFO] [stdout] --> src/nft_core.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GAS_FOR_RESOLVE_TRANSFER: Gas = Gas(10_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_TRANSFER_CALL` is never used [INFO] [stdout] --> src/nft_core.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const GAS_FOR_NFT_TRANSFER_CALL: Gas = Gas(25_000_000_000_000 + GAS_FOR_RESOLVE_TRANSFER.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_DEPOSIT` is never used [INFO] [stdout] --> src/nft_core.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NO_DEPOSIT: Balance = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nft_simple v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PromiseOrValue` [INFO] [stdout] --> src/lib.rs:7:81 [INFO] [stdout] | [INFO] [stdout] 7 | env, near_bindgen, AccountId, Balance, CryptoHash, PanicOnDefault, Promise, PromiseOrValue, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::internal::*` [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::internal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use crate::nft_core::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `NonFungibleTokenCore` in the type namespace is first re-exported here [INFO] [stdout] 14 | pub use crate::approval::*; [INFO] [stdout] 15 | pub use crate::royalty::*; [INFO] [stdout] | ----------------- but the name `NonFungibleTokenCore` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/internal.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PromiseResult` and `log` [INFO] [stdout] --> src/nft_core.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use near_sdk::{ext_contract, log, Gas, PromiseResult}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_id` [INFO] [stdout] --> src/approval.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/approval.rs:43:73 [INFO] [stdout] | [INFO] [stdout] 43 | fn nft_approve(&mut self, token_id: TokenId, account_id: AccountId, msg: Option) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approved_account_id` [INFO] [stdout] --> src/approval.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | approved_account_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approved_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approval_id` [INFO] [stdout] --> src/approval.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | approval_id: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approval_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | fn nft_revoke(&mut self, token_id: TokenId, account_id: AccountId) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_id` [INFO] [stdout] --> src/approval.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | fn nft_revoke(&mut self, token_id: TokenId, account_id: AccountId) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/approval.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | fn nft_revoke_all(&mut self, token_id: TokenId) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/nft_core.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | memo: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/nft_core.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | memo: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/nft_core.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | msg: String, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner_id` [INFO] [stdout] --> src/nft_core.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | owner_id: AccountId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owner_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/nft_core.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/nft_core.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/royalty.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:23:44 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len_payout` [INFO] [stdout] --> src/royalty.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: String, balance: U128, max_len_payout: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len_payout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver_id` [INFO] [stdout] --> src/royalty.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | receiver_id: AccountId, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> src/royalty.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | token_id: TokenId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `approval_id` [INFO] [stdout] --> src/royalty.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | approval_id: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_approval_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/royalty.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | memo: String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | balance: U128, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_len_payout` [INFO] [stdout] --> src/royalty.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | max_len_payout: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len_payout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_deposit` is never used [INFO] [stdout] --> src/internal.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) fn refund_deposit(storage_used: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_APPROVE` is never used [INFO] [stdout] --> src/approval.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GAS_FOR_NFT_APPROVE: Gas = Gas(10_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_DEPOSIT` is never used [INFO] [stdout] --> src/approval.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const NO_DEPOSIT: Balance = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_RESOLVE_TRANSFER` is never used [INFO] [stdout] --> src/nft_core.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const GAS_FOR_RESOLVE_TRANSFER: Gas = Gas(10_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_TRANSFER_CALL` is never used [INFO] [stdout] --> src/nft_core.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const GAS_FOR_NFT_TRANSFER_CALL: Gas = Gas(25_000_000_000_000 + GAS_FOR_RESOLVE_TRANSFER.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NO_DEPOSIT` is never used [INFO] [stdout] --> src/nft_core.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const NO_DEPOSIT: Balance = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.89s [INFO] running `Command { std: "docker" "inspect" "f7702e9101a7452a71f3c93179a82e30225cd189c186e406d9fc31a847c57458", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7702e9101a7452a71f3c93179a82e30225cd189c186e406d9fc31a847c57458", kill_on_drop: false }` [INFO] [stdout] f7702e9101a7452a71f3c93179a82e30225cd189c186e406d9fc31a847c57458