[INFO] cloning repository https://github.com/kenkomu/blog_app
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kenkomu/blog_app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenkomu%2Fblog_app", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenkomu%2Fblog_app'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f4e402249d0b5ee22bce397a52bf9480029578ea
[INFO] testing kenkomu/blog_app against 1.95.0 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenkomu%2Fblog_app" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  59% (2043/3442)
Updating files:  60% (2066/3442)
Updating files:  61% (2100/3442)
Updating files:  62% (2135/3442)
Updating files:  63% (2169/3442)
Updating files:  64% (2203/3442)
Updating files:  65% (2238/3442)
Updating files:  66% (2272/3442)
Updating files:  67% (2307/3442)
Updating files:  68% (2341/3442)
Updating files:  69% (2375/3442)
Updating files:  70% (2410/3442)
Updating files:  70% (2418/3442)
Updating files:  71% (2444/3442)
Updating files:  72% (2479/3442)
Updating files:  73% (2513/3442)
Updating files:  73% (2540/3442)
Updating files:  74% (2548/3442)
Updating files:  75% (2582/3442)
Updating files:  75% (2614/3442)
Updating files:  76% (2616/3442)
Updating files:  77% (2651/3442)
Updating files:  78% (2685/3442)
Updating files:  79% (2720/3442)
Updating files:  80% (2754/3442)
Updating files:  81% (2789/3442)
Updating files:  82% (2823/3442)
Updating files:  82% (2840/3442)
Updating files:  83% (2857/3442)
Updating files:  84% (2892/3442)
Updating files:  85% (2926/3442)
Updating files:  85% (2928/3442)
Updating files:  86% (2961/3442)
Updating files:  87% (2995/3442)
Updating files:  88% (3029/3442)
Updating files:  89% (3064/3442)
Updating files:  90% (3098/3442)
Updating files:  91% (3133/3442)
Updating files:  92% (3167/3442)
Updating files:  92% (3173/3442)
Updating files:  93% (3202/3442)
Updating files:  94% (3236/3442)
Updating files:  95% (3270/3442)
Updating files:  96% (3305/3442)
Updating files:  97% (3339/3442)
Updating files:  98% (3374/3442)
Updating files:  99% (3408/3442)
Updating files: 100% (3442/3442)
Updating files: 100% (3442/3442), done.
[INFO] started tweaking git repo https://github.com/kenkomu/blog_app
[INFO] finished tweaking git repo https://github.com/kenkomu/blog_app
[INFO] tweaked toml for git repo https://github.com/kenkomu/blog_app written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kenkomu/blog_app on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kenkomu/blog_app 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded actix-web-lab-derive v0.20.0
[INFO] [stderr]   Downloaded askama_escape v0.10.3
[INFO] [stderr]   Downloaded impl-more v0.1.6
[INFO] [stderr]   Downloaded serde v1.0.204
[INFO] [stderr]   Downloaded diesel_table_macro_syntax v0.2.0
[INFO] [stderr]   Downloaded env_filter v0.1.0
[INFO] [stderr]   Downloaded anstyle v1.0.7
[INFO] [stderr]   Downloaded dsl_auto_type v0.1.2
[INFO] [stderr]   Downloaded actix-identity v0.7.1
[INFO] [stderr]   Downloaded tokio-retry v0.3.0
[INFO] [stderr]   Downloaded env_logger v0.11.3
[INFO] [stderr]   Downloaded pq-sys v0.6.1
[INFO] [stderr]   Downloaded askama_parser v0.2.1
[INFO] [stderr]   Downloaded askama v0.12.1
[INFO] [stderr]   Downloaded actix-session v0.9.0
[INFO] [stderr]   Downloaded askama_derive v0.12.5
[INFO] [stderr]   Downloaded bytes v1.6.1
[INFO] [stderr]   Downloaded actix-server v2.4.0
[INFO] [stderr]   Downloaded basic-toml v0.1.9
[INFO] [stderr]   Downloaded mediatype v0.19.18
[INFO] [stderr]   Downloaded cc v1.1.6
[INFO] [stderr]   Downloaded serde_derive v1.0.204
[INFO] [stderr]   Downloaded actix-files v0.6.6
[INFO] [stderr]   Downloaded diesel_derives v2.2.2
[INFO] [stderr]   Downloaded serde_json v1.0.120
[INFO] [stderr]   Downloaded actix-http v3.8.0
[INFO] [stderr]   Downloaded actix-web-lab v0.20.2
[INFO] [stderr]   Downloaded syn v2.0.71
[INFO] [stderr]   Downloaded redis v0.25.4
[INFO] [stderr]   Downloaded actix-web v4.8.0
[INFO] [stderr]   Downloaded diesel v2.2.2
[INFO] [stderr]   Downloaded object v0.36.1
[INFO] [stderr]   Downloaded tokio v1.38.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] de664ee913f63f48ab3391145864c6fc2f50899b79bdcbc08b481f7b2ea2bac4
[INFO] running `Command { std: "docker" "start" "-a" "de664ee913f63f48ab3391145864c6fc2f50899b79bdcbc08b481f7b2ea2bac4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "de664ee913f63f48ab3391145864c6fc2f50899b79bdcbc08b481f7b2ea2bac4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "de664ee913f63f48ab3391145864c6fc2f50899b79bdcbc08b481f7b2ea2bac4", kill_on_drop: false }`
[INFO] [stdout] de664ee913f63f48ab3391145864c6fc2f50899b79bdcbc08b481f7b2ea2bac4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 94116d506612c6339fa11b262acaa17cb20bbe8136cfe1a041242c455756127f
[INFO] running `Command { std: "docker" "start" "-a" "94116d506612c6339fa11b262acaa17cb20bbe8136cfe1a041242c455756127f", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling bytes v1.6.1
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling regex-syntax v0.8.4
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling zstd-safe v7.2.0
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling tinyvec v1.8.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]    Compiling regex-lite v0.1.6
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]    Compiling num-conv v0.1.0
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]    Compiling time-macros v0.2.18
[INFO] [stderr]    Compiling miniz_oxide v0.7.4
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling bytestring v1.3.1
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling mio v0.8.11
[INFO] [stderr]    Compiling syn v2.0.71
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling jobserver v0.1.31
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling inout v0.1.3
[INFO] [stderr]    Compiling cc v1.1.6
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]    Compiling polyval v0.6.2
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling ghash v0.5.1
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling actix-service v2.0.2
[INFO] [stderr]    Compiling brotli-decompressor v4.0.1
[INFO] [stderr]    Compiling actix-utils v3.0.1
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling serde_json v1.0.120
[INFO] [stderr]    Compiling convert_case v0.4.0
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling flate2 v1.0.30
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling time v0.3.36
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling local-channel v0.1.5
[INFO] [stderr]    Compiling encoding_rs v0.8.34
[INFO] [stderr]    Compiling base64 v0.20.0
[INFO] [stderr]    Compiling libm v0.2.8
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling pq-sys v0.6.1
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling v_htmlescape v0.15.8
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling regex-automata v0.4.7
[INFO] [stderr]    Compiling brotli v6.0.0
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling anstyle-parse v0.2.4
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling zstd-sys v2.0.12+zstd.1.5.6
[INFO] [stderr]    Compiling csv-core v0.1.11
[INFO] [stderr]    Compiling iana-time-zone v0.1.60
[INFO] [stderr]    Compiling anstyle v1.0.7
[INFO] [stderr]    Compiling colorchoice v1.0.1
[INFO] [stderr]    Compiling anstyle-query v1.1.0
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.0
[INFO] [stderr]    Compiling anstream v0.6.14
[INFO] [stderr]    Compiling blowfish v0.9.1
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling humansize v2.1.3
[INFO] [stderr]    Compiling askama_escape v0.10.3
[INFO] [stderr]    Compiling mediatype v0.19.18
[INFO] [stderr]    Compiling http-range v0.1.5
[INFO] [stderr]    Compiling impl-more v0.1.6
[INFO] [stderr]    Compiling arc-swap v1.7.1
[INFO] [stderr]    Compiling bcrypt v0.15.1
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling askama_parser v0.2.1
[INFO] [stderr]    Compiling regex v1.10.5
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]    Compiling diesel_table_macro_syntax v0.2.0
[INFO] [stderr]    Compiling env_filter v0.1.0
[INFO] [stderr]    Compiling env_logger v0.11.3
[INFO] [stderr]    Compiling serde_derive v1.0.204
[INFO] [stderr]    Compiling tokio-macros v2.3.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling derive_more v0.99.18
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling actix-web-lab-derive v0.20.0
[INFO] [stderr]    Compiling async-trait v0.1.81
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]    Compiling tokio v1.38.1
[INFO] [stderr]    Compiling async-stream v0.3.5
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling dsl_auto_type v0.1.2
[INFO] [stderr]    Compiling diesel_derives v2.2.2
[INFO] [stderr]    Compiling zstd v0.13.2
[INFO] [stderr]    Compiling tokio-util v0.7.11
[INFO] [stderr]    Compiling actix-rt v2.10.0
[INFO] [stderr]    Compiling tokio-stream v0.1.15
[INFO] [stderr]    Compiling actix-server v2.4.0
[INFO] [stderr]    Compiling actix-codec v0.5.2
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling basic-toml v0.1.9
[INFO] [stderr]    Compiling csv v1.3.0
[INFO] [stderr]    Compiling serde_html_form v0.2.6
[INFO] [stderr]    Compiling chrono v0.4.38
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]    Compiling askama_derive v0.12.5
[INFO] [stderr]    Compiling diesel v2.2.2
[INFO] [stderr]    Compiling askama v0.12.1
[INFO] [stderr]    Compiling actix-http v3.8.0
[INFO] [stderr]    Compiling actix-web v4.8.0
[INFO] [stderr]    Compiling actix-session v0.9.0
[INFO] [stderr]    Compiling actix-files v0.6.6
[INFO] [stderr]    Compiling actix-web-lab v0.20.2
[INFO] [stderr]    Compiling actix-identity v0.7.1
[INFO] [stderr]    Compiling blog_app v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::schema::comments`
[INFO] [stdout]  --> src/models/comments.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::comments;
[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: `crate::schema::posts`
[INFO] [stdout]  --> src/models/posts.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::posts;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NewPost`
[INFO] [stdout]  --> src/controllers/posts.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::models::posts::{NewPost, Post};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NewUser` and `Users`
[INFO] [stdout]  --> src/controllers/posts.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::models::users::{NewUser, Users, LoginForm};
[INFO] [stdout]   |                            ^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App` and `HttpServer`
[INFO] [stdout]  --> src/controllers/posts.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, App, HttpServer, Responder, HttpResponse};
[INFO] [stdout]   |                      ^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App` and `HttpServer`
[INFO] [stdout]  --> src/controllers/users.rs:2:22
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest};
[INFO] [stdout]   |                      ^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::web::Redirect`
[INFO] [stdout]  --> src/controllers/users.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::web::Redirect;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_a_user_by_id`
[INFO] [stdout]  --> src/controllers/users.rs:5:45
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::db_operations::users::{add_user, get_a_user_by_id, get_a_user_by_mail};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App`, `HttpRequest`, `HttpServer`, and `web`
[INFO] [stdout]  --> src/controllers/dashboard.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest, Error};
[INFO] [stdout]   |                 ^^^  ^^^  ^^^^^^^^^^                           ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LoginForm`, `NewUser`, and `Users`
[INFO] [stdout]  --> src/controllers/dashboard.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::models::users::{NewUser, Users, LoginForm};
[INFO] [stdout]   |                            ^^^^^^^  ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::db_operations::users::get_a_user_by_mail`
[INFO] [stdout]  --> src/controllers/dashboard.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::db_operations::users::get_a_user_by_mail;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::app_state::AppState`
[INFO] [stdout]  --> src/controllers/dashboard.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::app_state::AppState;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DashboardTemplate`, `LoginTemplate`, and `RegisterTemplate`
[INFO] [stdout]  --> src/controllers/dashboard.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::ui::{LoginTemplate, DashboardTemplate, RegisterTemplate};
[INFO] [stdout]   |                         ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stdout]  --> src/controllers/dashboard.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | use bcrypt::{hash, DEFAULT_COST, verify};
[INFO] [stdout]   |              ^^^^  ^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `askama::Template`
[INFO] [stdout]  --> src/controllers/dashboard.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use askama::Template;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Session`
[INFO] [stdout]   --> src/main.rs:10:50
[INFO] [stdout]    |
[INFO] [stdout] 10 | use actix_session::{storage::CookieSessionStore, Session, SessionMiddleware};
[INFO] [stdout]    |                                                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use chrono::Utc;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_post`, `delete_post_item`, `fetch_all_posts`, `get_posts_item`, and `update_post`
[INFO] [stdout]   --> src/main.rs:14:33
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::controllers::posts::{fetch_all_posts, get_posts_item , create_post, update_post, delete_post_item};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^   ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LoginForm` and `Users`
[INFO] [stdout]   --> src/main.rs:16:28
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::models::users::{Users, LoginForm};
[INFO] [stdout]    |                            ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::app_state`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::models::app_state;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_session::config::PersistentSession`
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use actix_session::config::PersistentSession;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `middleware`
[INFO] [stdout]   --> src/main.rs:22:70
[INFO] [stdout]    |
[INFO] [stdout] 22 | use actix_web::{cookie::{time::Duration, Key}, web, App, HttpServer, Responder,  middleware, HttpResponse};
[INFO] [stdout]    |                                                                      ^^^^^^^^^   ^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `askama::Template`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use askama::Template;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Error`, `HttpMessage`, `dev::ServiceRequest`, and `dev::ServiceResponse`
[INFO] [stdout]   --> src/main.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 26 | use actix_web::{Error, dev::ServiceRequest, dev::ServiceResponse, HttpMessage};
[INFO] [stdout]    |                 ^^^^^  ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::ui::LoginTemplate`
[INFO] [stdout]   --> src/main.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use crate::models::ui::LoginTemplate;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::prelude`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use diesel::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]   --> src/db_operations/posts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 |         Ok(data)=>{
[INFO] [stdout]    |            ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `form`
[INFO] [stdout]  --> src/controllers/posts.rs:7:26
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_post(form: web::Form<LoginForm>) -> impl Responder {
[INFO] [stdout]   |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:10:30
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub async fn fetch_all_posts(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:16:29
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_posts_item(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]   --> src/controllers/posts.rs:31:26
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:31:49
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/controllers/posts.rs:36:31
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                               ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:36:55
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                                                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/users.rs:35:29
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn dashboard_page(state: web::Data<AppState>, session: Session, req: HttpRequest) -> Result<HttpResponse, actix_web::Error> {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]   --> src/controllers/users.rs:35:75
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn dashboard_page(state: web::Data<AppState>, session: Session, req: HttpRequest) -> Result<HttpResponse, actix_web::Error> {
[INFO] [stdout]    |                                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/controllers/users.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 128 |         Ok(user) => {
[INFO] [stdout]     |            ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/controllers/users.rs:140:22
[INFO] [stdout]     |
[INFO] [stdout] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]     |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]    --> src/controllers/users.rs:140:46
[INFO] [stdout]     |
[INFO] [stdout] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ONE_MINUTE` is never used
[INFO] [stdout]   --> src/main.rs:32:7
[INFO] [stdout]    |
[INFO] [stdout] 32 | const ONE_MINUTE: Duration = Duration::minutes(1);
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_posts` is never used
[INFO] [stdout]  --> src/db_operations/posts.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn get_all_posts(connection :& mut  PgConnection)->Vec<Post>{
[INFO] [stdout]   |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_posts` is never used
[INFO] [stdout]   --> src/db_operations/posts.rs:29:8
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub fn add_posts(new_post : NewPost, connection :& mut  PgConnection)->Result<bool,String>{
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_users` is never used
[INFO] [stdout]  --> src/db_operations/users.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_all_users(connection: &mut PgConnection) -> Vec<Users> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_user_by_id` is never used
[INFO] [stdout]   --> src/db_operations/users.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub fn get_a_user_by_id(connection: &mut PgConnection, user_id: i32) -> Option<Users> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `default_avatar_url` is never used
[INFO] [stdout]   --> src/models/users.rs:39:4
[INFO] [stdout]    |
[INFO] [stdout] 39 | fn default_avatar_url() -> String {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_post` is never used
[INFO] [stdout]  --> src/controllers/posts.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_post(form: web::Form<LoginForm>) -> impl Responder {
[INFO] [stdout]   |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_all_posts` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub async fn fetch_all_posts(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_posts_item` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_posts_item(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_post` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_post_item` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:36:14
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_user` is never used
[INFO] [stdout]    --> src/controllers/users.rs:140:10
[INFO] [stdout]     |
[INFO] [stdout] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 33s
[INFO] running `Command { std: "docker" "inspect" "94116d506612c6339fa11b262acaa17cb20bbe8136cfe1a041242c455756127f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "94116d506612c6339fa11b262acaa17cb20bbe8136cfe1a041242c455756127f", kill_on_drop: false }`
[INFO] [stdout] 94116d506612c6339fa11b262acaa17cb20bbe8136cfe1a041242c455756127f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6f51f2d608b925b00926d8b731ada82396646a19d5f4afe7aed0b8b6837a425f
[INFO] running `Command { std: "docker" "start" "-a" "6f51f2d608b925b00926d8b731ada82396646a19d5f4afe7aed0b8b6837a425f", kill_on_drop: false }`
[INFO] [stderr]    Compiling blog_app v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::schema::comments`
[INFO] [stdout]  --> src/models/comments.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::comments;
[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: `crate::schema::posts`
[INFO] [stdout]  --> src/models/posts.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::posts;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NewPost`
[INFO] [stdout]  --> src/controllers/posts.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::models::posts::{NewPost, Post};
[INFO] [stdout]   |                            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NewUser` and `Users`
[INFO] [stdout]  --> src/controllers/posts.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::models::users::{NewUser, Users, LoginForm};
[INFO] [stdout]   |                            ^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App` and `HttpServer`
[INFO] [stdout]  --> src/controllers/posts.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, App, HttpServer, Responder, HttpResponse};
[INFO] [stdout]   |                      ^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App` and `HttpServer`
[INFO] [stdout]  --> src/controllers/users.rs:2:22
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest};
[INFO] [stdout]   |                      ^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::web::Redirect`
[INFO] [stdout]  --> src/controllers/users.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::web::Redirect;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_a_user_by_id`
[INFO] [stdout]  --> src/controllers/users.rs:5:45
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::db_operations::users::{add_user, get_a_user_by_id, get_a_user_by_mail};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App`, `HttpRequest`, `HttpServer`, and `web`
[INFO] [stdout]  --> src/controllers/dashboard.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest, Error};
[INFO] [stdout]   |                 ^^^  ^^^  ^^^^^^^^^^                           ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LoginForm`, `NewUser`, and `Users`
[INFO] [stdout]  --> src/controllers/dashboard.rs:3:28
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::models::users::{NewUser, Users, LoginForm};
[INFO] [stdout]   |                            ^^^^^^^  ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::db_operations::users::get_a_user_by_mail`
[INFO] [stdout]  --> src/controllers/dashboard.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::db_operations::users::get_a_user_by_mail;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::app_state::AppState`
[INFO] [stdout]  --> src/controllers/dashboard.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::app_state::AppState;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DashboardTemplate`, `LoginTemplate`, and `RegisterTemplate`
[INFO] [stdout]  --> src/controllers/dashboard.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::models::ui::{LoginTemplate, DashboardTemplate, RegisterTemplate};
[INFO] [stdout]   |                         ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stdout]  --> src/controllers/dashboard.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | use bcrypt::{hash, DEFAULT_COST, verify};
[INFO] [stdout]   |              ^^^^  ^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `askama::Template`
[INFO] [stdout]  --> src/controllers/dashboard.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use askama::Template;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Session`
[INFO] [stdout]   --> src/main.rs:10:50
[INFO] [stdout]    |
[INFO] [stdout] 10 | use actix_session::{storage::CookieSessionStore, Session, SessionMiddleware};
[INFO] [stdout]    |                                                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use chrono::Utc;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_post`, `delete_post_item`, `fetch_all_posts`, `get_posts_item`, and `update_post`
[INFO] [stdout]   --> src/main.rs:14:33
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::controllers::posts::{fetch_all_posts, get_posts_item , create_post, update_post, delete_post_item};
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^   ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LoginForm` and `Users`
[INFO] [stdout]   --> src/main.rs:16:28
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::models::users::{Users, LoginForm};
[INFO] [stdout]    |                            ^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::app_state`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::models::app_state;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_session::config::PersistentSession`
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use actix_session::config::PersistentSession;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `middleware`
[INFO] [stdout]   --> src/main.rs:22:70
[INFO] [stdout]    |
[INFO] [stdout] 22 | use actix_web::{cookie::{time::Duration, Key}, web, App, HttpServer, Responder,  middleware, HttpResponse};
[INFO] [stdout]    |                                                                      ^^^^^^^^^   ^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `askama::Template`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use askama::Template;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Error`, `HttpMessage`, `dev::ServiceRequest`, and `dev::ServiceResponse`
[INFO] [stdout]   --> src/main.rs:26:17
[INFO] [stdout]    |
[INFO] [stdout] 26 | use actix_web::{Error, dev::ServiceRequest, dev::ServiceResponse, HttpMessage};
[INFO] [stdout]    |                 ^^^^^  ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::ui::LoginTemplate`
[INFO] [stdout]   --> src/main.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 29 | use crate::models::ui::LoginTemplate;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::prelude`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use diesel::prelude::*;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]   --> src/db_operations/posts.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 |         Ok(data)=>{
[INFO] [stdout]    |            ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `form`
[INFO] [stdout]  --> src/controllers/posts.rs:7:26
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_post(form: web::Form<LoginForm>) -> impl Responder {
[INFO] [stdout]   |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:10:30
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub async fn fetch_all_posts(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:16:29
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_posts_item(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]   --> src/controllers/posts.rs:31:26
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:31:49
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]   --> src/controllers/posts.rs:36:31
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                               ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/posts.rs:36:55
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |                                                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/controllers/users.rs:35:29
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn dashboard_page(state: web::Data<AppState>, session: Session, req: HttpRequest) -> Result<HttpResponse, actix_web::Error> {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]   --> src/controllers/users.rs:35:75
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub async fn dashboard_page(state: web::Data<AppState>, session: Session, req: HttpRequest) -> Result<HttpResponse, actix_web::Error> {
[INFO] [stdout]    |                                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/controllers/users.rs:128:12
[INFO] [stdout]     |
[INFO] [stdout] 128 |         Ok(user) => {
[INFO] [stdout]     |            ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/controllers/users.rs:140:22
[INFO] [stdout]     |
[INFO] [stdout] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]     |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]    --> src/controllers/users.rs:140:46
[INFO] [stdout]     |
[INFO] [stdout] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ONE_MINUTE` is never used
[INFO] [stdout]   --> src/main.rs:32:7
[INFO] [stdout]    |
[INFO] [stdout] 32 | const ONE_MINUTE: Duration = Duration::minutes(1);
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_posts` is never used
[INFO] [stdout]  --> src/db_operations/posts.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn get_all_posts(connection :& mut  PgConnection)->Vec<Post>{
[INFO] [stdout]   |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_posts` is never used
[INFO] [stdout]   --> src/db_operations/posts.rs:29:8
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub fn add_posts(new_post : NewPost, connection :& mut  PgConnection)->Result<bool,String>{
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_users` is never used
[INFO] [stdout]  --> src/db_operations/users.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_all_users(connection: &mut PgConnection) -> Vec<Users> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_user_by_id` is never used
[INFO] [stdout]   --> src/db_operations/users.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub fn get_a_user_by_id(connection: &mut PgConnection, user_id: i32) -> Option<Users> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `default_avatar_url` is never used
[INFO] [stdout]   --> src/models/users.rs:39:4
[INFO] [stdout]    |
[INFO] [stdout] 39 | fn default_avatar_url() -> String {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_post` is never used
[INFO] [stdout]  --> src/controllers/posts.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_post(form: web::Form<LoginForm>) -> impl Responder {
[INFO] [stdout]   |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_all_posts` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub async fn fetch_all_posts(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_posts_item` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:16:14
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub async fn get_posts_item(state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_post` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_post_item` is never used
[INFO] [stdout]   --> src/controllers/posts.rs:36:14
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_user` is never used
[INFO] [stdout]    --> src/controllers/users.rs:140:10
[INFO] [stdout]     |
[INFO] [stdout] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.34s
[INFO] running `Command { std: "docker" "inspect" "6f51f2d608b925b00926d8b731ada82396646a19d5f4afe7aed0b8b6837a425f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6f51f2d608b925b00926d8b731ada82396646a19d5f4afe7aed0b8b6837a425f", kill_on_drop: false }`
[INFO] [stdout] 6f51f2d608b925b00926d8b731ada82396646a19d5f4afe7aed0b8b6837a425f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] c5b32860fc8f611e8245626e7090fad4b6bc9cf1465365bd3188d23cfb78c59b
[INFO] running `Command { std: "docker" "start" "-a" "c5b32860fc8f611e8245626e7090fad4b6bc9cf1465365bd3188d23cfb78c59b", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `crate::schema::comments`
[INFO] [stderr]  --> src/models/comments.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::schema::comments;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::schema::posts`
[INFO] [stderr]  --> src/models/posts.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::schema::posts;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `NewPost`
[INFO] [stderr]  --> src/controllers/posts.rs:2:28
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::models::posts::{NewPost, Post};
[INFO] [stderr]   |                            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `NewUser` and `Users`
[INFO] [stderr]  --> src/controllers/posts.rs:3:28
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::models::users::{NewUser, Users, LoginForm};
[INFO] [stderr]   |                            ^^^^^^^  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `App` and `HttpServer`
[INFO] [stderr]  --> src/controllers/posts.rs:4:22
[INFO] [stderr]   |
[INFO] [stderr] 4 | use actix_web::{web, App, HttpServer, Responder, HttpResponse};
[INFO] [stderr]   |                      ^^^  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `App` and `HttpServer`
[INFO] [stderr]  --> src/controllers/users.rs:2:22
[INFO] [stderr]   |
[INFO] [stderr] 2 | use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest};
[INFO] [stderr]   |                      ^^^  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `actix_web::web::Redirect`
[INFO] [stderr]  --> src/controllers/users.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use actix_web::web::Redirect;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `get_a_user_by_id`
[INFO] [stderr]  --> src/controllers/users.rs:5:45
[INFO] [stderr]   |
[INFO] [stderr] 5 | use crate::db_operations::users::{add_user, get_a_user_by_id, get_a_user_by_mail};
[INFO] [stderr]   |                                             ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `App`, `HttpRequest`, `HttpServer`, and `web`
[INFO] [stderr]  --> src/controllers/dashboard.rs:2:17
[INFO] [stderr]   |
[INFO] [stderr] 2 | use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest, Error};
[INFO] [stderr]   |                 ^^^  ^^^  ^^^^^^^^^^                           ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `LoginForm`, `NewUser`, and `Users`
[INFO] [stderr]  --> src/controllers/dashboard.rs:3:28
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::models::users::{NewUser, Users, LoginForm};
[INFO] [stderr]   |                            ^^^^^^^  ^^^^^  ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::db_operations::users::get_a_user_by_mail`
[INFO] [stderr]  --> src/controllers/dashboard.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use crate::db_operations::users::get_a_user_by_mail;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::models::app_state::AppState`
[INFO] [stderr]  --> src/controllers/dashboard.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use crate::models::app_state::AppState;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `DashboardTemplate`, `LoginTemplate`, and `RegisterTemplate`
[INFO] [stderr]  --> src/controllers/dashboard.rs:6:25
[INFO] [stderr]   |
[INFO] [stderr] 6 | use crate::models::ui::{LoginTemplate, DashboardTemplate, RegisterTemplate};
[INFO] [stderr]   |                         ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stderr]  --> src/controllers/dashboard.rs:7:14
[INFO] [stderr]   |
[INFO] [stderr] 7 | use bcrypt::{hash, DEFAULT_COST, verify};
[INFO] [stderr]   |              ^^^^  ^^^^^^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `askama::Template`
[INFO] [stderr]  --> src/controllers/dashboard.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | use askama::Template;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Session`
[INFO] [stderr]   --> src/main.rs:10:50
[INFO] [stderr]    |
[INFO] [stderr] 10 | use actix_session::{storage::CookieSessionStore, Session, SessionMiddleware};
[INFO] [stderr]    |                                                  ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `chrono::Utc`
[INFO] [stderr]   --> src/main.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 13 | use chrono::Utc;
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_post`, `delete_post_item`, `fetch_all_posts`, `get_posts_item`, and `update_post`
[INFO] [stderr]   --> src/main.rs:14:33
[INFO] [stderr]    |
[INFO] [stderr] 14 | use crate::controllers::posts::{fetch_all_posts, get_posts_item , create_post, update_post, delete_post_item};
[INFO] [stderr]    |                                 ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^   ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `LoginForm` and `Users`
[INFO] [stderr]   --> src/main.rs:16:28
[INFO] [stderr]    |
[INFO] [stderr] 16 | use crate::models::users::{Users, LoginForm};
[INFO] [stderr]    |                            ^^^^^  ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::models::app_state`
[INFO] [stderr]   --> src/main.rs:17:5
[INFO] [stderr]    |
[INFO] [stderr] 17 | use crate::models::app_state;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `actix_session::config::PersistentSession`
[INFO] [stderr]   --> src/main.rs:21:5
[INFO] [stderr]    |
[INFO] [stderr] 21 | use actix_session::config::PersistentSession;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpResponse`, `Responder`, and `middleware`
[INFO] [stderr]   --> src/main.rs:22:70
[INFO] [stderr]    |
[INFO] [stderr] 22 | use actix_web::{cookie::{time::Duration, Key}, web, App, HttpServer, Responder,  middleware, HttpResponse};
[INFO] [stderr]    |                                                                      ^^^^^^^^^   ^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `askama::Template`
[INFO] [stderr]   --> src/main.rs:23:5
[INFO] [stderr]    |
[INFO] [stderr] 23 | use askama::Template;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Error`, `HttpMessage`, `dev::ServiceRequest`, and `dev::ServiceResponse`
[INFO] [stderr]   --> src/main.rs:26:17
[INFO] [stderr]    |
[INFO] [stderr] 26 | use actix_web::{Error, dev::ServiceRequest, dev::ServiceResponse, HttpMessage};
[INFO] [stderr]    |                 ^^^^^  ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::models::ui::LoginTemplate`
[INFO] [stderr]   --> src/main.rs:29:5
[INFO] [stderr]    |
[INFO] [stderr] 29 | use crate::models::ui::LoginTemplate;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `diesel::prelude`
[INFO] [stderr]   --> src/main.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | use diesel::prelude::*;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `data`
[INFO] [stderr]   --> src/db_operations/posts.rs:36:12
[INFO] [stderr]    |
[INFO] [stderr] 36 |         Ok(data)=>{
[INFO] [stderr]    |            ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `form`
[INFO] [stderr]  --> src/controllers/posts.rs:7:26
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub async fn create_post(form: web::Form<LoginForm>) -> impl Responder {
[INFO] [stderr]   |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_form`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]   --> src/controllers/posts.rs:10:30
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub async fn fetch_all_posts(state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]   --> src/controllers/posts.rs:16:29
[INFO] [stderr]    |
[INFO] [stderr] 16 | pub async fn get_posts_item(state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `item`
[INFO] [stderr]   --> src/controllers/posts.rs:31:26
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]   --> src/controllers/posts.rs:31:49
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |                                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `path`
[INFO] [stderr]   --> src/controllers/posts.rs:36:31
[INFO] [stderr]    |
[INFO] [stderr] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |                               ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]   --> src/controllers/posts.rs:36:55
[INFO] [stderr]    |
[INFO] [stderr] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |                                                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]   --> src/controllers/users.rs:35:29
[INFO] [stderr]    |
[INFO] [stderr] 35 | pub async fn dashboard_page(state: web::Data<AppState>, session: Session, req: HttpRequest) -> Result<HttpResponse, actix_web::Error> {
[INFO] [stderr]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `req`
[INFO] [stderr]   --> src/controllers/users.rs:35:75
[INFO] [stderr]    |
[INFO] [stderr] 35 | pub async fn dashboard_page(state: web::Data<AppState>, session: Session, req: HttpRequest) -> Result<HttpResponse, actix_web::Error> {
[INFO] [stderr]    |                                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `user`
[INFO] [stderr]    --> src/controllers/users.rs:128:12
[INFO] [stderr]     |
[INFO] [stderr] 128 |         Ok(user) => {
[INFO] [stderr]     |            ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `item`
[INFO] [stderr]    --> src/controllers/users.rs:140:22
[INFO] [stderr]     |
[INFO] [stderr] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]     |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]    --> src/controllers/users.rs:140:46
[INFO] [stderr]     |
[INFO] [stderr] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: constant `ONE_MINUTE` is never used
[INFO] [stderr]   --> src/main.rs:32:7
[INFO] [stderr]    |
[INFO] [stderr] 32 | const ONE_MINUTE: Duration = Duration::minutes(1);
[INFO] [stderr]    |       ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_all_posts` is never used
[INFO] [stderr]  --> src/db_operations/posts.rs:4:8
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub fn get_all_posts(connection :& mut  PgConnection)->Vec<Post>{
[INFO] [stderr]   |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `add_posts` is never used
[INFO] [stderr]   --> src/db_operations/posts.rs:29:8
[INFO] [stderr]    |
[INFO] [stderr] 29 | pub fn add_posts(new_post : NewPost, connection :& mut  PgConnection)->Result<bool,String>{
[INFO] [stderr]    |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_all_users` is never used
[INFO] [stderr]  --> src/db_operations/users.rs:5:8
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub fn get_all_users(connection: &mut PgConnection) -> Vec<Users> {
[INFO] [stderr]   |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_a_user_by_id` is never used
[INFO] [stderr]   --> src/db_operations/users.rs:40:8
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub fn get_a_user_by_id(connection: &mut PgConnection, user_id: i32) -> Option<Users> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `default_avatar_url` is never used
[INFO] [stderr]   --> src/models/users.rs:39:4
[INFO] [stderr]    |
[INFO] [stderr] 39 | fn default_avatar_url() -> String {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `create_post` is never used
[INFO] [stderr]  --> src/controllers/posts.rs:7:14
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub async fn create_post(form: web::Form<LoginForm>) -> impl Responder {
[INFO] [stderr]   |              ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `fetch_all_posts` is never used
[INFO] [stderr]   --> src/controllers/posts.rs:10:14
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub async fn fetch_all_posts(state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_posts_item` is never used
[INFO] [stderr]   --> src/controllers/posts.rs:16:14
[INFO] [stderr]    |
[INFO] [stderr] 16 | pub async fn get_posts_item(state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |              ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `update_post` is never used
[INFO] [stderr]   --> src/controllers/posts.rs:31:14
[INFO] [stderr]    |
[INFO] [stderr] 31 | pub async fn update_post(item: web::Json<Post>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |              ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `delete_post_item` is never used
[INFO] [stderr]   --> src/controllers/posts.rs:36:14
[INFO] [stderr]    |
[INFO] [stderr] 36 | pub async fn delete_post_item(path: web::Path<usize>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `update_user` is never used
[INFO] [stderr]    --> src/controllers/users.rs:140:10
[INFO] [stderr]     |
[INFO] [stderr] 140 | async fn update_user(item: web::Json<Users>, state: web::Data<AppState>) -> impl Responder {
[INFO] [stderr]     |          ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `blog_app` (bin "blog_app" test) generated 51 warnings (run `cargo fix --bin "blog_app" -p blog_app --tests` to apply 38 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/blog_app-1364588576cdbdde)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "c5b32860fc8f611e8245626e7090fad4b6bc9cf1465365bd3188d23cfb78c59b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c5b32860fc8f611e8245626e7090fad4b6bc9cf1465365bd3188d23cfb78c59b", kill_on_drop: false }`
[INFO] [stdout] c5b32860fc8f611e8245626e7090fad4b6bc9cf1465365bd3188d23cfb78c59b
