[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] building kenkomu/blog_app against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenkomu%2Fblog_app" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 55% (1917/3442) Updating files: 56% (1928/3442) Updating files: 57% (1962/3442) Updating files: 58% (1997/3442) Updating files: 59% (2031/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: 65% (2266/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: 71% (2444/3442) Updating files: 72% (2479/3442) Updating files: 73% (2513/3442) Updating files: 73% (2533/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: 83% (2857/3442) Updating files: 83% (2860/3442) Updating files: 84% (2892/3442) Updating files: 85% (2926/3442) Updating files: 86% (2961/3442) Updating files: 86% (2969/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: 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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kenkomu/blog_app on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded askama_derive v0.12.5 [INFO] [stderr] Downloaded impl-more v0.1.6 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded base64 v0.20.0 [INFO] [stderr] Downloaded env_logger v0.11.3 [INFO] [stderr] Downloaded actix-web-lab-derive v0.20.0 [INFO] [stderr] Downloaded iana-time-zone v0.1.60 [INFO] [stderr] Downloaded actix-server v2.4.0 [INFO] [stderr] Downloaded zstd-safe v7.2.0 [INFO] [stderr] Downloaded bytestring v1.3.1 [INFO] [stderr] Downloaded basic-toml v0.1.9 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Downloaded object v0.36.1 [INFO] [stderr] Downloaded actix-web v4.8.0 [INFO] [stderr] Downloaded actix-web-lab v0.20.2 [INFO] [stderr] Downloaded actix-http v3.8.0 [INFO] [stderr] Downloaded actix-identity v0.7.1 [INFO] [stderr] Downloaded mediatype v0.19.18 [INFO] [stderr] Downloaded actix-session v0.9.0 [INFO] [stderr] Downloaded askama_parser v0.2.1 [INFO] [stderr] Downloaded askama v0.12.1 [INFO] [stderr] Downloaded blowfish v0.9.1 [INFO] [stderr] Downloaded dsl_auto_type v0.1.2 [INFO] [stderr] Downloaded anstyle-wincon v3.0.3 [INFO] [stderr] Downloaded tokio-macros v2.3.0 [INFO] [stderr] Downloaded diesel_derives v2.2.2 [INFO] [stderr] Downloaded diesel v2.2.2 [INFO] [stderr] Downloaded redis v0.25.4 [INFO] [stderr] Downloaded env_filter v0.1.0 [INFO] [stderr] Downloaded tokio v1.38.1 [INFO] [stderr] Downloaded anstyle-query v1.1.0 [INFO] [stderr] Downloaded serde_html_form v0.2.6 [INFO] [stderr] Downloaded colorchoice v1.0.1 [INFO] [stderr] Downloaded pq-sys v0.6.1 [INFO] [stderr] Downloaded anstyle-parse v0.2.4 [INFO] [stderr] Downloaded is_terminal_polyfill v1.70.0 [INFO] [stderr] Downloaded anstream v0.6.14 [INFO] [stderr] Downloaded anstyle v1.0.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca2eac78acf922bcef2fc7cece5a96e931b9ba4b138dc8f65862e8348852adff [INFO] running `Command { std: "docker" "start" "-a" "ca2eac78acf922bcef2fc7cece5a96e931b9ba4b138dc8f65862e8348852adff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca2eac78acf922bcef2fc7cece5a96e931b9ba4b138dc8f65862e8348852adff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca2eac78acf922bcef2fc7cece5a96e931b9ba4b138dc8f65862e8348852adff", kill_on_drop: false }` [INFO] [stdout] ca2eac78acf922bcef2fc7cece5a96e931b9ba4b138dc8f65862e8348852adff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1d557265201e9478ab93cc854bb250e7fa90788dadb92e73c921fcb13089019 [INFO] running `Command { std: "docker" "start" "-a" "f1d557265201e9478ab93cc854bb250e7fa90788dadb92e73c921fcb13089019", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling bytes v1.6.1 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [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 unicode-normalization v0.1.23 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling pq-sys v0.6.1 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling http-range v0.1.5 [INFO] [stderr] Compiling askama_escape v0.10.3 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling mediatype v0.19.18 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling askama_parser v0.2.1 [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 async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling actix-web-lab-derive v0.20.0 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling tokio v1.38.1 [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 h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [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 chrono v0.4.38 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling serde_html_form v0.2.6 [INFO] [stderr] Compiling askama_derive v0.12.5 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [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 variable: `form` [INFO] [stdout] --> src/controllers/posts.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn create_post(form: web::Form) -> impl Responder { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_form` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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) -> 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) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, session: Session, req: HttpRequest) -> Result { [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, session: Session, req: HttpRequest) -> Result { [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, state: web::Data) -> 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, state: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [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] [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{ [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{ [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 { [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 { [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) -> 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) -> 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) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, state: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 55s [INFO] running `Command { std: "docker" "inspect" "f1d557265201e9478ab93cc854bb250e7fa90788dadb92e73c921fcb13089019", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1d557265201e9478ab93cc854bb250e7fa90788dadb92e73c921fcb13089019", kill_on_drop: false }` [INFO] [stdout] f1d557265201e9478ab93cc854bb250e7fa90788dadb92e73c921fcb13089019 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb7eec5ef1794032cbc8e8281d5a75cc3e109b8ae0afb2de7c37a5518e47e68f [INFO] running `Command { std: "docker" "start" "-a" "eb7eec5ef1794032cbc8e8281d5a75cc3e109b8ae0afb2de7c37a5518e47e68f", 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 variable: `form` [INFO] [stdout] --> src/controllers/posts.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn create_post(form: web::Form) -> impl Responder { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_form` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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) -> 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) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, session: Session, req: HttpRequest) -> Result { [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, session: Session, req: HttpRequest) -> Result { [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, state: web::Data) -> 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, state: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [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] [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{ [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{ [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 { [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 { [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) -> 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) -> 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) -> 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, state: web::Data) -> 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, state: web::Data) -> 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, state: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.04s [INFO] running `Command { std: "docker" "inspect" "eb7eec5ef1794032cbc8e8281d5a75cc3e109b8ae0afb2de7c37a5518e47e68f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb7eec5ef1794032cbc8e8281d5a75cc3e109b8ae0afb2de7c37a5518e47e68f", kill_on_drop: false }` [INFO] [stdout] eb7eec5ef1794032cbc8e8281d5a75cc3e109b8ae0afb2de7c37a5518e47e68f