[INFO] cloning repository https://github.com/ThaKhinso/simple-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ThaKhinso/simple-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThaKhinso%2Fsimple-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThaKhinso%2Fsimple-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 27083776eefc4eebc953dc77153dfe8665c7908d [INFO] building ThaKhinso/simple-backend against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThaKhinso%2Fsimple-backend" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ThaKhinso/simple-backend [INFO] finished tweaking git repo https://github.com/ThaKhinso/simple-backend [INFO] tweaked toml for git repo https://github.com/ThaKhinso/simple-backend written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ThaKhinso/simple-backend on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ThaKhinso/simple-backend 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest_generator v2.8.0 [INFO] [stderr] Downloaded sqlite3-sys v0.18.0 [INFO] [stderr] Downloaded sqlite v0.37.0 [INFO] [stderr] Downloaded blowfish v0.9.1 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded markup5ever v0.12.1 [INFO] [stderr] Downloaded bcrypt v0.17.0 [INFO] [stderr] Downloaded ammonia v4.0.0 [INFO] [stderr] Downloaded html5ever v0.27.0 [INFO] [stderr] Downloaded pest v2.8.0 [INFO] [stderr] Downloaded openssl-sys v0.9.106 [INFO] [stderr] Downloaded pem v3.0.5 [INFO] [stderr] Downloaded deunicode v1.6.1 [INFO] [stderr] Downloaded pest_meta v2.8.0 [INFO] [stderr] Downloaded pest_derive v2.8.0 [INFO] [stderr] Downloaded openssl v0.10.71 [INFO] [stderr] Downloaded sqlite3-src v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3b394580d47d329a25e84c632153f24ac2d8bbf1e5cbd83b0733811e3a303b6 [INFO] running `Command { std: "docker" "start" "-a" "a3b394580d47d329a25e84c632153f24ac2d8bbf1e5cbd83b0733811e3a303b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3b394580d47d329a25e84c632153f24ac2d8bbf1e5cbd83b0733811e3a303b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3b394580d47d329a25e84c632153f24ac2d8bbf1e5cbd83b0733811e3a303b6", kill_on_drop: false }` [INFO] [stdout] a3b394580d47d329a25e84c632153f24ac2d8bbf1e5cbd83b0733811e3a303b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7605a31ef31b29153b532a60afd60c2d21c6a29a977b87c8e67b76b0b33b3b4 [INFO] running `Command { std: "docker" "start" "-a" "d7605a31ef31b29153b532a60afd60c2d21c6a29a977b87c8e67b76b0b33b3b4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling futf v0.1.5 [INFO] [stderr] Compiling sqlite3-src v0.7.0 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling markup5ever v0.12.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling bstr v1.11.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling tendril v0.4.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling deunicode v1.6.1 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling slug v0.1.6 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling sqlite3-sys v0.18.0 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling sqlite v0.37.0 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling bcrypt v0.17.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling html5ever v0.27.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pest v2.8.0 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling pest_meta v2.8.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling pest_generator v2.8.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling pest_derive v2.8.0 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling ammonia v4.0.0 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling simple-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ValueField` [INFO] [stdout] --> src/lib.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use rocket::form::{Form, ValueField}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::LockResult` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::sync::LockResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ammonia::url::quirks::username` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ammonia::url::quirks::username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `posts` [INFO] [stdout] --> src/lib.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut posts: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_posts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_created_date` is never read [INFO] [stdout] --> src/lib.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut post_created_date = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_title` is never read [INFO] [stdout] --> src/lib.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let mut post_title = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_body` is never read [INFO] [stdout] --> src/lib.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut post_body = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:178:29 [INFO] [stdout] | [INFO] [stdout] 178 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/lib.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_post(id: i64, user: OptionalUser, state: &State) -> MyResponse { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let mut posts: Vec = Vec::new(); [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/lib.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut post_id; [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/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let mut author_id; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_created_date` is never read [INFO] [stdout] --> src/lib.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let mut post_created_date = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_title` is never read [INFO] [stdout] --> src/lib.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let mut post_title = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_body` is never read [INFO] [stdout] --> src/lib.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | let mut post_body = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:283:29 [INFO] [stdout] | [INFO] [stdout] 283 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:289:29 [INFO] [stdout] | [INFO] [stdout] 289 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:295:29 [INFO] [stdout] | [INFO] [stdout] 295 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | let mut post_id; [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/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let mut author_id; [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/lib.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:509:29 [INFO] [stdout] | [INFO] [stdout] 509 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:515:29 [INFO] [stdout] | [INFO] [stdout] 515 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:521:29 [INFO] [stdout] | [INFO] [stdout] 521 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:527:29 [INFO] [stdout] | [INFO] [stdout] 527 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:533:21 [INFO] [stdout] | [INFO] [stdout] 533 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userid` is never read [INFO] [stdout] --> src/lib.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let mut userid = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `does_user_exist` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut does_user_exist: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_does_user_exist` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userr` is never read [INFO] [stdout] --> src/lib.rs:577:13 [INFO] [stdout] | [INFO] [stdout] 577 | let mut userr = User { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `does_user_exist` is never read [INFO] [stdout] --> src/lib.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | Some(user) => { does_user_exist = true; context.insert("user", &user); userr = user;}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_inserted_row_id` is never read [INFO] [stdout] --> src/lib.rs:611:13 [INFO] [stdout] | [INFO] [stdout] 611 | let mut last_inserted_row_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_id` is never read [INFO] [stdout] --> src/lib.rs:688:13 [INFO] [stdout] | [INFO] [stdout] 688 | let mut post_id= 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param_user_id` [INFO] [stdout] --> src/lib.rs:690:13 [INFO] [stdout] | [INFO] [stdout] 690 | let mut param_user_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:718:20 [INFO] [stdout] | [INFO] [stdout] 718 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:721:29 [INFO] [stdout] | [INFO] [stdout] 721 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:690:9 [INFO] [stdout] | [INFO] [stdout] 690 | let mut param_user_id = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `does_user_exist` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:749:13 [INFO] [stdout] | [INFO] [stdout] 749 | let mut does_user_exist: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_does_user_exist` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userr` is never read [INFO] [stdout] --> src/lib.rs:750:13 [INFO] [stdout] | [INFO] [stdout] 750 | let mut userr = User { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `does_user_exist` is never read [INFO] [stdout] --> src/lib.rs:756:25 [INFO] [stdout] | [INFO] [stdout] 756 | Some(user) => { does_user_exist = true; context.insert("user", &user); userr = user;}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:808:29 [INFO] [stdout] | [INFO] [stdout] 808 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:814:29 [INFO] [stdout] | [INFO] [stdout] 814 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:820:29 [INFO] [stdout] | [INFO] [stdout] 820 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:826:29 [INFO] [stdout] | [INFO] [stdout] 826 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:832:29 [INFO] [stdout] | [INFO] [stdout] 832 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:838:21 [INFO] [stdout] | [INFO] [stdout] 838 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `u` is never read [INFO] [stdout] --> src/lib.rs:1169:13 [INFO] [stdout] | [INFO] [stdout] 1169 | let mut u = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:1170:13 [INFO] [stdout] | [INFO] [stdout] 1170 | let mut p = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_username` is never read [INFO] [stdout] --> src/lib.rs:1175:13 [INFO] [stdout] | [INFO] [stdout] 1175 | let mut jwp_user_username = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `jwp_user_password` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let mut jwp_user_password = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_jwp_user_password` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_userid` is never read [INFO] [stdout] --> src/lib.rs:1177:13 [INFO] [stdout] | [INFO] [stdout] 1177 | let mut jwp_user_userid = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:1257:29 [INFO] [stdout] | [INFO] [stdout] 1257 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crap` [INFO] [stdout] --> src/lib.rs:1283:21 [INFO] [stdout] | [INFO] [stdout] 1283 | let crap = match TEMPLATES.render("homepage.html", &context){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_crap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_inserted_row_id` is never read [INFO] [stdout] --> src/lib.rs:1321:29 [INFO] [stdout] | [INFO] [stdout] 1321 | let mut last_inserted_row_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_password` is never read [INFO] [stdout] --> src/lib.rs:1378:29 [INFO] [stdout] | [INFO] [stdout] 1378 | ... jwp_user_password = match statement.read::("password"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1170:9 [INFO] [stdout] | [INFO] [stdout] 1170 | let mut p = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/lib.rs:1474:17 [INFO] [stdout] | [INFO] [stdout] 1474 | if let Some(user) = user.0 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:1295:34 [INFO] [stdout] | [INFO] [stdout] 1295 | let plain_password = password.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 54s [INFO] running `Command { std: "docker" "inspect" "d7605a31ef31b29153b532a60afd60c2d21c6a29a977b87c8e67b76b0b33b3b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7605a31ef31b29153b532a60afd60c2d21c6a29a977b87c8e67b76b0b33b3b4", kill_on_drop: false }` [INFO] [stdout] d7605a31ef31b29153b532a60afd60c2d21c6a29a977b87c8e67b76b0b33b3b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2f0efad9da37dbffb1a91285157000cf5450cbd2fe1620ab6b366749987e4e8 [INFO] running `Command { std: "docker" "start" "-a" "d2f0efad9da37dbffb1a91285157000cf5450cbd2fe1620ab6b366749987e4e8", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `ValueField` [INFO] [stdout] --> src/lib.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use rocket::form::{Form, ValueField}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::LockResult` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::sync::LockResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ammonia::url::quirks::username` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ammonia::url::quirks::username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `posts` [INFO] [stdout] --> src/lib.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut posts: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_posts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_created_date` is never read [INFO] [stdout] --> src/lib.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut post_created_date = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_title` is never read [INFO] [stdout] --> src/lib.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let mut post_title = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_body` is never read [INFO] [stdout] --> src/lib.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut post_body = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:178:29 [INFO] [stdout] | [INFO] [stdout] 178 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/lib.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_post(id: i64, user: OptionalUser, state: &State) -> MyResponse { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let mut posts: Vec = Vec::new(); [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/lib.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut post_id; [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/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let mut author_id; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_created_date` is never read [INFO] [stdout] --> src/lib.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let mut post_created_date = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_title` is never read [INFO] [stdout] --> src/lib.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let mut post_title = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_body` is never read [INFO] [stdout] --> src/lib.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | let mut post_body = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:283:29 [INFO] [stdout] | [INFO] [stdout] 283 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:289:29 [INFO] [stdout] | [INFO] [stdout] 289 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:295:29 [INFO] [stdout] | [INFO] [stdout] 295 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | let mut post_id; [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/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let mut author_id; [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/lib.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:509:29 [INFO] [stdout] | [INFO] [stdout] 509 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:515:29 [INFO] [stdout] | [INFO] [stdout] 515 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:521:29 [INFO] [stdout] | [INFO] [stdout] 521 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:527:29 [INFO] [stdout] | [INFO] [stdout] 527 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:533:21 [INFO] [stdout] | [INFO] [stdout] 533 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userid` is never read [INFO] [stdout] --> src/lib.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let mut userid = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling simple-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `does_user_exist` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut does_user_exist: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_does_user_exist` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userr` is never read [INFO] [stdout] --> src/lib.rs:577:13 [INFO] [stdout] | [INFO] [stdout] 577 | let mut userr = User { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `does_user_exist` is never read [INFO] [stdout] --> src/lib.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | Some(user) => { does_user_exist = true; context.insert("user", &user); userr = user;}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_inserted_row_id` is never read [INFO] [stdout] --> src/lib.rs:611:13 [INFO] [stdout] | [INFO] [stdout] 611 | let mut last_inserted_row_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_id` is never read [INFO] [stdout] --> src/lib.rs:688:13 [INFO] [stdout] | [INFO] [stdout] 688 | let mut post_id= 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param_user_id` [INFO] [stdout] --> src/lib.rs:690:13 [INFO] [stdout] | [INFO] [stdout] 690 | let mut param_user_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:718:20 [INFO] [stdout] | [INFO] [stdout] 718 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:721:29 [INFO] [stdout] | [INFO] [stdout] 721 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:690:9 [INFO] [stdout] | [INFO] [stdout] 690 | let mut param_user_id = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `does_user_exist` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:749:13 [INFO] [stdout] | [INFO] [stdout] 749 | let mut does_user_exist: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_does_user_exist` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userr` is never read [INFO] [stdout] --> src/lib.rs:750:13 [INFO] [stdout] | [INFO] [stdout] 750 | let mut userr = User { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `does_user_exist` is never read [INFO] [stdout] --> src/lib.rs:756:25 [INFO] [stdout] | [INFO] [stdout] 756 | Some(user) => { does_user_exist = true; context.insert("user", &user); userr = user;}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:808:29 [INFO] [stdout] | [INFO] [stdout] 808 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:814:29 [INFO] [stdout] | [INFO] [stdout] 814 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:820:29 [INFO] [stdout] | [INFO] [stdout] 820 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:826:29 [INFO] [stdout] | [INFO] [stdout] 826 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:832:29 [INFO] [stdout] | [INFO] [stdout] 832 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:838:21 [INFO] [stdout] | [INFO] [stdout] 838 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `u` is never read [INFO] [stdout] --> src/lib.rs:1169:13 [INFO] [stdout] | [INFO] [stdout] 1169 | let mut u = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:1170:13 [INFO] [stdout] | [INFO] [stdout] 1170 | let mut p = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_username` is never read [INFO] [stdout] --> src/lib.rs:1175:13 [INFO] [stdout] | [INFO] [stdout] 1175 | let mut jwp_user_username = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `jwp_user_password` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let mut jwp_user_password = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_jwp_user_password` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_userid` is never read [INFO] [stdout] --> src/lib.rs:1177:13 [INFO] [stdout] | [INFO] [stdout] 1177 | let mut jwp_user_userid = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:1257:29 [INFO] [stdout] | [INFO] [stdout] 1257 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crap` [INFO] [stdout] --> src/lib.rs:1283:21 [INFO] [stdout] | [INFO] [stdout] 1283 | let crap = match TEMPLATES.render("homepage.html", &context){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_crap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_inserted_row_id` is never read [INFO] [stdout] --> src/lib.rs:1321:29 [INFO] [stdout] | [INFO] [stdout] 1321 | let mut last_inserted_row_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_password` is never read [INFO] [stdout] --> src/lib.rs:1378:29 [INFO] [stdout] | [INFO] [stdout] 1378 | ... jwp_user_password = match statement.read::("password"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1170:9 [INFO] [stdout] | [INFO] [stdout] 1170 | let mut p = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/lib.rs:1474:17 [INFO] [stdout] | [INFO] [stdout] 1474 | if let Some(user) = user.0 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:1295:34 [INFO] [stdout] | [INFO] [stdout] 1295 | let plain_password = password.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueField` [INFO] [stdout] --> src/lib.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | use rocket::form::{Form, ValueField}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::LockResult` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::sync::LockResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ammonia::url::quirks::username` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ammonia::url::quirks::username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `posts` [INFO] [stdout] --> src/lib.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut posts: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_posts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_created_date` is never read [INFO] [stdout] --> src/lib.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let mut post_created_date = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_title` is never read [INFO] [stdout] --> src/lib.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let mut post_title = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_body` is never read [INFO] [stdout] --> src/lib.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut post_body = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:178:29 [INFO] [stdout] | [INFO] [stdout] 178 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/lib.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn get_post(id: i64, user: OptionalUser, state: &State) -> MyResponse { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | let mut posts: Vec = Vec::new(); [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/lib.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut post_id; [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/lib.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | let mut author_id; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_created_date` is never read [INFO] [stdout] --> src/lib.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | let mut post_created_date = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_title` is never read [INFO] [stdout] --> src/lib.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let mut post_title = String::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_body` is never read [INFO] [stdout] --> src/lib.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | let mut post_body = String::new(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:277:29 [INFO] [stdout] | [INFO] [stdout] 277 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:283:29 [INFO] [stdout] | [INFO] [stdout] 283 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:289:29 [INFO] [stdout] | [INFO] [stdout] 289 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:295:29 [INFO] [stdout] | [INFO] [stdout] 295 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | let mut post_id; [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/lib.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let mut author_id; [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/lib.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:509:29 [INFO] [stdout] | [INFO] [stdout] 509 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:515:29 [INFO] [stdout] | [INFO] [stdout] 515 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:521:29 [INFO] [stdout] | [INFO] [stdout] 521 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:527:29 [INFO] [stdout] | [INFO] [stdout] 527 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:533:21 [INFO] [stdout] | [INFO] [stdout] 533 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userid` is never read [INFO] [stdout] --> src/lib.rs:547:13 [INFO] [stdout] | [INFO] [stdout] 547 | let mut userid = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | let mut errors: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `does_user_exist` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:576:13 [INFO] [stdout] | [INFO] [stdout] 576 | let mut does_user_exist: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_does_user_exist` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userr` is never read [INFO] [stdout] --> src/lib.rs:577:13 [INFO] [stdout] | [INFO] [stdout] 577 | let mut userr = User { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `does_user_exist` is never read [INFO] [stdout] --> src/lib.rs:583:25 [INFO] [stdout] | [INFO] [stdout] 583 | Some(user) => { does_user_exist = true; context.insert("user", &user); userr = user;}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_inserted_row_id` is never read [INFO] [stdout] --> src/lib.rs:611:13 [INFO] [stdout] | [INFO] [stdout] 611 | let mut last_inserted_row_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `post_id` is never read [INFO] [stdout] --> src/lib.rs:688:13 [INFO] [stdout] | [INFO] [stdout] 688 | let mut post_id= 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param_user_id` [INFO] [stdout] --> src/lib.rs:690:13 [INFO] [stdout] | [INFO] [stdout] 690 | let mut param_user_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_param_user_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/lib.rs:718:20 [INFO] [stdout] | [INFO] [stdout] 718 | Ok(res)=> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:721:29 [INFO] [stdout] | [INFO] [stdout] 721 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:690:9 [INFO] [stdout] | [INFO] [stdout] 690 | let mut param_user_id = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `does_user_exist` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:749:13 [INFO] [stdout] | [INFO] [stdout] 749 | let mut does_user_exist: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_does_user_exist` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `userr` is never read [INFO] [stdout] --> src/lib.rs:750:13 [INFO] [stdout] | [INFO] [stdout] 750 | let mut userr = User { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `does_user_exist` is never read [INFO] [stdout] --> src/lib.rs:756:25 [INFO] [stdout] | [INFO] [stdout] 756 | Some(user) => { does_user_exist = true; context.insert("user", &user); userr = user;}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:808:29 [INFO] [stdout] | [INFO] [stdout] 808 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:814:29 [INFO] [stdout] | [INFO] [stdout] 814 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:820:29 [INFO] [stdout] | [INFO] [stdout] 820 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:826:29 [INFO] [stdout] | [INFO] [stdout] 826 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:832:29 [INFO] [stdout] | [INFO] [stdout] 832 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:838:21 [INFO] [stdout] | [INFO] [stdout] 838 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `u` is never read [INFO] [stdout] --> src/lib.rs:1169:13 [INFO] [stdout] | [INFO] [stdout] 1169 | let mut u = String::new(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:1170:13 [INFO] [stdout] | [INFO] [stdout] 1170 | let mut p = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_username` is never read [INFO] [stdout] --> src/lib.rs:1175:13 [INFO] [stdout] | [INFO] [stdout] 1175 | let mut jwp_user_username = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `jwp_user_password` is assigned to, but never used [INFO] [stdout] --> src/lib.rs:1176:13 [INFO] [stdout] | [INFO] [stdout] 1176 | let mut jwp_user_password = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_jwp_user_password` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_userid` is never read [INFO] [stdout] --> src/lib.rs:1177:13 [INFO] [stdout] | [INFO] [stdout] 1177 | let mut jwp_user_userid = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> src/lib.rs:1257:29 [INFO] [stdout] | [INFO] [stdout] 1257 | Err(code) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crap` [INFO] [stdout] --> src/lib.rs:1283:21 [INFO] [stdout] | [INFO] [stdout] 1283 | let crap = match TEMPLATES.render("homepage.html", &context){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_crap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_inserted_row_id` is never read [INFO] [stdout] --> src/lib.rs:1321:29 [INFO] [stdout] | [INFO] [stdout] 1321 | let mut last_inserted_row_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `jwp_user_password` is never read [INFO] [stdout] --> src/lib.rs:1378:29 [INFO] [stdout] | [INFO] [stdout] 1378 | ... jwp_user_password = match statement.read::("password"){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1170:9 [INFO] [stdout] | [INFO] [stdout] 1170 | let mut p = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/lib.rs:1474:17 [INFO] [stdout] | [INFO] [stdout] 1474 | if let Some(user) = user.0 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:1295:34 [INFO] [stdout] | [INFO] [stdout] 1295 | let plain_password = password.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.64s [INFO] running `Command { std: "docker" "inspect" "d2f0efad9da37dbffb1a91285157000cf5450cbd2fe1620ab6b366749987e4e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2f0efad9da37dbffb1a91285157000cf5450cbd2fe1620ab6b366749987e4e8", kill_on_drop: false }` [INFO] [stdout] d2f0efad9da37dbffb1a91285157000cf5450cbd2fe1620ab6b366749987e4e8