[INFO] cloning repository https://github.com/Johnycrown/weather_contract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Johnycrown/weather_contract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohnycrown%2Fweather_contract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohnycrown%2Fweather_contract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eaa3b07a7318520f87bf4f18f0b9e05313a862e5 [INFO] checking Johnycrown/weather_contract/eaa3b07a7318520f87bf4f18f0b9e05313a862e5 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJohnycrown%2Fweather_contract" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Johnycrown/weather_contract on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Johnycrown/weather_contract [INFO] finished tweaking git repo https://github.com/Johnycrown/weather_contract [INFO] tweaked toml for git repo https://github.com/Johnycrown/weather_contract written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Johnycrown/weather_contract already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.91 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.91 [INFO] [stderr] Downloaded ic0 v0.18.11 [INFO] [stderr] Downloaded ena v0.14.2 [INFO] [stderr] Downloaded candid_derive v0.6.5 [INFO] [stderr] Downloaded dirs-next v2.0.0 [INFO] [stderr] Downloaded serde_tokenstream v0.1.7 [INFO] [stderr] Downloaded ic_principal v0.1.1 [INFO] [stderr] Downloaded candid v0.10.3 [INFO] [stderr] Downloaded ic-stable-structures v0.5.6 [INFO] [stderr] Downloaded candid v0.8.4 [INFO] [stderr] Downloaded js-sys v0.3.68 [INFO] [stderr] Downloaded indexmap v2.2.2 [INFO] [stderr] Downloaded openssl-sys v0.9.99 [INFO] [stderr] Downloaded winnow v0.5.36 [INFO] [stderr] Downloaded petgraph v0.6.4 [INFO] [stderr] Downloaded wasm-bindgen v0.2.91 [INFO] [stderr] Downloaded hyper v0.14.28 [INFO] [stderr] Downloaded lalrpop v0.19.12 [INFO] [stderr] Downloaded h2 v0.3.24 [INFO] [stderr] Downloaded openssl v0.10.63 [INFO] [stderr] Downloaded reqwest v0.11.24 [INFO] [stderr] Downloaded anyhow v1.0.79 [INFO] [stderr] Downloaded binread v2.2.0 [INFO] [stderr] Downloaded diff v0.1.13 [INFO] [stderr] Downloaded term v0.7.0 [INFO] [stderr] Downloaded rustix v0.38.31 [INFO] [stderr] Downloaded logos-derive v0.12.1 [INFO] [stderr] Downloaded pretty v0.10.0 [INFO] [stderr] Downloaded ic-cdk v0.7.4 [INFO] [stderr] Downloaded tempfile v3.10.0 [INFO] [stderr] Downloaded pretty v0.12.3 [INFO] [stderr] Downloaded data-encoding v2.5.0 [INFO] [stderr] Downloaded lalrpop-util v0.19.12 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.41 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.91 [INFO] [stderr] Downloaded ic-cdk-timers v0.1.2 [INFO] [stderr] Downloaded ic-cdk-macros v0.8.4 [INFO] [stderr] Downloaded web-sys v0.3.68 [INFO] [stderr] Downloaded binread_derive v2.1.0 [INFO] [stderr] Downloaded candid_derive v0.5.0 [INFO] [stderr] Downloaded ascii-canvas v3.0.0 [INFO] [stderr] Downloaded string_cache v0.8.7 [INFO] [stderr] Downloaded logos v0.12.1 [INFO] [stderr] Downloaded typed-arena v2.0.2 [INFO] [stderr] Downloaded tokio v1.36.0 [INFO] [stderr] Downloaded ic-cdk-macros v0.6.10 [INFO] [stderr] Downloaded beef v0.5.2 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0c0adf76b7d88b845e0c5ec12fd96aaa78afad8e9af415332e7295a726ff1ef [INFO] running `Command { std: "docker" "start" "-a" "a0c0adf76b7d88b845e0c5ec12fd96aaa78afad8e9af415332e7295a726ff1ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0c0adf76b7d88b845e0c5ec12fd96aaa78afad8e9af415332e7295a726ff1ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0c0adf76b7d88b845e0c5ec12fd96aaa78afad8e9af415332e7295a726ff1ef", kill_on_drop: false }` [INFO] [stdout] a0c0adf76b7d88b845e0c5ec12fd96aaa78afad8e9af415332e7295a726ff1ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0946c830fb1c158a35f03ef021e31564b9c4a00681aec16193b9fd19b2e595f [INFO] running `Command { std: "docker" "start" "-a" "c0946c830fb1c158a35f03ef021e31564b9c4a00681aec16193b9fd19b2e595f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling indexmap v2.2.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling anyhow v1.0.79 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling winnow v0.5.36 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Compiling data-encoding v2.5.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Compiling openssl v0.10.63 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Checking http v0.2.11 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.99 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling is-terminal v0.4.10 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Checking ic0 v0.18.11 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking ic-stable-structures v0.5.6 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking lalrpop-util v0.19.12 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling candid_derive v0.6.5 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling candid_derive v0.5.0 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.113 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Compiling candid v0.10.3 [INFO] [stderr] Compiling candid v0.8.4 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.24 [INFO] [stderr] Compiling ic-cdk-macros v0.8.4 [INFO] [stderr] Compiling ic-cdk-macros v0.6.10 [INFO] [stderr] Checking ic-cdk v0.7.4 [INFO] [stderr] Checking ic-cdk-timers v0.1.2 [INFO] [stderr] Checking weather_contract_backend v0.1.0 (/opt/rustwide/workdir/src/weather_contract_backend) [INFO] [stdout] error[E0599]: no method named `json` found for struct `Response` in the current scope [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:45:52 [INFO] [stdout] | [INFO] [stdout] 45 | if let Ok(weather_json) = response.json::().await { [INFO] [stdout] | ^^^^ method not found in `Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `json` found for struct `Response` in the current scope [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:45:52 [INFO] [stdout] | [INFO] [stdout] 45 | if let Ok(weather_json) = response.json::().await { [INFO] [stdout] | ^^^^ method not found in `Response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Weather` doesn't implement `Debug` [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:60:52 [INFO] [stdout] | [INFO] [stdout] 60 | ic_cdk::print(&format!("{:?}", &weather_data)); [INFO] [stdout] | ^^^^^^^^^^^^^ `Weather` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Weather`, which is required by `&Weather: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Weather` or manually `impl Debug for Weather` [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Weather` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 21 + #[derive(Debug)] [INFO] [stdout] 22 | struct Weather { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Weather` doesn't implement `Debug` [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:60:52 [INFO] [stdout] | [INFO] [stdout] 60 | ic_cdk::print(&format!("{:?}", &weather_data)); [INFO] [stdout] | ^^^^^^^^^^^^^ `Weather` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Weather`, which is required by `&Weather: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Weather` or manually `impl Debug for Weather` [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Weather` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 21 + #[derive(Debug)] [INFO] [stdout] 22 | struct Weather { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:63:37 [INFO] [stdout] | [INFO] [stdout] 63 | ... .insert(0, weather_data) [INFO] [stdout] | ------ ^ expected `(u64, String, String)`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(u64, std::string::String, std::string::String)` [INFO] [stdout] found type `{integer}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ic-stable-structures-0.5.6/src/btreemap.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn insert(&mut self, key: K, value: V) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:63:37 [INFO] [stdout] | [INFO] [stdout] 63 | ... .insert(0, weather_data) [INFO] [stdout] | ------ ^ expected `(u64, String, String)`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(u64, std::string::String, std::string::String)` [INFO] [stdout] found type `{integer}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/ic-stable-structures-0.5.6/src/btreemap.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn insert(&mut self, key: K, value: V) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0117]: only traits defined in the current crate can be implemented for arbitrary types [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | impl BoundedStorable for (u64, String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is not defined in the current crate because tuples are always foreign [INFO] [stdout] | impl doesn't use only types from inside the current crate [INFO] [stdout] | [INFO] [stdout] = note: define and implement a trait or new type instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0117]: only traits defined in the current crate can be implemented for arbitrary types [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | impl BoundedStorable for (u64, String, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is not defined in the current crate because tuples are always foreign [INFO] [stdout] | impl doesn't use only types from inside the current crate [INFO] [stdout] | [INFO] [stdout] = note: define and implement a trait or new type instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cloned` found for enum `std::option::Option` in the current scope [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:75:87 [INFO] [stdout] | [INFO] [stdout] 75 | WEATHER_MAP.with(|map| map.borrow().get(&(0, city.clone(), country_code.clone())).cloned()) [INFO] [stdout] | ^^^^^^ `std::option::Option` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 75 | WEATHER_MAP.with(|map| map.borrow().get(&(0, city.clone(), country_code.clone())).into_iter().cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cloned` found for enum `std::option::Option` in the current scope [INFO] [stdout] --> src/weather_contract_backend/src/lib.rs:75:87 [INFO] [stdout] | [INFO] [stdout] 75 | WEATHER_MAP.with(|map| map.borrow().get(&(0, city.clone(), country_code.clone())).cloned()) [INFO] [stdout] | ^^^^^^ `std::option::Option` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 75 | WEATHER_MAP.with(|map| map.borrow().get(&(0, city.clone(), country_code.clone())).into_iter().cloned()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0117, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0117`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0117, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0117`. [INFO] [stdout] [INFO] [stderr] error: could not compile `weather_contract_backend` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `weather_contract_backend` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "c0946c830fb1c158a35f03ef021e31564b9c4a00681aec16193b9fd19b2e595f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0946c830fb1c158a35f03ef021e31564b9c4a00681aec16193b9fd19b2e595f", kill_on_drop: false }` [INFO] [stdout] c0946c830fb1c158a35f03ef021e31564b9c4a00681aec16193b9fd19b2e595f