[INFO] cloning repository https://github.com/sshivaditya2019/web-scraper-wasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sshivaditya2019/web-scraper-wasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsshivaditya2019%2Fweb-scraper-wasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsshivaditya2019%2Fweb-scraper-wasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80a487630ccc867bde1fd356750cfcbcda89acd3 [INFO] checking sshivaditya2019/web-scraper-wasm against master#ceab6128fa48a616bfd3e3adf4bc80133b8ee223 for no-never-type-fallback [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsshivaditya2019%2Fweb-scraper-wasm" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sshivaditya2019/web-scraper-wasm on toolchain ceab6128fa48a616bfd3e3adf4bc80133b8ee223 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sshivaditya2019/web-scraper-wasm [INFO] finished tweaking git repo https://github.com/sshivaditya2019/web-scraper-wasm [INFO] tweaked toml for git repo https://github.com/sshivaditya2019/web-scraper-wasm written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sshivaditya2019/web-scraper-wasm already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded worker v0.0.9 [INFO] [stderr] Downloaded worker-macros v0.0.4 [INFO] [stderr] Downloaded worker-sys v0.0.4 [INFO] [stderr] Downloaded matchit v0.4.2 [INFO] [stderr] Downloaded worker-kv v0.5.1 [INFO] [stderr] Downloaded pin-project v1.1.4 [INFO] [stderr] Downloaded pem v3.0.3 [INFO] [stderr] Downloaded jsonwebtoken v9.2.0 [INFO] [stderr] Downloaded hermit-abi v0.3.4 [INFO] [stderr] Downloaded phf_codegen v0.11.2 [INFO] [stderr] Downloaded siphasher v0.3.11 [INFO] [stderr] Downloaded uncased v0.9.10 [INFO] [stderr] Downloaded oauth2 v4.4.2 [INFO] [stderr] Downloaded openssl-sys v0.9.99 [INFO] [stderr] Downloaded pin-project-internal v1.1.4 [INFO] [stderr] Downloaded openssl v0.10.63 [INFO] [stderr] Downloaded console_error_panic_hook v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac6a7a12e02f32d9bf262a266ae9fab154bbcd398d049da445fefe13f78fa60d [INFO] running `Command { std: "docker" "start" "-a" "ac6a7a12e02f32d9bf262a266ae9fab154bbcd398d049da445fefe13f78fa60d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac6a7a12e02f32d9bf262a266ae9fab154bbcd398d049da445fefe13f78fa60d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac6a7a12e02f32d9bf262a266ae9fab154bbcd398d049da445fefe13f78fa60d", kill_on_drop: false }` [INFO] [stdout] ac6a7a12e02f32d9bf262a266ae9fab154bbcd398d049da445fefe13f78fa60d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b27ab46f31f1360fa419a52aa4b4f8d0089e587e7fe283dd575ac2799394e1a [INFO] running `Command { std: "docker" "start" "-a" "2b27ab46f31f1360fa419a52aa4b4f8d0089e587e7fe283dd575ac2799394e1a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.78 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.7.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking slab v0.4.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling ring v0.17.7 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.99 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling openssl v0.10.63 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking indexmap v2.2.2 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tinyvec v1.3.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking unicode-bidi v0.3.6 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling chrono-tz-build v0.0.3 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking dtoa v1.0.9 [INFO] [stderr] Checking dtoa-short v0.3.4 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Compiling chrono-tz v0.6.3 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling pin-project-internal v1.1.4 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking pin-project v1.1.4 [INFO] [stderr] Checking pem v3.0.3 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking matchit v0.4.2 [INFO] [stderr] Checking ego-tree v0.6.2 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking string_cache v0.8.7 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.15 [INFO] [stderr] Checking jsonwebtoken v9.2.0 [INFO] [stderr] Checking js-sys v0.3.55 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking scraper v0.18.1 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.24 [INFO] [stderr] Checking oauth2 v4.4.2 [INFO] [stderr] Checking web-sys v0.3.55 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.28 [INFO] [stderr] Checking worker-kv v0.5.1 [INFO] [stderr] Checking worker-sys v0.0.4 [INFO] [stderr] Compiling worker-macros v0.0.4 [INFO] [stderr] Checking worker v0.0.9 [INFO] [stderr] Checking web-scraper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AuthResponse`, `AuthToken` [INFO] [stdout] --> src/lib.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use oauth::github_oauth::{AuthResponse, AuthToken}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client` [INFO] [stdout] --> src/routes/utils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use reqwest::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthorizationCode`, `Scope` [INFO] [stdout] --> src/oauth/github_oauth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | AuthorizationCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Scope, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Response as ReqwestResponse` [INFO] [stdout] --> src/oauth/github_oauth.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use reqwest::Response as ReqwestResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | if(code.is_empty() || state.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if(code.is_empty() || state.is_empty()){ [INFO] [stdout] 98 + if code.is_empty() || state.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | if(csrf_token != state){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - if(csrf_token != state){ [INFO] [stdout] 124 + if csrf_token != state { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthResponse`, `AuthToken` [INFO] [stdout] --> src/lib.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use oauth::github_oauth::{AuthResponse, AuthToken}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client` [INFO] [stdout] --> src/routes/utils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use reqwest::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthorizationCode`, `Scope` [INFO] [stdout] --> src/oauth/github_oauth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | AuthorizationCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Scope, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Response as ReqwestResponse` [INFO] [stdout] --> src/oauth/github_oauth.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use reqwest::Response as ReqwestResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | if(code.is_empty() || state.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if(code.is_empty() || state.is_empty()){ [INFO] [stdout] 98 + if code.is_empty() || state.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:124:15 [INFO] [stdout] | [INFO] [stdout] 124 | if(csrf_token != state){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - if(csrf_token != state){ [INFO] [stdout] 124 + if csrf_token != state { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/lib.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | .get_async("/oauth/github", |req, ctx| async move { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/lib.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | .get_async("/oauth/github", |req, ctx| async move { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scraper/scraper.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | let mut res = client.get(url).send().await.unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scraper/scraper.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut res = client.get("https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRFZxYUdjU0FtVnVHZ0pWVXlnQVAB").send().await.unwr... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scraper/scraper.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | let mut res = client.get(url).send().await.unwrap(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scraper/scraper.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let mut res = client.get("https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRFZxYUdjU0FtVnVHZ0pWVXlnQVAB").send().await.unwr... [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn authorize(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut kv = match ctx.kv("AUTH") { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/oauth/github_oauth.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/routes/utils.rs:180:45 [INFO] [stdout] | [INFO] [stdout] 180 | pub async fn token_middleware(req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:221:45 [INFO] [stdout] | [INFO] [stdout] 221 | pub async fn generate_client_id_and_secrets(mut resp: AuthResponse) -> ClientCredentials { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn authorize(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let mut kv = match ctx.kv("AUTH") { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pkce_verifier` [INFO] [stdout] --> src/oauth/github_oauth.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | let (pkce_challenge, pkce_verifier) = PkceCodeChallenge::new_random_sha256(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pkce_verifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/oauth/github_oauth.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/routes/utils.rs:180:45 [INFO] [stdout] | [INFO] [stdout] 180 | pub async fn token_middleware(req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:221:45 [INFO] [stdout] | [INFO] [stdout] 221 | pub async fn generate_client_id_and_secrets(mut resp: AuthResponse) -> ClientCredentials { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/oauth/github_oauth.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pkce_verifier` [INFO] [stdout] --> src/oauth/github_oauth.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | let (pkce_challenge, pkce_verifier) = PkceCodeChallenge::new_random_sha256(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pkce_verifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/oauth/github_oauth.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/oauth/github_oauth.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/oauth/github_oauth.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | Ok(mut response) => { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenResponse` [INFO] [stdout] --> src/oauth/github_oauth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | TokenResponse, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/routes/routes.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/routes/routes.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/routes.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenResponse` [INFO] [stdout] --> src/oauth/github_oauth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | TokenResponse, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/routes/routes.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/routes/routes.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/routes.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let mut rng = thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/utils.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let mut rng = thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_website` is never used [INFO] [stdout] --> src/scraper/scraper.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn scrape_website(url : &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/routes/routes.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteContext2` is never constructed [INFO] [stdout] --> src/utils.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct RouteContext2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:145:53 [INFO] [stdout] | [INFO] [stdout] 145 | let result = match kv?.get(&user_profile.borrow().id.to_string()).json::().await{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `AuthResponse` does not implement `Borrow`, so calling `borrow` on `&AuthResponse` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 145 - let result = match kv?.get(&user_profile.borrow().id.to_string()).json::().await{ [INFO] [stdout] 145 + let result = match kv?.get(&user_profile.id.to_string()).json::().await{ [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `AuthResponse`, implement `Clone` for it [INFO] [stdout] --> src/oauth/github_oauth.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Clone)] [INFO] [stdout] 31 | pub struct AuthResponse { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:157:37 [INFO] [stdout] | [INFO] [stdout] 157 | ... Response::from_json(&json!({ "Result": creds })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 157 | let _ = Response::from_json(&json!({ "Result": creds })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:160:37 [INFO] [stdout] | [INFO] [stdout] 160 | ... Response::error(&format!("Error: {}", e), 500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = Response::error(&format!("Error: {}", e), 500); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `key` should have an upper case name [INFO] [stdout] --> src/routes/utils.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | const key: &str = "secret"; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `KEY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_website` is never used [INFO] [stdout] --> src/scraper/scraper.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn scrape_website(url : &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/routes/routes.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn hello(mut req: Request, ctx: RouteContext<()>) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteContext2` is never constructed [INFO] [stdout] --> src/utils.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct RouteContext2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:145:53 [INFO] [stdout] | [INFO] [stdout] 145 | let result = match kv?.get(&user_profile.borrow().id.to_string()).json::().await{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `AuthResponse` does not implement `Borrow`, so calling `borrow` on `&AuthResponse` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 145 - let result = match kv?.get(&user_profile.borrow().id.to_string()).json::().await{ [INFO] [stdout] 145 + let result = match kv?.get(&user_profile.id.to_string()).json::().await{ [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `AuthResponse`, implement `Clone` for it [INFO] [stdout] --> src/oauth/github_oauth.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Clone)] [INFO] [stdout] 31 | pub struct AuthResponse { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:157:37 [INFO] [stdout] | [INFO] [stdout] 157 | ... Response::from_json(&json!({ "Result": creds })); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 157 | let _ = Response::from_json(&json!({ "Result": creds })); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/lib.rs:160:37 [INFO] [stdout] | [INFO] [stdout] 160 | ... Response::error(&format!("Error: {}", e), 500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = Response::error(&format!("Error: {}", e), 500); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `key` should have an upper case name [INFO] [stdout] --> src/routes/utils.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | const key: &str = "secret"; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `KEY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.78 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2b27ab46f31f1360fa419a52aa4b4f8d0089e587e7fe283dd575ac2799394e1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b27ab46f31f1360fa419a52aa4b4f8d0089e587e7fe283dd575ac2799394e1a", kill_on_drop: false }` [INFO] [stdout] 2b27ab46f31f1360fa419a52aa4b4f8d0089e587e7fe283dd575ac2799394e1a