[INFO] cloning repository https://github.com/Wow11One/Tokenmania [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wow11One/Tokenmania" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6da57aec22a44cc8b368300994ea65ebd4fad13f [INFO] checking Wow11One/Tokenmania against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWow11One%2FTokenmania" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Wow11One/Tokenmania [INFO] finished tweaking git repo https://github.com/Wow11One/Tokenmania [INFO] tweaked toml for git repo https://github.com/Wow11One/Tokenmania written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Wow11One/Tokenmania on toolchain a5689b034ad287112f709693384a37f1377eb9cc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Wow11One/Tokenmania 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" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3 [INFO] running `Command { std: "docker" "start" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking ic0 v0.23.0 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking base32 v0.4.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Compiling psm v0.1.23 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking ic_principal v0.1.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Checking ic-stable-structures v0.6.5 [INFO] [stderr] Checking candid v0.10.10 [INFO] [stderr] Checking icrc-ledger-types v0.1.6 [INFO] [stderr] Compiling ic-cdk-macros v0.16.0 [INFO] [stderr] Compiling ic-cdk-macros v0.13.3 [INFO] [stderr] Checking ic-cdk v0.16.0 [INFO] [stderr] Checking ic-cdk-timers v0.10.0 [INFO] [stderr] Checking icrc2 v0.1.0 (/opt/rustwide/workdir/icrc2) [INFO] [stderr] Checking nft v0.1.0 (/opt/rustwide/workdir/nft) [INFO] [stderr] Checking storage v0.1.0 (/opt/rustwide/workdir/storage) [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> nft/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ic_cdk::storage; [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 imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> nft/lib.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> storage/lib.rs:2:55 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk::{api::management_canister::http_request::{self, http_request, CanisterHttpRequestArgument, HttpHeader, HttpMethod}, init,... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> storage/lib.rs:196:68 [INFO] [stdout] | [INFO] [stdout] 196 | result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 196 - result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] 196 + result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| format!("Minting res: {:?}", r)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let nfts = NFTS_TEMPLATES.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let ownership = OWNERSHIP.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::storage` [INFO] [stdout] --> nft/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ic_cdk::storage; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | let ownership_map = OWNERSHIP.as_mut().ok_or("Ownership map is uninitialized")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | / OWNERSHIP [INFO] [stdout] 102 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let ownership_map = OWNERSHIP.as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | let nft_templates = NFTS_TEMPLATES.as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> nft/lib.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:141:34 [INFO] [stdout] | [INFO] [stdout] 141 | if let Some(templates) = NFTS_TEMPLATES.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | match &NFTS_TEMPLATES { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const NFTS_TEMPLATES { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caller` [INFO] [stdout] --> icrc2/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let caller = ic_cdk::caller().to_string(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 40 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let token = unsafe { TOKEN.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 61 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | let token = unsafe { TOKEN.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let token = unsafe { TOKEN.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 97 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | let token = unsafe { TOKEN.as_ref().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | let token = unsafe { TOKEN.as_ref().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> storage/lib.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | let encoded_image = base64::encode(&image); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> storage/lib.rs:2:55 [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk::{api::management_canister::http_request::{self, http_request, CanisterHttpRequestArgument, HttpHeader, HttpMethod}, init,... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> storage/lib.rs:196:68 [INFO] [stdout] | [INFO] [stdout] 196 | result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 196 - result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| (format!("Minting res: {:?}", r))) [INFO] [stdout] 196 + result.map_err(|e| format!("Minting failed: {:?}", e)).map(|r| format!("Minting res: {:?}", r)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `caller` [INFO] [stdout] --> icrc2/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let caller = ic_cdk::caller().to_string(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_caller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> icrc2/lib.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 110 | Some(x) => println!("Result"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 40 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let token = unsafe { TOKEN.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 61 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 61 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 68 | let token = unsafe { TOKEN.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let token = unsafe { TOKEN.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:97:15 [INFO] [stdout] | [INFO] [stdout] 97 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 97 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> storage/lib.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | let encoded_image = base64::encode(&image); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | let token = unsafe { TOKEN.as_ref().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | match &TOKEN { [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | match &raw const TOKEN { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> icrc2/lib.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | let token = unsafe { TOKEN.as_ref().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let nfts = NFTS_TEMPLATES.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let ownership = OWNERSHIP.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | let ownership_map = OWNERSHIP.as_mut().ok_or("Ownership map is uninitialized")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | / OWNERSHIP [INFO] [stdout] 102 | | .as_ref() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let ownership_map = OWNERSHIP.as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | let nft_templates = NFTS_TEMPLATES.as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> nft/lib.rs:141:34 [INFO] [stdout] | [INFO] [stdout] 141 | if let Some(templates) = NFTS_TEMPLATES.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> nft/lib.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | match &NFTS_TEMPLATES { [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const NFTS_TEMPLATES { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::vec::Vec` [INFO] [stdout] --> backend/types.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / Encode!(&self) [INFO] [stdout] 42 | | .expect("failed to serialize Configuration") [INFO] [stdout] 43 | | .into(), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 42 - .expect("failed to serialize Configuration") [INFO] [stdout] 43 - .into(), [INFO] [stdout] 42 + .expect("failed to serialize Configuration"), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 41 ~ as Into<_>>::into(Encode!(&self) [INFO] [stdout] 42 ~ .expect("failed to serialize Configuration")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::vec::Vec` [INFO] [stdout] --> backend/types.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | / Encode!(&self.0) [INFO] [stdout] 61 | | .expect("failed to serialize Transaction") [INFO] [stdout] 62 | | .into(), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 61 - .expect("failed to serialize Transaction") [INFO] [stdout] 62 - .into(), [INFO] [stdout] 61 + .expect("failed to serialize Transaction"), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 60 ~ as Into<_>>::into(Encode!(&self.0) [INFO] [stdout] 61 ~ .expect("failed to serialize Transaction")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::vec::Vec` [INFO] [stdout] --> backend/types.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | / Encode!(&self) [INFO] [stdout] 42 | | .expect("failed to serialize Configuration") [INFO] [stdout] 43 | | .into(), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 42 - .expect("failed to serialize Configuration") [INFO] [stdout] 43 - .into(), [INFO] [stdout] 42 + .expect("failed to serialize Configuration"), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 41 ~ as Into<_>>::into(Encode!(&self) [INFO] [stdout] 42 ~ .expect("failed to serialize Configuration")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: useless conversion to the same type: `std::vec::Vec` [INFO] [stdout] --> backend/types.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | / Encode!(&self.0) [INFO] [stdout] 61 | | .expect("failed to serialize Transaction") [INFO] [stdout] 62 | | .into(), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this method call relies on the `impl Into for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors [INFO] [stdout] help: consider removing the conversion call [INFO] [stdout] | [INFO] [stdout] 61 - .expect("failed to serialize Transaction") [INFO] [stdout] 62 - .into(), [INFO] [stdout] 61 + .expect("failed to serialize Transaction"), [INFO] [stdout] | [INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint [INFO] [stdout] | [INFO] [stdout] 60 ~ as Into<_>>::into(Encode!(&self.0) [INFO] [stdout] 61 ~ .expect("failed to serialize Transaction")), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> storage/lib.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl RecycleData { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(location: String, comment: String, image: Vec, principal_id: String, created_at: u128) -> Self { [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 `DIP20_CANISTER_ID` is never used [INFO] [stdout] --> storage/lib.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const DIP20_CANISTER_ID: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_API_KEY` is never used [INFO] [stdout] --> storage/lib.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const GEMINI_API_KEY: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reward_user` is never used [INFO] [stdout] --> storage/lib.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | async fn reward_user(user: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_image_with_gemini` is never used [INFO] [stdout] --> storage/lib.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | async fn validate_image_with_gemini( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `backend` (lib test) due to 2 previous errors [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | let users = USERS.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | USERS.as_ref().unwrap().get(&principal_id).cloned() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | BRANDS.as_ref().unwrap().get(&brand_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | let brands = BRANDS.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | BRANDS.as_ref().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let brands = BRANDS.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | let users = USERS.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(users) = USERS.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> storage/lib.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl RecycleData { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 60 | pub fn new(location: String, comment: String, image: Vec, principal_id: String, created_at: u128) -> Self { [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 `DIP20_CANISTER_ID` is never used [INFO] [stdout] --> storage/lib.rs:84:7 [INFO] [stdout] | [INFO] [stdout] 84 | const DIP20_CANISTER_ID: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMINI_API_KEY` is never used [INFO] [stdout] --> storage/lib.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | const GEMINI_API_KEY: &str = "bw4dl-smaaa-aaaaa-qaacq-cai"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reward_user` is never used [INFO] [stdout] --> storage/lib.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | async fn reward_user(user: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_image_with_gemini` is never used [INFO] [stdout] --> storage/lib.rs:199:10 [INFO] [stdout] | [INFO] [stdout] 199 | async fn validate_image_with_gemini( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 98 | let users = USERS.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | USERS.as_ref().unwrap().get(&principal_id).cloned() [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | BRANDS.as_ref().unwrap().get(&brand_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | let brands = BRANDS.as_mut().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | BRANDS.as_ref().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let brands = BRANDS.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> storage/lib.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 154 | let users = USERS.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> storage/lib.rs:171:30 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(users) = USERS.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `ic-cdk-timers` [INFO] [stderr] --> backend/Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | ic-cdk-timers = "0.10.0" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `ic-cdk-timers` [INFO] [stderr] warning: `backend` (manifest) generated 1 warning [INFO] [stderr] warning: unused dependency `ic-cdk-timers` [INFO] [stderr] --> icrc2/Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | ic-cdk-timers = "0.10.0" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `ic-cdk-timers` [INFO] [stderr] warning: unused dependency `ic-stable-structures` [INFO] [stderr] --> icrc2/Cargo.toml:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | ic-stable-structures = "0.6.5" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `ic-stable-structures` [INFO] [stderr] warning: unused dependency `icrc-ledger-types` [INFO] [stderr] --> icrc2/Cargo.toml:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | icrc-ledger-types = "0.1.6" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `icrc-ledger-types` [INFO] [stderr] warning: `icrc2` (manifest) generated 3 warnings [INFO] [stderr] warning: unused dependency `ic-cdk-timers` [INFO] [stderr] --> nft/Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | ic-cdk-timers = "0.10.0" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `ic-cdk-timers` [INFO] [stderr] warning: unused dependency `ic-stable-structures` [INFO] [stderr] --> nft/Cargo.toml:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | ic-stable-structures = "0.6.5" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `ic-stable-structures` [INFO] [stderr] warning: unused dependency `icrc-ledger-types` [INFO] [stderr] --> nft/Cargo.toml:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | icrc-ledger-types = "0.1.6" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `icrc-ledger-types` [INFO] [stderr] warning: `nft` (manifest) generated 3 warnings [INFO] [stderr] warning: unused dependency `ic-cdk-timers` [INFO] [stderr] --> storage/Cargo.toml:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | ic-cdk-timers = "0.10.0" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `ic-cdk-timers` [INFO] [stderr] warning: unused dependency `ic-stable-structures` [INFO] [stderr] --> storage/Cargo.toml:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | ic-stable-structures = "0.6.5" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `ic-stable-structures` [INFO] [stderr] warning: unused dependency `icrc-ledger-types` [INFO] [stderr] --> storage/Cargo.toml:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | icrc-ledger-types = "0.1.6" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider removing the dependency on `icrc-ledger-types` [INFO] [stderr] warning: `storage` (manifest) generated 3 warnings [INFO] running `Command { std: "docker" "inspect" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3", kill_on_drop: false }` [INFO] [stdout] e844b1b2dadfec9bf70ef9b1084a49833bec725915b315ac599ad7b324ded3f3