[INFO] fetching crate leetcode-cli 0.3.2... [INFO] checking leetcode-cli-0.3.2 against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] extracting crate leetcode-cli 0.3.2 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate leetcode-cli 0.3.2 on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate leetcode-cli 0.3.2 [INFO] finished tweaking crates.io crate leetcode-cli 0.3.2 [INFO] tweaked toml for crates.io crate leetcode-cli 0.3.2 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate leetcode-cli 0.3.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hmac v0.10.1 [INFO] [stderr] Downloaded block-modes v0.7.0 [INFO] [stderr] Downloaded crypto-mac v0.10.0 [INFO] [stderr] Downloaded aes v0.6.0 [INFO] [stderr] Downloaded cargo-husky v1.5.0 [INFO] [stderr] Downloaded aes-soft v0.6.4 [INFO] [stderr] Downloaded hkdf v0.10.0 [INFO] [stderr] Downloaded secret-service v1.1.3 [INFO] [stderr] Downloaded pyo3cls v0.8.5 [INFO] [stderr] Downloaded pyo3-derive-backend v0.8.5 [INFO] [stderr] Downloaded ctor v0.1.18 [INFO] [stderr] Downloaded pyo3 v0.8.5 [INFO] [stderr] Downloaded entities v1.0.1 [INFO] [stderr] Downloaded aesni v0.10.0 [INFO] [stderr] Downloaded cipher v0.2.5 [INFO] [stderr] Downloaded dbus v0.2.3 [INFO] [stderr] Downloaded escaper v0.1.0 [INFO] [stderr] Downloaded keyring v0.8.0 [INFO] [stderr] Downloaded async-compression v0.3.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3bba2afb4cb53b342e1d900ba53c9c4b22e56e137a2ee951981e223cff123514 [INFO] running `Command { std: "docker" "start" "-a" "3bba2afb4cb53b342e1d900ba53c9c4b22e56e137a2ee951981e223cff123514", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3bba2afb4cb53b342e1d900ba53c9c4b22e56e137a2ee951981e223cff123514", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bba2afb4cb53b342e1d900ba53c9c4b22e56e137a2ee951981e223cff123514", kill_on_drop: false }` [INFO] [stdout] 3bba2afb4cb53b342e1d900ba53c9c4b22e56e137a2ee951981e223cff123514 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f9270fe33de1ba05f94d13748b6d5417d5f230e4fb102ac7611e7ea37411fbe6 [INFO] running `Command { std: "docker" "start" "-a" "f9270fe33de1ba05f94d13748b6d5417d5f230e4fb102ac7611e7ea37411fbe6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.13 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.120 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Compiling serde v1.0.120 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling nix v0.17.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Checking entities v1.0.1 [INFO] [stderr] Compiling cargo-husky v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking futures-channel v0.3.12 [INFO] [stderr] Compiling libsqlite3-sys v0.18.0 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking thread_local v1.1.0 [INFO] [stderr] Checking futures-util v0.3.12 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking escaper v0.1.0 [INFO] [stderr] Checking ryu v1.0.5 [INFO] [stderr] Checking encoding_rs v0.8.26 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking block-modes v0.7.0 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking dbus v0.2.3 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking async-compression v0.3.7 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking secret-service v1.1.3 [INFO] [stderr] Checking keyring v0.8.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling pin-project-internal v1.0.4 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking pin-project v1.0.4 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking diesel v1.4.5 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking serde_json v1.0.61 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking leetcode-cli v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn get_category_problems(self, category: &str) -> Result { [INFO] [stdout] | _________________________________________________________________________________________- [INFO] [stdout] 70 | | trace!("Requesting {} problems...", &category); [INFO] [stdout] 71 | | let url = &self [INFO] [stdout] | |____________________^ [INFO] [stdout] 72 | || .conf [INFO] [stdout] 73 | || .sys [INFO] [stdout] 74 | || .urls [INFO] [stdout] 75 | || .get("problems")? [INFO] [stdout] | ||_____________________________^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 88 | | .await [INFO] [stdout] 89 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn get_question_detail(self, slug: &str) -> Result { [INFO] [stdout] | ___________________________________________________________________________________- [INFO] [stdout] 126 | | trace!("Requesting {} detail...", &slug); [INFO] [stdout] 127 | | let refer = self.conf.sys.urls.get("problems")?.replace("$slug", slug); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 128 | | let mut json: Json = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 164 | | .await [INFO] [stdout] 165 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:93:20 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn get_question_ids_by_tag(self, slug: &str) -> Result { [INFO] [stdout] | _______________________________________________________________________________________- [INFO] [stdout] 92 | | trace!("Requesting {} ref problems...", &slug); [INFO] [stdout] 93 | | let url = &self.conf.sys.urls.get("graphql")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 94 | | let mut json: Json = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | .await [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn get_question_ids_by_tag(self, slug: &str) -> Result { [INFO] [stdout] | _______________________________________________________________________________________- [INFO] [stdout] 92 | | trace!("Requesting {} ref problems...", &slug); [INFO] [stdout] 93 | | let url = &self.conf.sys.urls.get("graphql")?; [INFO] [stdout] 94 | | let mut json: Json = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 113 | | refer: Some((&self.conf.sys.urls.get("tag")?).replace("$slug", slug)), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 121 | | .await [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> Result<(HashMap<&'static str, String>, [String; 2]), Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 204 | | trace!("pre run code..."); [INFO] [stdout] 205 | | use crate::helper::code_path; [INFO] [stdout] 206 | | use std::fs::File; [INFO] [stdout] ... | [INFO] [stdout] 235 | | Run::Test => conf.sys.urls.get("test")?.replace("$slug", &p.slug), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 248 | | )) [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> Result<(HashMap<&'static str, String>, [String; 2]), Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 204 | | trace!("pre run code..."); [INFO] [stdout] 205 | | use crate::helper::code_path; [INFO] [stdout] 206 | | use std::fs::File; [INFO] [stdout] ... | [INFO] [stdout] 238 | | conf.sys.urls.get("submit")?.replace("$slug", &p.slug) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 248 | | )) [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> Result<(HashMap<&'static str, String>, [String; 2]), Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 204 | | trace!("pre run code..."); [INFO] [stdout] 205 | | use crate::helper::code_path; [INFO] [stdout] 206 | | use std::fs::File; [INFO] [stdout] ... | [INFO] [stdout] 246 | | conf.sys.urls.get("problems")?.replace("$slug", &p.slug), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] 247 | | ], [INFO] [stdout] 248 | | )) [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn get_category_problems(self, category: &str) -> Result { [INFO] [stdout] | _________________________________________________________________________________________- [INFO] [stdout] 70 | | trace!("Requesting {} problems...", &category); [INFO] [stdout] 71 | | let url = &self [INFO] [stdout] | |____________________^ [INFO] [stdout] 72 | || .conf [INFO] [stdout] 73 | || .sys [INFO] [stdout] 74 | || .urls [INFO] [stdout] 75 | || .get("problems")? [INFO] [stdout] | ||_____________________________^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 88 | | .await [INFO] [stdout] 89 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 184 | pub async fn verify_result(self, id: String) -> Result { [INFO] [stdout] | _____________________________________________________________________________- [INFO] [stdout] 185 | | trace!("Verifying result..."); [INFO] [stdout] 186 | | let url = self.conf.sys.urls.get("verify")?.replace("$id", &id); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 187 | | Req { [INFO] [stdout] ... | [INFO] [stdout] 197 | | .await [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 285 | ) -> Result { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 286 | | trace!("Exec problem filter —— Test or Submit"); [INFO] [stdout] 287 | | let (json, [url, refer]) = self.pre_run_code(run.clone(), rfid, testcase).await?; [INFO] [stdout] 288 | | trace!("Pre run code result {:?}, {:?}, {:?}", json, url, refer); [INFO] [stdout] ... | [INFO] [stdout] 308 | | res.name = json.get("name")?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 311 | | Ok(res) [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:309:26 [INFO] [stdout] | [INFO] [stdout] 285 | ) -> Result { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 286 | | trace!("Exec problem filter —— Test or Submit"); [INFO] [stdout] 287 | | let (json, [url, refer]) = self.pre_run_code(run.clone(), rfid, testcase).await?; [INFO] [stdout] 288 | | trace!("Pre run code result {:?}, {:?}, {:?}", json, url, refer); [INFO] [stdout] ... | [INFO] [stdout] 309 | | res.data_input = json.get("data_input")?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 310 | | res.result_type = run; [INFO] [stdout] 311 | | Ok(res) [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:127:21 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn get_question_detail(self, slug: &str) -> Result { [INFO] [stdout] | ___________________________________________________________________________________- [INFO] [stdout] 126 | | trace!("Requesting {} detail...", &slug); [INFO] [stdout] 127 | | let refer = self.conf.sys.urls.get("problems")?.replace("$slug", slug); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 128 | | let mut json: Json = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 164 | | .await [INFO] [stdout] 165 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/data.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 49 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::err::Error> { [INFO] [stdout] | ___________________________________________________________________________- [INFO] [stdout] 50 | | use std::fs::File; [INFO] [stdout] 51 | | use std::path::Path; [INFO] [stdout] 52 | | [INFO] [stdout] ... | [INFO] [stdout] 60 | /| Path::new(&path) [INFO] [stdout] 61 | || .file_name()? [INFO] [stdout] | ||_____________________________^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 92 | | Ok(()) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:93:20 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn get_question_ids_by_tag(self, slug: &str) -> Result { [INFO] [stdout] | _______________________________________________________________________________________- [INFO] [stdout] 92 | | trace!("Requesting {} ref problems...", &slug); [INFO] [stdout] 93 | | let url = &self.conf.sys.urls.get("graphql")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 94 | | let mut json: Json = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 121 | | .await [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn get_question_ids_by_tag(self, slug: &str) -> Result { [INFO] [stdout] | _______________________________________________________________________________________- [INFO] [stdout] 92 | | trace!("Requesting {} ref problems...", &slug); [INFO] [stdout] 93 | | let url = &self.conf.sys.urls.get("graphql")?; [INFO] [stdout] 94 | | let mut json: Json = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 113 | | refer: Some((&self.conf.sys.urls.get("tag")?).replace("$slug", slug)), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 121 | | .await [INFO] [stdout] 122 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:235:26 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> Result<(HashMap<&'static str, String>, [String; 2]), Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 204 | | trace!("pre run code..."); [INFO] [stdout] 205 | | use crate::helper::code_path; [INFO] [stdout] 206 | | use std::fs::File; [INFO] [stdout] ... | [INFO] [stdout] 235 | | Run::Test => conf.sys.urls.get("test")?.replace("$slug", &p.slug), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 248 | | )) [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> Result<(HashMap<&'static str, String>, [String; 2]), Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 204 | | trace!("pre run code..."); [INFO] [stdout] 205 | | use crate::helper::code_path; [INFO] [stdout] 206 | | use std::fs::File; [INFO] [stdout] ... | [INFO] [stdout] 238 | | conf.sys.urls.get("submit")?.replace("$slug", &p.slug) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 248 | | )) [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/cmds/data.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut flags = 0; [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/cmds/data.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | cache.update().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 203 | ) -> Result<(HashMap<&'static str, String>, [String; 2]), Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 204 | | trace!("pre run code..."); [INFO] [stdout] 205 | | use crate::helper::code_path; [INFO] [stdout] 206 | | use std::fs::File; [INFO] [stdout] ... | [INFO] [stdout] 246 | | conf.sys.urls.get("problems")?.replace("$slug", &p.slug), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] 247 | | ], [INFO] [stdout] 248 | | )) [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(HashMap<&str, std::string::String>, [std::string::String; 2]), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/edit.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 48 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 49 | | use crate::{cache::models::Question, Cache}; [INFO] [stdout] 50 | | use std::fs::File; [INFO] [stdout] 51 | | use std::io::Write; [INFO] [stdout] ... | [INFO] [stdout] 54 | | let id: i32 = m.value_of("id")?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 95 | | Ok(()) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/edit.rs:61:30 [INFO] [stdout] | [INFO] [stdout] 48 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 49 | | use crate::{cache::models::Question, Cache}; [INFO] [stdout] 50 | | use std::fs::File; [INFO] [stdout] 51 | | use std::io::Write; [INFO] [stdout] ... | [INFO] [stdout] 61 | | conf.code.lang = m.value_of("lang")?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 95 | | Ok(()) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/leetcode.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 184 | pub async fn verify_result(self, id: String) -> Result { [INFO] [stdout] | _____________________________________________________________________________- [INFO] [stdout] 185 | | trace!("Verifying result..."); [INFO] [stdout] 186 | | let url = self.conf.sys.urls.get("verify")?.replace("$id", &id); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 187 | | Req { [INFO] [stdout] ... | [INFO] [stdout] 197 | | .await [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/exec.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 41 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 42 | | use crate::cache::{Cache, Run}; [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | let id: i32 = m.value_of("id")?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 49 | | Ok(()) [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 285 | ) -> Result { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 286 | | trace!("Exec problem filter —— Test or Submit"); [INFO] [stdout] 287 | | let (json, [url, refer]) = self.pre_run_code(run.clone(), rfid, testcase).await?; [INFO] [stdout] 288 | | trace!("Pre run code result {:?}, {:?}, {:?}", json, url, refer); [INFO] [stdout] ... | [INFO] [stdout] 308 | | res.name = json.get("name")?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 311 | | Ok(res) [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/list.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 125 | async fn handler(m: &ArgMatches<'_>) -> Result<(), Error> { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 126 | | trace!("Input list command..."); [INFO] [stdout] 127 | | [INFO] [stdout] 128 | | let cache = Cache::new()?; [INFO] [stdout] ... | [INFO] [stdout] 162 | | let query = m.value_of("query")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 225 | | Ok(()) [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/mod.rs:309:26 [INFO] [stdout] | [INFO] [stdout] 285 | ) -> Result { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 286 | | trace!("Exec problem filter —— Test or Submit"); [INFO] [stdout] 287 | | let (json, [url, refer]) = self.pre_run_code(run.clone(), rfid, testcase).await?; [INFO] [stdout] 288 | | trace!("Pre run code result {:?}, {:?}, {:?}", json, url, refer); [INFO] [stdout] ... | [INFO] [stdout] 309 | | res.data_input = json.get("data_input")?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result` [INFO] [stdout] 310 | | res.result_type = run; [INFO] [stdout] 311 | | Ok(res) [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/pick.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handler(m: &ArgMatches<'_>) -> Result<(), Error> { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 76 | | use crate::cache::Cache; [INFO] [stdout] 77 | | use rand::Rng; [INFO] [stdout] 78 | | [INFO] [stdout] ... | [INFO] [stdout] 108 | | let query = m.value_of("query")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 132 | | Ok(()) [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/pick.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handler(m: &ArgMatches<'_>) -> Result<(), Error> { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 76 | | use crate::cache::Cache; [INFO] [stdout] 77 | | use rand::Rng; [INFO] [stdout] 78 | | [INFO] [stdout] ... | [INFO] [stdout] 123 | | let e = r.err()?; [INFO] [stdout] | | ^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 132 | | Ok(()) [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/test.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 47 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 48 | | use crate::cache::{Cache, Run}; [INFO] [stdout] 49 | | let id: i32 = m.value_of("id")?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] 50 | | let testcase = m.value_of("testcase"); [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(()) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/data.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 49 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::err::Error> { [INFO] [stdout] | ___________________________________________________________________________- [INFO] [stdout] 50 | | use std::fs::File; [INFO] [stdout] 51 | | use std::path::Path; [INFO] [stdout] 52 | | [INFO] [stdout] ... | [INFO] [stdout] 60 | /| Path::new(&path) [INFO] [stdout] 61 | || .file_name()? [INFO] [stdout] | ||_____________________________^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 92 | | Ok(()) [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/cmds/data.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut flags = 0; [INFO] [stdout] | ^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/cmds/data.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | cache.update().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/edit.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 48 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 49 | | use crate::{cache::models::Question, Cache}; [INFO] [stdout] 50 | | use std::fs::File; [INFO] [stdout] 51 | | use std::io::Write; [INFO] [stdout] ... | [INFO] [stdout] 54 | | let id: i32 = m.value_of("id")?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 95 | | Ok(()) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/edit.rs:61:30 [INFO] [stdout] | [INFO] [stdout] 48 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 49 | | use crate::{cache::models::Question, Cache}; [INFO] [stdout] 50 | | use std::fs::File; [INFO] [stdout] 51 | | use std::io::Write; [INFO] [stdout] ... | [INFO] [stdout] 61 | | conf.code.lang = m.value_of("lang")?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 95 | | Ok(()) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/exec.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 41 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 42 | | use crate::cache::{Cache, Run}; [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | let id: i32 = m.value_of("id")?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 49 | | Ok(()) [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/list.rs:162:25 [INFO] [stdout] | [INFO] [stdout] 125 | async fn handler(m: &ArgMatches<'_>) -> Result<(), Error> { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 126 | | trace!("Input list command..."); [INFO] [stdout] 127 | | [INFO] [stdout] 128 | | let cache = Cache::new()?; [INFO] [stdout] ... | [INFO] [stdout] 162 | | let query = m.value_of("query")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 225 | | Ok(()) [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/pick.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handler(m: &ArgMatches<'_>) -> Result<(), Error> { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 76 | | use crate::cache::Cache; [INFO] [stdout] 77 | | use rand::Rng; [INFO] [stdout] 78 | | [INFO] [stdout] ... | [INFO] [stdout] 108 | | let query = m.value_of("query")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 132 | | Ok(()) [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/pick.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 75 | async fn handler(m: &ArgMatches<'_>) -> Result<(), Error> { [INFO] [stdout] | _______________________________________________________________- [INFO] [stdout] 76 | | use crate::cache::Cache; [INFO] [stdout] 77 | | use rand::Rng; [INFO] [stdout] 78 | | [INFO] [stdout] ... | [INFO] [stdout] 123 | | let e = r.err()?; [INFO] [stdout] | | ^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 132 | | Ok(()) [INFO] [stdout] 133 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cmds/test.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 47 | async fn handler(m: &ArgMatches<'_>) -> Result<(), crate::Error> { [INFO] [stdout] | ______________________________________________________________________- [INFO] [stdout] 48 | | use crate::cache::{Cache, Run}; [INFO] [stdout] 49 | | let id: i32 = m.value_of("id")?.parse()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in an async function that returns `Result<(), err::Error>` [INFO] [stdout] 50 | | let testcase = m.value_of("testcase"); [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(()) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] 12 | | let total_submitted = stat.get("total_submitted")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] 12 | | let total_submitted = stat.get("total_submitted")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 15 | | category: v.get("category_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 15 | | category: v.get("category_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 16 | | fid: stat.get("frontend_question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 16 | | fid: stat.get("frontend_question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 17 | | id: stat.get("question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 17 | | id: stat.get("question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | locked: p.get("paid_only")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | locked: p.get("paid_only")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 20 | | name: stat.get("question__title")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 20 | | name: stat.get("question__title")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | slug: stat.get("question__title_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | slug: stat.get("question__title_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 23 | | starred: p.get("is_favor")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 23 | | starred: p.get("is_favor")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 24 | | status: p.get("status")?.as_str().unwrap_or("Null").to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] 37 | || .as_object()? [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] 37 | || .as_object()? [INFO] [stdout] 38 | || .get("question")? [INFO] [stdout] | ||_________________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] 37 | || .as_object()? [INFO] [stdout] 38 | || .get("question")? [INFO] [stdout] 39 | || .as_object()?; [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 42 | | content: o.get("content")?.as_str().unwrap_or("").to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 43 | | stats: serde_json::from_str(o.get("stats")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 43 | | stats: serde_json::from_str(o.get("stats")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 44 | | defs: serde_json::from_str(o.get("codeDefinition")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 44 | | defs: serde_json::from_str(o.get("codeDefinition")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 45 | | case: o.get("sampleTestCase")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 45 | | case: o.get("sampleTestCase")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 46 | | metadata: serde_json::from_str(o.get("metaData")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 46 | | metadata: serde_json::from_str(o.get("metaData")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 47 | | test: o.get("enableRunCode")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 47 | | test: o.get("enableRunCode")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 48 | | t_content: o [INFO] [stdout] | |____________________^ [INFO] [stdout] 49 | || .get("translatedContent")? [INFO] [stdout] | ||______________________________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 67 | | let arr = tag.as_object()?.get("questions")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 67 | | let arr = tag.as_object()?.get("questions")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 67 | | let arr = tag.as_object()?.get("questions")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | res.push(q.as_object()?.get("questionId")?.as_str()?.to_string()) [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] 12 | | let total_submitted = stat.get("total_submitted")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | res.push(q.as_object()?.get("questionId")?.as_str()?.to_string()) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] 11 | | let total_acs = stat.get("total_acs")?.as_f64()? as f32; [INFO] [stdout] 12 | | let total_submitted = stat.get("total_submitted")?.as_f64()? as f32; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | res.push(q.as_object()?.get("questionId")?.as_str()?.to_string()) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 15 | | category: v.get("category_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 15 | | category: v.get("category_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 83 | / pub fn sync(&self) -> Result<(), crate::Error> { [INFO] [stdout] 84 | | let home = dirs::home_dir()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), err::Error>` [INFO] [stdout] 85 | | let conf = home.join(".leetcode/leetcode.toml"); [INFO] [stdout] 86 | | fs::write(conf, toml::ser::to_string_pretty(&self)?)?; [INFO] [stdout] 87 | | [INFO] [stdout] 88 | | Ok(()) [INFO] [stdout] 89 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 16 | | fid: stat.get("frontend_question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 16 | | fid: stat.get("frontend_question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 17 | | id: stat.get("question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 17 | | id: stat.get("question_id")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 18 | | level: p.get("difficulty")?.as_object()?.get("level")?.as_i64()? as i32, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | locked: p.get("paid_only")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | locked: p.get("paid_only")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 20 | | name: stat.get("question__title")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 20 | | name: stat.get("question__title")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | slug: stat.get("question__title_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 22 | | slug: stat.get("question__title_slug")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 150 | / pub fn root(&self) -> Result { [INFO] [stdout] 151 | | let home = dirs::home_dir()?.to_string_lossy().to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 152 | | let path = self.root.replace("~", &home); [INFO] [stdout] 153 | | Ok(path) [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 23 | | starred: p.get("is_favor")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:181:33 [INFO] [stdout] | [INFO] [stdout] 177 | / pub fn scripts(mut self) -> Result { [INFO] [stdout] 178 | | let root = &self.root()?; [INFO] [stdout] 179 | | if self.scripts.is_none() { [INFO] [stdout] 180 | | let tmp = toml::from_str::(&DEFAULT_CONFIG)?; [INFO] [stdout] 181 | | self.scripts = Some(tmp.storage.scripts?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 189 | | Ok(p.to_string_lossy().to_string()) [INFO] [stdout] 190 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 23 | | starred: p.get("is_favor")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 7 | / pub fn problem(problems: &mut Vec, v: Value) -> Result<(), Error> { [INFO] [stdout] 8 | | let pairs = v.get("stat_status_pairs")?.as_array()?; [INFO] [stdout] 9 | | for p in pairs { [INFO] [stdout] 10 | | let stat = p.get("stat")?.as_object()?; [INFO] [stdout] ... | [INFO] [stdout] 24 | | status: p.get("status")?.as_str().unwrap_or("Null").to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 29 | | Ok(()) [INFO] [stdout] 30 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:184:43 [INFO] [stdout] | [INFO] [stdout] 177 | / pub fn scripts(mut self) -> Result { [INFO] [stdout] 178 | | let root = &self.root()?; [INFO] [stdout] 179 | | if self.scripts.is_none() { [INFO] [stdout] 180 | | let tmp = toml::from_str::(&DEFAULT_CONFIG)?; [INFO] [stdout] ... | [INFO] [stdout] 184 | | let p = PathBuf::from(root).join(&self.scripts?); [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 189 | | Ok(p.to_string_lossy().to_string()) [INFO] [stdout] 190 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:206:15 [INFO] [stdout] | [INFO] [stdout] 205 | / pub fn root() -> Result { [INFO] [stdout] 206 | | let dir = dirs::home_dir()?.join(".leetcode"); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 207 | | if !dir.is_dir() { [INFO] [stdout] 208 | | info!("Generate root dir at {:?}.", &dir); [INFO] [stdout] ... | [INFO] [stdout] 212 | | Ok(dir) [INFO] [stdout] 213 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] 37 | || .as_object()? [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] 37 | || .as_object()? [INFO] [stdout] 38 | || .get("question")? [INFO] [stdout] | ||_________________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] | |______________^ [INFO] [stdout] 35 | || .as_object()? [INFO] [stdout] 36 | || .get("data")? [INFO] [stdout] 37 | || .as_object()? [INFO] [stdout] 38 | || .get("question")? [INFO] [stdout] 39 | || .as_object()?; [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 42 | | content: o.get("content")?.as_str().unwrap_or("").to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 43 | | stats: serde_json::from_str(o.get("stats")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:43:37 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 43 | | stats: serde_json::from_str(o.get("stats")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/helper.rs:290:20 [INFO] [stdout] | [INFO] [stdout] 286 | / pub fn code_path(target: &Problem, l: Option) -> Result { [INFO] [stdout] 287 | | let conf = crate::cfg::locate()?; [INFO] [stdout] 288 | | let mut lang = conf.code.lang; [INFO] [stdout] 289 | | if l.is_some() { [INFO] [stdout] 290 | | lang = l?; [INFO] [stdout] | | ^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 303 | | Ok(path) [INFO] [stdout] 304 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 44 | | defs: serde_json::from_str(o.get("codeDefinition")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:44:36 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 44 | | defs: serde_json::from_str(o.get("codeDefinition")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/chrome.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn cookies() -> Result { [INFO] [stdout] 43 | | let ccfg = crate::cfg::locate()?.cookies; [INFO] [stdout] 44 | | if !ccfg.csrf.is_empty() && !ccfg.session.is_empty() { [INFO] [stdout] 45 | | return Ok(Ident { [INFO] [stdout] ... | [INFO] [stdout] 55 | | let home = dirs::home_dir()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 89 | | }) [INFO] [stdout] 90 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 45 | | case: o.get("sampleTestCase")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/chrome.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn cookies() -> Result { [INFO] [stdout] 43 | | let ccfg = crate::cfg::locate()?.cookies; [INFO] [stdout] 44 | | if !ccfg.csrf.is_empty() && !ccfg.session.is_empty() { [INFO] [stdout] 45 | | return Ok(Ident { [INFO] [stdout] ... | [INFO] [stdout] 87 | | csrf: m.get("csrftoken")?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 88 | | session: m.get("LEETCODE_SESSION")?.to_string(), [INFO] [stdout] 89 | | }) [INFO] [stdout] 90 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/chrome.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn cookies() -> Result { [INFO] [stdout] 43 | | let ccfg = crate::cfg::locate()?.cookies; [INFO] [stdout] 44 | | if !ccfg.csrf.is_empty() && !ccfg.session.is_empty() { [INFO] [stdout] 45 | | return Ok(Ident { [INFO] [stdout] ... | [INFO] [stdout] 88 | | session: m.get("LEETCODE_SESSION")?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 89 | | }) [INFO] [stdout] 90 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 45 | | case: o.get("sampleTestCase")?.as_str()?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 46 | | metadata: serde_json::from_str(o.get("metaData")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 46 | | metadata: serde_json::from_str(o.get("metaData")?.as_str()?)?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 47 | | test: o.get("enableRunCode")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 47 | | test: o.get("enableRunCode")?.as_bool()?, [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 33 | / pub fn desc(q: &mut Question, v: Value) -> Result<(), Error> { [INFO] [stdout] 34 | | let o = &v [INFO] [stdout] 35 | | .as_object()? [INFO] [stdout] 36 | | .get("data")? [INFO] [stdout] ... | [INFO] [stdout] 48 | | t_content: o [INFO] [stdout] | |____________________^ [INFO] [stdout] 49 | || .get("translatedContent")? [INFO] [stdout] | ||______________________________________^ cannot use the `?` operator in a function that returns `Result<(), err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 55 | | Ok(()) [INFO] [stdout] 56 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 67 | | let arr = tag.as_object()?.get("questions")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 67 | | let arr = tag.as_object()?.get("questions")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 82 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 67 | | let arr = tag.as_object()?.get("questions")?.as_array()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | res.push(q.as_object()?.get("questionId")?.as_str()?.to_string()) [INFO] [stdout] | | ^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode-cli` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | res.push(q.as_object()?.get("questionId")?.as_str()?.to_string()) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cache/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 59 | / pub fn tags(v: Value) -> Result, Error> { [INFO] [stdout] 60 | | trace!("Parse tags..."); [INFO] [stdout] 61 | | let tag = v.as_object()?.get("data")?.as_object()?.get("topicTag")?; [INFO] [stdout] 62 | | [INFO] [stdout] ... | [INFO] [stdout] 71 | | res.push(q.as_object()?.get("questionId")?.as_str()?.to_string()) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, err::Error>` [INFO] [stdout] ... | [INFO] [stdout] 74 | | Ok(res) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 83 | / pub fn sync(&self) -> Result<(), crate::Error> { [INFO] [stdout] 84 | | let home = dirs::home_dir()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), err::Error>` [INFO] [stdout] 85 | | let conf = home.join(".leetcode/leetcode.toml"); [INFO] [stdout] 86 | | fs::write(conf, toml::ser::to_string_pretty(&self)?)?; [INFO] [stdout] 87 | | [INFO] [stdout] 88 | | Ok(()) [INFO] [stdout] 89 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), err::Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 150 | / pub fn root(&self) -> Result { [INFO] [stdout] 151 | | let home = dirs::home_dir()?.to_string_lossy().to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 152 | | let path = self.root.replace("~", &home); [INFO] [stdout] 153 | | Ok(path) [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:181:33 [INFO] [stdout] | [INFO] [stdout] 177 | / pub fn scripts(mut self) -> Result { [INFO] [stdout] 178 | | let root = &self.root()?; [INFO] [stdout] 179 | | if self.scripts.is_none() { [INFO] [stdout] 180 | | let tmp = toml::from_str::(&DEFAULT_CONFIG)?; [INFO] [stdout] 181 | | self.scripts = Some(tmp.storage.scripts?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 189 | | Ok(p.to_string_lossy().to_string()) [INFO] [stdout] 190 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:184:43 [INFO] [stdout] | [INFO] [stdout] 177 | / pub fn scripts(mut self) -> Result { [INFO] [stdout] 178 | | let root = &self.root()?; [INFO] [stdout] 179 | | if self.scripts.is_none() { [INFO] [stdout] 180 | | let tmp = toml::from_str::(&DEFAULT_CONFIG)?; [INFO] [stdout] ... | [INFO] [stdout] 184 | | let p = PathBuf::from(root).join(&self.scripts?); [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 189 | | Ok(p.to_string_lossy().to_string()) [INFO] [stdout] 190 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cfg.rs:206:15 [INFO] [stdout] | [INFO] [stdout] 205 | / pub fn root() -> Result { [INFO] [stdout] 206 | | let dir = dirs::home_dir()?.join(".leetcode"); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 207 | | if !dir.is_dir() { [INFO] [stdout] 208 | | info!("Generate root dir at {:?}.", &dir); [INFO] [stdout] ... | [INFO] [stdout] 212 | | Ok(dir) [INFO] [stdout] 213 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/helper.rs:290:20 [INFO] [stdout] | [INFO] [stdout] 286 | / pub fn code_path(target: &Problem, l: Option) -> Result { [INFO] [stdout] 287 | | let conf = crate::cfg::locate()?; [INFO] [stdout] 288 | | let mut lang = conf.code.lang; [INFO] [stdout] 289 | | if l.is_some() { [INFO] [stdout] 290 | | lang = l?; [INFO] [stdout] | | ^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 303 | | Ok(path) [INFO] [stdout] 304 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/chrome.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn cookies() -> Result { [INFO] [stdout] 43 | | let ccfg = crate::cfg::locate()?.cookies; [INFO] [stdout] 44 | | if !ccfg.csrf.is_empty() && !ccfg.session.is_empty() { [INFO] [stdout] 45 | | return Ok(Ident { [INFO] [stdout] ... | [INFO] [stdout] 55 | | let home = dirs::home_dir()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 89 | | }) [INFO] [stdout] 90 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/chrome.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn cookies() -> Result { [INFO] [stdout] 43 | | let ccfg = crate::cfg::locate()?.cookies; [INFO] [stdout] 44 | | if !ccfg.csrf.is_empty() && !ccfg.session.is_empty() { [INFO] [stdout] 45 | | return Ok(Ident { [INFO] [stdout] ... | [INFO] [stdout] 87 | | csrf: m.get("csrftoken")?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 88 | | session: m.get("LEETCODE_SESSION")?.to_string(), [INFO] [stdout] 89 | | }) [INFO] [stdout] 90 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/plugins/chrome.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn cookies() -> Result { [INFO] [stdout] 43 | | let ccfg = crate::cfg::locate()?.cookies; [INFO] [stdout] 44 | | if !ccfg.csrf.is_empty() && !ccfg.session.is_empty() { [INFO] [stdout] 45 | | return Ok(Ident { [INFO] [stdout] ... | [INFO] [stdout] 88 | | session: m.get("LEETCODE_SESSION")?.to_string(), [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 89 | | }) [INFO] [stdout] 90 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 82 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f9270fe33de1ba05f94d13748b6d5417d5f230e4fb102ac7611e7ea37411fbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9270fe33de1ba05f94d13748b6d5417d5f230e4fb102ac7611e7ea37411fbe6", kill_on_drop: false }` [INFO] [stdout] f9270fe33de1ba05f94d13748b6d5417d5f230e4fb102ac7611e7ea37411fbe6