[INFO] cloning repository https://github.com/pkmuntu/nft-contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pkmuntu/nft-contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpkmuntu%2Fnft-contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpkmuntu%2Fnft-contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4dc4d9a7414bff46036bfe082f753a18e611c046 [INFO] checking pkmuntu/nft-contract against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpkmuntu%2Fnft-contract" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pkmuntu/nft-contract [INFO] finished tweaking git repo https://github.com/pkmuntu/nft-contract [INFO] tweaked toml for git repo https://github.com/pkmuntu/nft-contract written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pkmuntu/nft-contract on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pkmuntu/nft-contract 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded near-account-id v1.0.0 [INFO] [stderr] Downloaded near-token v0.3.0 [INFO] [stderr] Downloaded near-sdk-macros v5.8.1 [INFO] [stderr] Downloaded near-gas v0.3.0 [INFO] [stderr] Downloaded near-sys v0.2.2 [INFO] [stderr] Downloaded near-sdk v5.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8b03d7622fde98e89b92cfeae050baee98c10c0aa82d1a858be230bce899c9ab [INFO] running `Command { std: "docker" "start" "-a" "8b03d7622fde98e89b92cfeae050baee98c10c0aa82d1a858be230bce899c9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b03d7622fde98e89b92cfeae050baee98c10c0aa82d1a858be230bce899c9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b03d7622fde98e89b92cfeae050baee98c10c0aa82d1a858be230bce899c9ab", kill_on_drop: false }` [INFO] [stdout] 8b03d7622fde98e89b92cfeae050baee98c10c0aa82d1a858be230bce899c9ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7bc91982794d3058e5160f23b196febf010552a648258e1756b634cd4eeaea5 [INFO] running `Command { std: "docker" "start" "-a" "b7bc91982794d3058e5160f23b196febf010552a648258e1756b634cd4eeaea5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.7.3 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling borsh v1.5.5 [INFO] [stderr] Compiling near-sdk-macros v5.8.1 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking near-sys v0.2.2 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling borsh-derive v1.5.5 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Checking near-account-id v1.0.0 [INFO] [stderr] Checking near-token v0.3.0 [INFO] [stderr] Checking near-gas v0.3.0 [INFO] [stderr] Checking near-sdk v5.8.1 [INFO] [stderr] Checking nft-contract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use crate::approval::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `NonFungibleTokenCore` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 17 | 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: `crate::mint::*` [INFO] [stdout] --> src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use crate::mint::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::royalty::*` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use crate::royalty::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | /// Since we've already transferred the token and nft_on_transfer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | /// returned false, we don't have to revert the original transfer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | /// and thus we can just return true since nothing went wrong. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | /// [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | /// we refund the owner for releasing the storage used up by the [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 206 | /// approved account IDs [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | /// approved account IDs [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | /// We need to log that the NFT was reverted back to the original owner. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | / let nft_transfer_log: EventLog = EventLog { [INFO] [stdout] 253 | | // Standard name ("nep171"). [INFO] [stdout] 254 | | standard: NFT_STANDARD_NAME.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 270 | | }]), [INFO] [stdout] 271 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | /// the old_owner_id will be the reseiver and the new_owern_id will be the [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 251 | /// original owner of the token since we're reverting the transfer. [INFO] [stdout] 252 | / let nft_transfer_log: EventLog = EventLog { [INFO] [stdout] 253 | | // Standard name ("nep171"). [INFO] [stdout] 254 | | standard: NFT_STANDARD_NAME.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 270 | | }]), [INFO] [stdout] 271 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | /// original owner of the token since we're reverting the transfer. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 252 | / let nft_transfer_log: EventLog = EventLog { [INFO] [stdout] 253 | | // Standard name ("nep171"). [INFO] [stdout] 254 | | standard: NFT_STANDARD_NAME.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 270 | | }]), [INFO] [stdout] 271 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use crate::approval::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `NonFungibleTokenCore` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 17 | 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: `crate::mint::*` [INFO] [stdout] --> src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use crate::mint::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::royalty::*` [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use crate::royalty::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:201:21 [INFO] [stdout] | [INFO] [stdout] 201 | /// Since we've already transferred the token and nft_on_transfer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | /// returned false, we don't have to revert the original transfer [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | /// and thus we can just return true since nothing went wrong. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:204:21 [INFO] [stdout] | [INFO] [stdout] 204 | /// [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:205:21 [INFO] [stdout] | [INFO] [stdout] 205 | /// we refund the owner for releasing the storage used up by the [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 206 | /// approved account IDs [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | /// approved account IDs [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | refund_approved_account_ids(&owner_id, &approved_account_ids); [INFO] [stdout] | ------------------------------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | /// We need to log that the NFT was reverted back to the original owner. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | / let nft_transfer_log: EventLog = EventLog { [INFO] [stdout] 253 | | // Standard name ("nep171"). [INFO] [stdout] 254 | | standard: NFT_STANDARD_NAME.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 270 | | }]), [INFO] [stdout] 271 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | /// the old_owner_id will be the reseiver and the new_owern_id will be the [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 251 | /// original owner of the token since we're reverting the transfer. [INFO] [stdout] 252 | / let nft_transfer_log: EventLog = EventLog { [INFO] [stdout] 253 | | // Standard name ("nep171"). [INFO] [stdout] 254 | | standard: NFT_STANDARD_NAME.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 270 | | }]), [INFO] [stdout] 271 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/nft_core.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | /// original owner of the token since we're reverting the transfer. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 252 | / let nft_transfer_log: EventLog = EventLog { [INFO] [stdout] 253 | | // Standard name ("nep171"). [INFO] [stdout] 254 | | standard: NFT_STANDARD_NAME.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 270 | | }]), [INFO] [stdout] 271 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [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: TokenId, balance: NearToken, max_len_payout: u32) -> Payout { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: TokenId, balance: NearToken, max_len_payout: u32) -> Payout { [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:65 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: TokenId, balance: NearToken, max_len_payout: u32) -> Payout { [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:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | 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:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | 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:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | approval_id: u32, [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:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | memo: Option, [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:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | balance: NearToken, [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:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | 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: trait `NonFungibleTokenCore` is never used [INFO] [stdout] --> src/approval.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait NonFungibleTokenCore { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenApprovalsReceiver` is never used [INFO] [stdout] --> src/approval.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | trait NonFungibleTokenApprovalsReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_for_approved_account_id` is never used [INFO] [stdout] --> src/internal.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn bytes_for_approved_account_id(account_id: &AccountId) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_approved_account_ids_iter` is never used [INFO] [stdout] --> src/internal.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) fn refund_approved_account_ids_iter<'a, I>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_approved_account_ids` is never used [INFO] [stdout] --> src/internal.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) fn refund_approved_account_ids( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_one_yocto` is never used [INFO] [stdout] --> src/internal.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn assert_one_yocto() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_at_least_one_yocto` is never used [INFO] [stdout] --> src/internal.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | pub(crate) fn assert_at_least_one_yocto() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `internal_remove_token_from_owner` and `internal_transfer` are never used [INFO] [stdout] --> src/internal.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 94 | impl Contract { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub(crate) fn internal_remove_token_from_owner( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub(crate) fn internal_transfer( [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::from_tgas(10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_ON_TRANSFER` is never used [INFO] [stdout] --> src/nft_core.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const GAS_FOR_NFT_ON_TRANSFER: Gas = Gas::from_tgas(25); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nft_transfer` and `nft_transfer_call` are never used [INFO] [stdout] --> src/nft_core.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait NonFungibleTokenCore { [INFO] [stdout] | -------------------- methods in this trait [INFO] [stdout] 8 | // transfer an NFT to a receiver ID [INFO] [stdout] 9 | fn nft_transfer( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn nft_transfer_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenReceiver` is never used [INFO] [stdout] --> src/nft_core.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | trait NonFungibleTokenReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenResolver` is never used [INFO] [stdout] --> src/nft_core.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | trait NonFungibleTokenResolver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenCore` is never used [INFO] [stdout] --> src/royalty.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait NonFungibleTokenCore { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [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: TokenId, balance: NearToken, max_len_payout: u32) -> Payout { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `balance` [INFO] [stdout] --> src/royalty.rs:23:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: TokenId, balance: NearToken, max_len_payout: u32) -> Payout { [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:65 [INFO] [stdout] | [INFO] [stdout] 23 | fn nft_payout(&self, token_id: TokenId, balance: NearToken, max_len_payout: u32) -> Payout { [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:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | 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:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | 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:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | approval_id: u32, [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:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | memo: Option, [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:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | balance: NearToken, [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:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | 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: trait `NonFungibleTokenCore` is never used [INFO] [stdout] --> src/approval.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait NonFungibleTokenCore { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenApprovalsReceiver` is never used [INFO] [stdout] --> src/approval.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | trait NonFungibleTokenApprovalsReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_for_approved_account_id` is never used [INFO] [stdout] --> src/internal.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn bytes_for_approved_account_id(account_id: &AccountId) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_approved_account_ids_iter` is never used [INFO] [stdout] --> src/internal.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) fn refund_approved_account_ids_iter<'a, I>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refund_approved_account_ids` is never used [INFO] [stdout] --> src/internal.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) fn refund_approved_account_ids( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_one_yocto` is never used [INFO] [stdout] --> src/internal.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn assert_one_yocto() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assert_at_least_one_yocto` is never used [INFO] [stdout] --> src/internal.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | pub(crate) fn assert_at_least_one_yocto() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `internal_remove_token_from_owner` and `internal_transfer` are never used [INFO] [stdout] --> src/internal.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 94 | impl Contract { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub(crate) fn internal_remove_token_from_owner( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub(crate) fn internal_transfer( [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::from_tgas(10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS_FOR_NFT_ON_TRANSFER` is never used [INFO] [stdout] --> src/nft_core.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const GAS_FOR_NFT_ON_TRANSFER: Gas = Gas::from_tgas(25); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nft_transfer` and `nft_transfer_call` are never used [INFO] [stdout] --> src/nft_core.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait NonFungibleTokenCore { [INFO] [stdout] | -------------------- methods in this trait [INFO] [stdout] 8 | // transfer an NFT to a receiver ID [INFO] [stdout] 9 | fn nft_transfer( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn nft_transfer_call( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenReceiver` is never used [INFO] [stdout] --> src/nft_core.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 38 | trait NonFungibleTokenReceiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenResolver` is never used [INFO] [stdout] --> src/nft_core.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 52 | trait NonFungibleTokenResolver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NonFungibleTokenCore` is never used [INFO] [stdout] --> src/royalty.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait NonFungibleTokenCore { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.70s [INFO] running `Command { std: "docker" "inspect" "b7bc91982794d3058e5160f23b196febf010552a648258e1756b634cd4eeaea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7bc91982794d3058e5160f23b196febf010552a648258e1756b634cd4eeaea5", kill_on_drop: false }` [INFO] [stdout] b7bc91982794d3058e5160f23b196febf010552a648258e1756b634cd4eeaea5