[INFO] cloning repository https://github.com/gigaverselabs/giga721 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gigaverselabs/giga721" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgigaverselabs%2Fgiga721", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgigaverselabs%2Fgiga721'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 409090387556a67c98846c730a4dec543a1b7f9c [INFO] checking gigaverselabs/giga721 against try#42d1facfffa1a5357d6d62815f7be91f8ad69ed8 for pr-95474 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgigaverselabs%2Fgiga721" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gigaverselabs/giga721 on toolchain 42d1facfffa1a5357d6d62815f7be91f8ad69ed8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gigaverselabs/giga721 [INFO] finished tweaking git repo https://github.com/gigaverselabs/giga721 [INFO] tweaked toml for git repo https://github.com/gigaverselabs/giga721 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/gigaverselabs/giga721 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d7e647f5cd685058c4fbf9eafb1cf2e16f246095248c89b02839385bc6151b6 [INFO] running `Command { std: "docker" "start" "-a" "7d7e647f5cd685058c4fbf9eafb1cf2e16f246095248c89b02839385bc6151b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d7e647f5cd685058c4fbf9eafb1cf2e16f246095248c89b02839385bc6151b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d7e647f5cd685058c4fbf9eafb1cf2e16f246095248c89b02839385bc6151b6", kill_on_drop: false }` [INFO] [stdout] 7d7e647f5cd685058c4fbf9eafb1cf2e16f246095248c89b02839385bc6151b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+42d1facfffa1a5357d6d62815f7be91f8ad69ed8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6099bfb782329cb75a519a6943aa42c67534f0a4b62010dbdadf829801cba561 [INFO] running `Command { std: "docker" "start" "-a" "6099bfb782329cb75a519a6943aa42c67534f0a4b62010dbdadf829801cba561", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.78 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling anyhow v1.0.44 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling pico-args v0.4.2 [INFO] [stderr] Compiling beef v0.5.1 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Checking base32 v0.4.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling fastrand v1.6.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking intmap v0.7.1 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Checking pretty v0.10.0 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling string_cache v0.8.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v4.2.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking lalrpop-util v0.19.6 [INFO] [stderr] Compiling lalrpop v0.19.6 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling logos-derive v0.12.0 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling candid_derive v0.4.5 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling logos v0.12.0 [INFO] [stderr] Checking prost-types v0.9.0 [INFO] [stderr] Compiling ledger_proxy v0.1.0 (/opt/rustwide/workdir/ledger_proxy) [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking serde_with v1.10.0 [INFO] [stderr] Checking ic-types v0.2.2 [INFO] [stderr] Checking ic-types v0.1.5 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_tokenstream v0.1.2 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling num_enum_derive v0.5.4 [INFO] [stderr] Compiling num_enum v0.5.4 [INFO] [stderr] Compiling candid v0.7.8 [INFO] [stderr] Checking ic-cdk v0.3.2 [INFO] [stderr] Compiling ic-cdk-macros v0.3.2 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Checking giga721 v0.1.0 (/opt/rustwide/workdir/giga721) [INFO] [stdout] warning: unused imports: `stable_grow`, `stable_read`, `stable_size`, `stable_write` [INFO] [stdout] --> giga721/src/system.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | use ic_cdk::api::stable::{stable_read, stable_write, stable_size, stable_grow}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenDescExt`, `TokenDesc`, `Token` [INFO] [stdout] --> giga721/src/api.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::token::{Token, TokenDesc, TokenDescExt}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `storage` [INFO] [stdout] --> ledger_proxy/src/lib.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use ic_cdk::{caller, trap, id, storage}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CandidType`, `Deserialize` [INFO] [stdout] --> ledger_proxy/src/lib.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::export::candid::{Principal, Decode, CandidType, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryFrom` [INFO] [stdout] --> ledger_proxy/src/account_identifier.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `storage` [INFO] [stdout] --> ledger_proxy/src/lib.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use ic_cdk::{caller, trap, id, storage}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CandidType`, `Deserialize` [INFO] [stdout] --> ledger_proxy/src/lib.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | use ic_cdk::export::candid::{Principal, Decode, CandidType, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryFrom` [INFO] [stdout] --> ledger_proxy/src/account_identifier.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | convert::{TryFrom, TryInto}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `stable_grow`, `stable_read`, `stable_size`, `stable_write` [INFO] [stdout] --> giga721/src/system.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::testing::{stable_read, stable_write, stable_size, stable_grow}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenDescExt`, `TokenDesc`, `Token` [INFO] [stdout] --> giga721/src/api.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::token::{Token, TokenDesc, TokenDescExt}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> giga721/src/storage.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | for i in 0 .. items[0] { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner` [INFO] [stdout] --> giga721/src/marketplace.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let owner = STATE.with(|x| x.borrow_mut().check_owner(token_id, from))?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> giga721/src/marketplace.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let amount = listing.price - fee; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fee` is never read [INFO] [stdout] --> giga721/src/marketplace.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | fee = fee - 10000 - 10000; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> giga721/src/mint.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | async fn mint_id(token_id: u32) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> giga721/src/storage.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | for i in 0 .. items[0] { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owner` [INFO] [stdout] --> giga721/src/marketplace.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let owner = STATE.with(|x| x.borrow_mut().check_owner(token_id, from))?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_owner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> giga721/src/marketplace.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let amount = listing.price - fee; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fee` is never read [INFO] [stdout] --> giga721/src/marketplace.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | fee = fee - 10000 - 10000; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_id` [INFO] [stdout] --> giga721/src/mint.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | async fn mint_id(token_id: u32) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_address` [INFO] [stdout] --> ledger_proxy/src/account_identifier.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn to_address(&self) -> [u8; 32] { [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: `from_address` [INFO] [stdout] --> ledger_proxy/src/account_identifier.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn from_address(blob: [u8; 32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_assets` [INFO] [stdout] --> giga721/src/storage.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | fn load_assets(&mut self) -> Result<(), String> { [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: `mint_token_id` [INFO] [stdout] --> giga721/src/token.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn mint_token_id(&mut self, caller: Principal, token_id: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `purchase` [INFO] [stdout] --> giga721/src/ledger.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn purchase(&mut self, caller: Principal, from: Principal, to: Principal, token_id: u32, price: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ledger_canister` [INFO] [stdout] --> giga721/src/marketplace.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn get_ledger_canister(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_icp` [INFO] [stdout] --> giga721/src/marketplace.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | pub async fn send_icp(&mut self, to: Principal, amount: u64, memo: u64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `purchase` [INFO] [stdout] --> giga721/src/marketplace.rs:143:18 [INFO] [stdout] | [INFO] [stdout] 143 | pub async fn purchase(&mut self, caller: Principal, args: TransactionNotification)-> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/storage.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | self.grow(self.size+vec.len() as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/token.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | MARKETPLACE.with(|x| x.borrow_mut().delist(from, token_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/system.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | StableStorage::get().borrow_mut().init_storage(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/system.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / st.store_state(( [INFO] [stdout] 52 | | &*state.borrow(), [INFO] [stdout] 53 | | &*ledger.borrow(), [INFO] [stdout] 54 | | &*market.borrow() [INFO] [stdout] 55 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_address` [INFO] [stdout] --> ledger_proxy/src/account_identifier.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn to_address(&self) -> [u8; 32] { [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: `from_address` [INFO] [stdout] --> ledger_proxy/src/account_identifier.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn from_address(blob: [u8; 32]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> giga721/src/system.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut st = storage.borrow_mut(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `purchase` [INFO] [stdout] --> giga721/src/ledger.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn purchase(&mut self, caller: Principal, from: Principal, to: Principal, token_id: u32, price: u64) -> u64 { [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: `get_ledger_canister` [INFO] [stdout] --> giga721/src/marketplace.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn get_ledger_canister(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_icp` [INFO] [stdout] --> giga721/src/marketplace.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 109 | pub async fn send_icp(&mut self, to: Principal, amount: u64, memo: u64) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `purchase` [INFO] [stdout] --> giga721/src/marketplace.rs:143:18 [INFO] [stdout] | [INFO] [stdout] 143 | pub async fn purchase(&mut self, caller: Principal, args: TransactionNotification)-> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clear_storage` [INFO] [stdout] --> giga721/src/testing.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn clear_storage() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stable_bytes` [INFO] [stdout] --> giga721/src/testing.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn stable_bytes() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_offset` [INFO] [stdout] --> giga721/src/testing.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn set_offset(&mut self, offset: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/storage.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | self.grow(self.size+vec.len() as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/token.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | MARKETPLACE.with(|x| x.borrow_mut().delist(from, token_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/system.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | StableStorage::get().borrow_mut().init_storage(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> giga721/src/system.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / st.store_state(( [INFO] [stdout] 52 | | &*state.borrow(), [INFO] [stdout] 53 | | &*ledger.borrow(), [INFO] [stdout] 54 | | &*market.borrow() [INFO] [stdout] 55 | | )); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 42.52s [INFO] running `Command { std: "docker" "inspect" "6099bfb782329cb75a519a6943aa42c67534f0a4b62010dbdadf829801cba561", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6099bfb782329cb75a519a6943aa42c67534f0a4b62010dbdadf829801cba561", kill_on_drop: false }` [INFO] [stdout] 6099bfb782329cb75a519a6943aa42c67534f0a4b62010dbdadf829801cba561