[INFO] cloning repository https://github.com/Yangpun39/agri_supply_chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yangpun39/agri_supply_chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYangpun39%2Fagri_supply_chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYangpun39%2Fagri_supply_chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 87611963711203ac7d8c2a8b085f4a7ad366a1f8 [INFO] checking Yangpun39/agri_supply_chain against master#40daf23eeb711dadf140b2536e67e3ff4c999196 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYangpun39%2Fagri_supply_chain" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Yangpun39/agri_supply_chain on toolchain 40daf23eeb711dadf140b2536e67e3ff4c999196 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yangpun39/agri_supply_chain [INFO] finished tweaking git repo https://github.com/Yangpun39/agri_supply_chain [INFO] tweaked toml for git repo https://github.com/Yangpun39/agri_supply_chain written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Yangpun39/agri_supply_chain 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" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wat v1.219.1 [INFO] [stderr] Downloaded wasmtime-jit-debug v19.0.2 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.106.2 [INFO] [stderr] Downloaded wasmtime-versioned-export-macros v19.0.2 [INFO] [stderr] Downloaded ic-stable-structures v0.6.5 [INFO] [stderr] Downloaded wasmtime-jit-icache-coherence v19.0.2 [INFO] [stderr] Downloaded wasmtime-types v19.0.2 [INFO] [stderr] Downloaded wasmtime-wit-bindgen v19.0.2 [INFO] [stderr] Downloaded cranelift-entity v0.106.2 [INFO] [stderr] Downloaded wasmtime-cache v19.0.2 [INFO] [stderr] Downloaded wasmtime-component-macro v19.0.2 [INFO] [stderr] Downloaded wasmtime-cranelift v19.0.2 [INFO] [stderr] Downloaded wit-parser v0.201.0 [INFO] [stderr] Downloaded cpp_demangle v0.4.4 [INFO] [stderr] Downloaded winch-codegen v0.17.2 [INFO] [stderr] Downloaded wast v219.0.1 [INFO] [stderr] Downloaded wasmtime-runtime v19.0.2 [INFO] [stderr] Downloaded cranelift-wasm v0.106.2 [INFO] [stderr] Downloaded wasmparser v0.219.1 [INFO] [stderr] Downloaded wasmparser v0.201.0 [INFO] [stderr] Downloaded syn v2.0.81 [INFO] [stderr] Downloaded wasmtime v19.0.2 [INFO] [stderr] Downloaded wasmtime-environ v19.0.2 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.106.2 [INFO] [stderr] Downloaded cranelift-isle v0.106.2 [INFO] [stderr] Downloaded wasm-encoder v0.219.1 [INFO] [stderr] Downloaded cranelift-frontend v0.106.2 [INFO] [stderr] Downloaded cranelift-bforest v0.106.2 [INFO] [stderr] Downloaded wasm-encoder v0.201.0 [INFO] [stderr] Downloaded wasmprinter v0.201.0 [INFO] [stderr] Downloaded candid-extractor v0.1.4 [INFO] [stderr] Downloaded cranelift-native v0.106.2 [INFO] [stderr] Downloaded cranelift-codegen v0.106.2 [INFO] [stderr] Downloaded wasmtime-component-util v19.0.2 [INFO] [stderr] Downloaded ic-cdk v0.13.5 [INFO] [stderr] Downloaded wasmtime-fiber v19.0.2 [INFO] [stderr] Downloaded wasmtime-slab v19.0.2 [INFO] [stderr] Downloaded wasmtime-cranelift-shared v19.0.2 [INFO] [stderr] Downloaded cranelift-control v0.106.2 [INFO] [stderr] Downloaded wasmtime-winch v19.0.2 [INFO] [stderr] Downloaded wasmtime-asm-macros v19.0.2 [INFO] [stderr] Downloaded wasmtime-wmemcheck v19.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 289d01e99f2b0306ab13e0ec9c376b5ea777b62d9b8e16bba789f22036ffe056 [INFO] running `Command { std: "docker" "start" "-a" "289d01e99f2b0306ab13e0ec9c376b5ea777b62d9b8e16bba789f22036ffe056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "289d01e99f2b0306ab13e0ec9c376b5ea777b62d9b8e16bba789f22036ffe056", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "289d01e99f2b0306ab13e0ec9c376b5ea777b62d9b8e16bba789f22036ffe056", kill_on_drop: false }` [INFO] [stdout] 289d01e99f2b0306ab13e0ec9c376b5ea777b62d9b8e16bba789f22036ffe056 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e95f754f5f354a9c883546475d583a7ce1f15980b899170d29879db868dfa68f [INFO] running `Command { std: "docker" "start" "-a" "e95f754f5f354a9c883546475d583a7ce1f15980b899170d29879db868dfa68f", kill_on_drop: false }` [INFO] [stderr] warning: hack1_backend v0.1.0 (/opt/rustwide/workdir/src/hack1_backend) ignoring invalid dependency `candid-extractor` which is missing a lib target [INFO] [stderr] Compiling proc-macro2 v1.0.88 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Compiling anyhow v1.0.90 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.95 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.95 [INFO] [stderr] Compiling syn v2.0.81 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking ic0 v0.21.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling psm v0.1.23 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.95 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.95 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.7.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 serde_bytes v0.11.15 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking ic-stable-structures v0.6.5 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Checking candid v0.10.10 [INFO] [stderr] Compiling ic-cdk-macros v0.13.2 [INFO] [stderr] Checking ic-cdk v0.13.5 [INFO] [stderr] Checking ic-cdk-timers v0.7.0 [INFO] [stderr] Checking hack1_backend v0.1.0 (/opt/rustwide/workdir/src/hack1_backend) [INFO] [stdout] warning: field `customer` is never read [INFO] [stdout] --> src/hack1_backend/src/store/storage_state.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct ApplicationState { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub customer: StableBTreeMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ESSENTIALS_APP_NAME` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const ESSENTIALS_APP_NAME: &str = "dabarcodes"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING_PRODUCT_EXISTS` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const WARNING_PRODUCT_EXISTS: &str = "Product of this id already exist"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING_EMPLOYEE_EXISTS` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const WARNING_EMPLOYEE_EXISTS: &str = "Employee of this id already exist"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING_STORE_EXISTS` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const WARNING_STORE_EXISTS: &str = "Store of this id already exist"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_PRODUCT_ERROR` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const ERROR_PRODUCT_ERROR: &str = "Product Error: "; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_EMPLOYEE_ERROR` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ERROR_EMPLOYEE_ERROR: &str = "Employee Error: "; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_EMPLOYEE_NOT_REGISTERED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ERROR_EMPLOYEE_NOT_REGISTERED: &str = "Employee id is not registered with the platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_STORE_ERROR` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const ERROR_STORE_ERROR: &str = "STORE Error: "; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_STORE_NOT_REGISTERED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const ERROR_STORE_NOT_REGISTERED: &str = "Store id is not registered with the platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_PRODUCT_UPDATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const SUCCESS_PRODUCT_UPDATED: &str = "product successfully updated"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_PRODUCT_CREATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const SUCCESS_PRODUCT_CREATED: &str = "product successfully created"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_EMPLOYEE_UPDATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const SUCCESS_EMPLOYEE_UPDATED: &str = "Employee successfully updated"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_EMPLOYEE_CREATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const SUCCESS_EMPLOYEE_CREATED: &str = "Employee successfully created"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_STORE_CREATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const SUCCESS_STORE_CREATED: &str = "Store successfully created"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_STORE_UPDATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const SUCCESS_STORE_UPDATED: &str = "Store successfully updated"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/distributor.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/retailer_types.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/customer.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/product.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/farmer.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/agriculture.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 15 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `customer` is never read [INFO] [stdout] --> src/hack1_backend/src/store/storage_state.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct ApplicationState { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub customer: StableBTreeMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ESSENTIALS_APP_NAME` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const ESSENTIALS_APP_NAME: &str = "dabarcodes"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING_PRODUCT_EXISTS` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const WARNING_PRODUCT_EXISTS: &str = "Product of this id already exist"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING_EMPLOYEE_EXISTS` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const WARNING_EMPLOYEE_EXISTS: &str = "Employee of this id already exist"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARNING_STORE_EXISTS` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const WARNING_STORE_EXISTS: &str = "Store of this id already exist"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_PRODUCT_ERROR` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const ERROR_PRODUCT_ERROR: &str = "Product Error: "; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_EMPLOYEE_ERROR` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const ERROR_EMPLOYEE_ERROR: &str = "Employee Error: "; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_EMPLOYEE_NOT_REGISTERED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ERROR_EMPLOYEE_NOT_REGISTERED: &str = "Employee id is not registered with the platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_STORE_ERROR` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const ERROR_STORE_ERROR: &str = "STORE Error: "; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ERROR_STORE_NOT_REGISTERED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const ERROR_STORE_NOT_REGISTERED: &str = "Store id is not registered with the platform"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_PRODUCT_UPDATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const SUCCESS_PRODUCT_UPDATED: &str = "product successfully updated"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_PRODUCT_CREATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const SUCCESS_PRODUCT_CREATED: &str = "product successfully created"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_EMPLOYEE_UPDATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const SUCCESS_EMPLOYEE_UPDATED: &str = "Employee successfully updated"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_EMPLOYEE_CREATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const SUCCESS_EMPLOYEE_CREATED: &str = "Employee successfully created"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_STORE_CREATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const SUCCESS_STORE_CREATED: &str = "Store successfully created"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUCCESS_STORE_UPDATED` is never used [INFO] [stdout] --> src/hack1_backend/src/utils/constants.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const SUCCESS_STORE_UPDATED: &str = "Store successfully updated"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/distributor.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/retailer_types.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/customer.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/product.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | fn to_bytes(&self) -> std::borrow::Cow<[u8]> { [INFO] [stdout] | ^^^^^ ---------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 25 | fn to_bytes(&self) -> std::borrow::Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/farmer.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 16 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/hack1_backend/src/models/agriculture.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | fn to_bytes(&self) -> Cow<[u8]> { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 15 | fn to_bytes(&self) -> Cow<'_, [u8]> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.08s [INFO] running `Command { std: "docker" "inspect" "e95f754f5f354a9c883546475d583a7ce1f15980b899170d29879db868dfa68f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e95f754f5f354a9c883546475d583a7ce1f15980b899170d29879db868dfa68f", kill_on_drop: false }` [INFO] [stdout] e95f754f5f354a9c883546475d583a7ce1f15980b899170d29879db868dfa68f