[INFO] cloning repository https://github.com/anthonykimani/tfhe_voting_system
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anthonykimani/tfhe_voting_system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanthonykimani%2Ftfhe_voting_system", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanthonykimani%2Ftfhe_voting_system'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5a21a93088d07d39f71f5cbc4f621449d4c84dc6
[INFO] checking anthonykimani/tfhe_voting_system against 1.95.0-beta.7 for beta-1.95-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanthonykimani%2Ftfhe_voting_system" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/anthonykimani/tfhe_voting_system
[INFO] finished tweaking git repo https://github.com/anthonykimani/tfhe_voting_system
[INFO] tweaked toml for git repo https://github.com/anthonykimani/tfhe_voting_system written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/anthonykimani/tfhe_voting_system on toolchain 1.95.0-beta.7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0-beta.7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/anthonykimani/tfhe_voting_system 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-beta.7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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-beta.7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4b97f927125b318eedf82818dbf5694b7ceafcc8494fa504e917af2a6173c902
[INFO] running `Command { std: "docker" "start" "-a" "4b97f927125b318eedf82818dbf5694b7ceafcc8494fa504e917af2a6173c902", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4b97f927125b318eedf82818dbf5694b7ceafcc8494fa504e917af2a6173c902", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4b97f927125b318eedf82818dbf5694b7ceafcc8494fa504e917af2a6173c902", kill_on_drop: false }`
[INFO] [stdout] 4b97f927125b318eedf82818dbf5694b7ceafcc8494fa504e917af2a6173c902
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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-beta.7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 292a5c84fd2765d0907f3bb953f8832ab4fc4790fec544c946a0ba8fb211e8e5
[INFO] running `Command { std: "docker" "start" "-a" "292a5c84fd2765d0907f3bb953f8832ab4fc4790fec544c946a0ba8fb211e8e5", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling serde v1.0.205
[INFO] [stderr]     Checking pin-project-lite v0.2.14
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking itoa v1.0.11
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]     Checking futures-core v0.3.30
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]    Compiling syn v2.0.72
[INFO] [stderr]     Checking once_cell v1.19.0
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking tracing-core v0.1.32
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking mio v1.0.1
[INFO] [stderr]     Checking socket2 v0.5.7
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling jobserver v0.1.32
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking futures-sink v0.3.30
[INFO] [stderr]     Checking powerfmt v0.2.0
[INFO] [stderr]     Checking bytemuck v1.16.3
[INFO] [stderr]     Checking cpufeatures v0.2.12
[INFO] [stderr]     Checking percent-encoding v2.3.1
[INFO] [stderr]    Compiling cc v1.1.8
[INFO] [stderr]     Checking tokio v1.39.2
[INFO] [stderr]     Checking deranged v0.3.11
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling libm v0.2.8
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking inout v0.1.3
[INFO] [stderr]     Checking alloc-no-stdlib v2.0.4
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking time-core v0.1.2
[INFO] [stderr]     Checking base64 v0.22.1
[INFO] [stderr]     Checking local-waker v0.1.4
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]     Checking futures-task v0.3.30
[INFO] [stderr]     Checking num-conv v0.1.0
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking futures-util v0.3.30
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking time v0.3.36
[INFO] [stderr]     Checking alloc-stdlib v0.2.2
[INFO] [stderr]     Checking tinyvec v1.8.0
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]    Compiling zstd-sys v2.0.13+zstd.1.5.6
[INFO] [stderr]     Checking ryu v1.0.18
[INFO] [stderr]    Compiling serde_json v1.0.122
[INFO] [stderr]     Checking equivalent v1.0.1
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking regex-syntax v0.8.4
[INFO] [stderr]     Checking adler v1.0.2
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]     Checking bitflags v2.6.0
[INFO] [stderr]     Checking reborrow v0.5.5
[INFO] [stderr]     Checking miniz_oxide v0.7.4
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling bytestring v1.3.1
[INFO] [stderr]     Checking unicode-normalization v0.1.23
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]     Checking indexmap v2.3.0
[INFO] [stderr]     Checking brotli-decompressor v4.0.1
[INFO] [stderr]     Checking crossbeam-deque v0.8.5
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]     Checking regex-automata v0.4.7
[INFO] [stderr]     Checking actix-utils v3.0.1
[INFO] [stderr]     Checking actix-service v2.0.2
[INFO] [stderr]     Checking tokio-util v0.7.11
[INFO] [stderr]     Checking actix-rt v2.10.0
[INFO] [stderr]     Checking form_urlencoded v1.2.1
[INFO] [stderr]     Checking crc32fast v1.4.2
[INFO] [stderr]     Checking unicode-bidi v0.3.15
[INFO] [stderr]     Checking either v1.13.0
[INFO] [stderr]     Checking flate2 v1.0.31
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]     Checking idna v0.5.0
[INFO] [stderr]     Checking brotli v6.0.0
[INFO] [stderr]    Compiling serde_derive v1.0.205
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]     Checking regex v1.10.6
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling derive_more v0.99.18
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking local-channel v0.1.5
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking encoding_rs v0.8.34
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]     Checking httpdate v1.0.3
[INFO] [stderr]     Checking regex-lite v0.1.6
[INFO] [stderr]     Checking language-tags v0.3.2
[INFO] [stderr]    Compiling concrete-csprng v0.4.1
[INFO] [stderr]    Compiling pq-sys v0.6.1
[INFO] [stderr]    Compiling dsl_auto_type v0.1.2
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]     Checking url v2.5.2
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling tfhe-versionable-derive v0.2.1
[INFO] [stderr]     Checking actix-server v2.5.0
[INFO] [stderr]    Compiling diesel_table_macro_syntax v0.2.0
[INFO] [stderr]     Checking dyn-stack v0.9.1
[INFO] [stderr]     Checking aes v0.8.4
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking untrusted v0.9.0
[INFO] [stderr]    Compiling tfhe v0.7.2
[INFO] [stderr]     Checking iana-time-zone v0.1.60
[INFO] [stderr]     Checking impl-more v0.1.6
[INFO] [stderr]     Checking keccak v0.1.5
[INFO] [stderr]     Checking sha3 v0.10.8
[INFO] [stderr]    Compiling diesel_derives v2.2.2
[INFO] [stderr]     Checking simple_asn1 v0.6.2
[INFO] [stderr]     Checking itertools v0.11.0
[INFO] [stderr]     Checking blowfish v0.9.1
[INFO] [stderr]     Checking pem v3.0.4
[INFO] [stderr]     Checking base64 v0.21.7
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]     Checking zeroize v1.8.1
[INFO] [stderr]     Checking dotenvy v0.15.7
[INFO] [stderr]     Checking bcrypt v0.15.1
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]     Checking aligned-vec v0.5.0
[INFO] [stderr]     Checking pulp v0.18.21
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking tfhe-versionable v0.2.1
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking concrete-ntt v0.1.2
[INFO] [stderr]     Checking concrete-fft v0.4.1
[INFO] [stderr]     Checking chrono v0.4.38
[INFO] [stderr]     Checking jsonwebtoken v9.3.0
[INFO] [stderr]     Checking diesel v2.2.2
[INFO] [stderr]    Compiling zstd-safe v7.2.1
[INFO] [stderr]     Checking zstd v0.13.2
[INFO] [stderr]     Checking actix-http v3.9.0
[INFO] [stderr]     Checking actix-web v4.9.0
[INFO] [stderr]     Checking actix-cors v0.7.0
[INFO] [stderr]     Checking tfhe_voting_system v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::schema::questions`
[INFO] [stdout]  --> src/db_operations/questions.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::questions;
[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::user_answers`
[INFO] [stdout]  --> src/db_operations/user_answers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::user_answers;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema::questions`
[INFO] [stdout]  --> src/db_operations/questions.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::questions;
[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::user_answers`
[INFO] [stdout]  --> src/db_operations/user_answers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::schema::user_answers;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `User`
[INFO] [stdout]  --> src/controllers/users.rs:8:70
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::models::users::{Claims, LoginForm, NewUser, RegisterForm, User};
[INFO] [stdout]   |                                                                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/controllers/users.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose`
[INFO] [stdout]   --> src/controllers/users.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use base64::{Engine as _, engine::general_purpose};
[INFO] [stdout]    |              ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Quiz`
[INFO] [stdout]  --> src/controllers/quizzes.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::quiz::{Quiz, NewQuiz};
[INFO] [stdout]   |                           ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Question`
[INFO] [stdout]  --> src/controllers/questions.rs:5:44
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::question::{NewQuestion, Question};
[INFO] [stdout]   |                                            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ResultModel`
[INFO] [stdout]  --> src/controllers/results.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::models::result::{ResultModel, NewResult};
[INFO] [stdout]   |                             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::result::ResultModel`
[INFO] [stdout]  --> src/controllers/user_answers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::result::ResultModel;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `User`
[INFO] [stdout]  --> src/controllers/users.rs:8:70
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::models::users::{Claims, LoginForm, NewUser, RegisterForm, User};
[INFO] [stdout]   |                                                                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/controllers/users.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Engine as _` and `engine::general_purpose`
[INFO] [stdout]   --> src/controllers/users.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use base64::{Engine as _, engine::general_purpose};
[INFO] [stdout]    |              ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Quiz`
[INFO] [stdout]  --> src/controllers/quizzes.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::quiz::{Quiz, NewQuiz};
[INFO] [stdout]   |                           ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Question`
[INFO] [stdout]  --> src/controllers/questions.rs:5:44
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::question::{NewQuestion, Question};
[INFO] [stdout]   |                                            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ResultModel`
[INFO] [stdout]  --> src/controllers/results.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::models::result::{ResultModel, NewResult};
[INFO] [stdout]   |                             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::result::ResultModel`
[INFO] [stdout]  --> src/controllers/user_answers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::models::result::ResultModel;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/controllers/users.rs:200:9
[INFO] [stdout]     |
[INFO] [stdout] 200 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/controllers/users.rs:210:9
[INFO] [stdout]     |
[INFO] [stdout] 210 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/quizzes.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/quizzes.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/questions.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/questions.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/answers.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/answers.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/controllers/users.rs:200:9
[INFO] [stdout]     |
[INFO] [stdout] 200 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/controllers/users.rs:210:9
[INFO] [stdout]     |
[INFO] [stdout] 210 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/quizzes.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/quizzes.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/questions.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/questions.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/answers.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/controllers/answers.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/controllers/users.rs:122:12
[INFO] [stdout]     |
[INFO] [stdout] 122 |         Ok(user) => {
[INFO] [stdout]     |            ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]    --> src/controllers/users.rs:200:9
[INFO] [stdout]     |
[INFO] [stdout] 200 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]    --> src/controllers/users.rs:210:9
[INFO] [stdout]     |
[INFO] [stdout] 210 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/quizzes.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/quizzes.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/questions.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/questions.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json`
[INFO] [stdout]   --> src/controllers/answers.rs:31:56
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_answer(state: web::Data<AppState>, json: web::Json<Answer>) -> HttpResponse {
[INFO] [stdout]    |                                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/answers.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/answers.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthSuccess` is never constructed
[INFO] [stdout]   --> src/models/users.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct AuthSuccess {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Quiz` is never constructed
[INFO] [stdout]  --> src/models/quiz.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Quiz {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Question` is never constructed
[INFO] [stdout]  --> src/models/question.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Question {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Answer` is never constructed
[INFO] [stdout]  --> src/models/answer.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Answer {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UserAnswer` is never constructed
[INFO] [stdout]  --> src/models/user_answer.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct UserAnswer {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_users` is never used
[INFO] [stdout]  --> src/db_operations/users.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn get_all_users(connection: &mut PgConnection) -> Vec<User> {
[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:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn get_a_user_by_id(connection: &mut PgConnection, user_id: i32) -> Option<User> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_quizzes` is never used
[INFO] [stdout]  --> src/db_operations/quizzes.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn get_all_quizzes(connection: &mut PgConnection) -> Vec<Quiz> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_quiz_by_id` is never used
[INFO] [stdout]   --> src/db_operations/quizzes.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn get_a_quiz_by_id(connection: &mut PgConnection, quiz_id: i32) -> Option<Quiz> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_quiz` is never used
[INFO] [stdout]   --> src/db_operations/quizzes.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub fn add_quiz(new_quiz: NewQuiz, connection: &mut PgConnection) -> Result<Quiz, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_questions` is never used
[INFO] [stdout]  --> src/db_operations/questions.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_all_questions(connection: &mut PgConnection) -> Vec<Question> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_question_by_id` is never used
[INFO] [stdout]   --> src/db_operations/questions.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn get_a_question_by_id(connection: &mut PgConnection, question_id: i32) -> Option<Question> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_question` is never used
[INFO] [stdout]   --> src/db_operations/questions.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn add_question(new_question: NewQuestion, connection: &mut PgConnection) -> Result<Question, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_answers` is never used
[INFO] [stdout]  --> src/db_operations/answers.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn get_all_answers(connection: &mut PgConnection) -> Vec<Answer> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_an_answer_by_id` is never used
[INFO] [stdout]   --> src/db_operations/answers.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub fn get_an_answer_by_id(connection: &mut PgConnection, answer_id: i32) -> Option<Answer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_answer` is never used
[INFO] [stdout]   --> src/db_operations/answers.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub fn add_answer(new_answer: NewAnswer, connection: &mut PgConnection) -> Result<Answer, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_user_answers` is never used
[INFO] [stdout]  --> src/db_operations/user_answers.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_all_user_answers(connection: &mut PgConnection) -> Vec<UserAnswer> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_user_answer_by_id` is never used
[INFO] [stdout]   --> src/db_operations/user_answers.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn get_a_user_answer_by_id(connection: &mut PgConnection, user_answer_id: i32) -> Option<UserAnswer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_user_answer` is never used
[INFO] [stdout]   --> src/db_operations/user_answers.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn add_user_answer(new_user_answer: NewUserAnswer, connection: &mut PgConnection) -> Result<UserAnswer, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_user_answer_by_id` is never used
[INFO] [stdout]   --> src/db_operations/user_answers.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn get_user_answer_by_id(connection: &mut PgConnection, user_answer_id: i32) -> Option<UserAnswer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_results` is never used
[INFO] [stdout]   --> src/db_operations/results.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn get_all_results(connection: &mut PgConnection) -> Vec<ResultModel> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_result_by_id` is never used
[INFO] [stdout]   --> src/db_operations/results.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub fn get_a_result_by_id(connection: &mut PgConnection, result_id: i32) -> Option<ResultModel> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_base64_length_and_padding` is never used
[INFO] [stdout]   --> src/controllers/users.rs:22:4
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn check_base64_length_and_padding(encoded: &str) -> bool {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_quiz` is never used
[INFO] [stdout]  --> src/controllers/quizzes.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_quiz(state: web::Data<AppState>, json: web::Json<NewQuiz>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_quiz` is never used
[INFO] [stdout]   --> src/controllers/quizzes.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn update_quiz(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_quiz` is never used
[INFO] [stdout]   --> src/controllers/quizzes.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub async fn delete_quiz(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_question` is never used
[INFO] [stdout]  --> src/controllers/questions.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_question(state: web::Data<AppState>, json: web::Json<NewQuestion>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_question` is never used
[INFO] [stdout]   --> src/controllers/questions.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn update_question(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_question` is never used
[INFO] [stdout]   --> src/controllers/questions.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub async fn delete_question(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_answer` is never used
[INFO] [stdout]  --> src/controllers/answers.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_answer(state: web::Data<AppState>, json: web::Json<NewAnswer>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_answer_by_id` is never used
[INFO] [stdout]   --> src/controllers/answers.rs:20:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub async fn get_answer_by_id(state: web::Data<AppState>, json: web::Json<NewAnswer>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_answer` is never used
[INFO] [stdout]   --> src/controllers/answers.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_answer(state: web::Data<AppState>, json: web::Json<Answer>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_answer` is never used
[INFO] [stdout]   --> src/controllers/answers.rs:40:14
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub async fn delete_answer(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_user_answer` is never used
[INFO] [stdout]  --> src/controllers/user_answers.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub async fn create_user_answer(state: web::Data<AppState>, json: web::Json<NewUserAnswer>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_user_answer_by_id` is never used
[INFO] [stdout]   --> src/controllers/user_answers.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn get_user_answer_by_id(state: web::Data<AppState>, json: web::Json<UserAnswer>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/controllers/users.rs:122:12
[INFO] [stdout]     |
[INFO] [stdout] 122 |         Ok(user) => {
[INFO] [stdout]     |            ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]    --> src/controllers/users.rs:200:9
[INFO] [stdout]     |
[INFO] [stdout] 200 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]    --> src/controllers/users.rs:210:9
[INFO] [stdout]     |
[INFO] [stdout] 210 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/quizzes.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/quizzes.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/questions.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/questions.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `json`
[INFO] [stdout]   --> src/controllers/answers.rs:31:56
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_answer(state: web::Data<AppState>, json: web::Json<Answer>) -> HttpResponse {
[INFO] [stdout]    |                                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/answers.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection_guard`
[INFO] [stdout]   --> src/controllers/answers.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let mut connection_guard = state.db_connection.lock().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection_guard`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthSuccess` is never constructed
[INFO] [stdout]   --> src/models/users.rs:47:12
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct AuthSuccess {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Quiz` is never constructed
[INFO] [stdout]  --> src/models/quiz.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Quiz {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Question` is never constructed
[INFO] [stdout]  --> src/models/question.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Question {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Answer` is never constructed
[INFO] [stdout]  --> src/models/answer.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Answer {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UserAnswer` is never constructed
[INFO] [stdout]  --> src/models/user_answer.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct UserAnswer {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_users` is never used
[INFO] [stdout]  --> src/db_operations/users.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn get_all_users(connection: &mut PgConnection) -> Vec<User> {
[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:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn get_a_user_by_id(connection: &mut PgConnection, user_id: i32) -> Option<User> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_quizzes` is never used
[INFO] [stdout]  --> src/db_operations/quizzes.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub fn get_all_quizzes(connection: &mut PgConnection) -> Vec<Quiz> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_quiz_by_id` is never used
[INFO] [stdout]   --> src/db_operations/quizzes.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn get_a_quiz_by_id(connection: &mut PgConnection, quiz_id: i32) -> Option<Quiz> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_quiz` is never used
[INFO] [stdout]   --> src/db_operations/quizzes.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub fn add_quiz(new_quiz: NewQuiz, connection: &mut PgConnection) -> Result<Quiz, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_questions` is never used
[INFO] [stdout]  --> src/db_operations/questions.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_all_questions(connection: &mut PgConnection) -> Vec<Question> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_question_by_id` is never used
[INFO] [stdout]   --> src/db_operations/questions.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn get_a_question_by_id(connection: &mut PgConnection, question_id: i32) -> Option<Question> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_question` is never used
[INFO] [stdout]   --> src/db_operations/questions.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn add_question(new_question: NewQuestion, connection: &mut PgConnection) -> Result<Question, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_answers` is never used
[INFO] [stdout]  --> src/db_operations/answers.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn get_all_answers(connection: &mut PgConnection) -> Vec<Answer> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_an_answer_by_id` is never used
[INFO] [stdout]   --> src/db_operations/answers.rs:23:8
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub fn get_an_answer_by_id(connection: &mut PgConnection, answer_id: i32) -> Option<Answer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_answer` is never used
[INFO] [stdout]   --> src/db_operations/answers.rs:36:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub fn add_answer(new_answer: NewAnswer, connection: &mut PgConnection) -> Result<Answer, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_user_answers` is never used
[INFO] [stdout]  --> src/db_operations/user_answers.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn get_all_user_answers(connection: &mut PgConnection) -> Vec<UserAnswer> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_user_answer_by_id` is never used
[INFO] [stdout]   --> src/db_operations/user_answers.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn get_a_user_answer_by_id(connection: &mut PgConnection, user_answer_id: i32) -> Option<UserAnswer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_user_answer` is never used
[INFO] [stdout]   --> src/db_operations/user_answers.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 38 | pub fn add_user_answer(new_user_answer: NewUserAnswer, connection: &mut PgConnection) -> Result<UserAnswer, diesel::result::Error> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_user_answer_by_id` is never used
[INFO] [stdout]   --> src/db_operations/user_answers.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn get_user_answer_by_id(connection: &mut PgConnection, user_answer_id: i32) -> Option<UserAnswer> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_results` is never used
[INFO] [stdout]   --> src/db_operations/results.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn get_all_results(connection: &mut PgConnection) -> Vec<ResultModel> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_a_result_by_id` is never used
[INFO] [stdout]   --> src/db_operations/results.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub fn get_a_result_by_id(connection: &mut PgConnection, result_id: i32) -> Option<ResultModel> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_base64_length_and_padding` is never used
[INFO] [stdout]   --> src/controllers/users.rs:22:4
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn check_base64_length_and_padding(encoded: &str) -> bool {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_quiz` is never used
[INFO] [stdout]  --> src/controllers/quizzes.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_quiz(state: web::Data<AppState>, json: web::Json<NewQuiz>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_quiz` is never used
[INFO] [stdout]   --> src/controllers/quizzes.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn update_quiz(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_quiz` is never used
[INFO] [stdout]   --> src/controllers/quizzes.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub async fn delete_quiz(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_question` is never used
[INFO] [stdout]  --> src/controllers/questions.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_question(state: web::Data<AppState>, json: web::Json<NewQuestion>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_question` is never used
[INFO] [stdout]   --> src/controllers/questions.rs:19:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub async fn update_question(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_question` is never used
[INFO] [stdout]   --> src/controllers/questions.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub async fn delete_question(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_answer` is never used
[INFO] [stdout]  --> src/controllers/answers.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub async fn create_answer(state: web::Data<AppState>, json: web::Json<NewAnswer>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_answer_by_id` is never used
[INFO] [stdout]   --> src/controllers/answers.rs:20:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub async fn get_answer_by_id(state: web::Data<AppState>, json: web::Json<NewAnswer>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `update_answer` is never used
[INFO] [stdout]   --> src/controllers/answers.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub async fn update_answer(state: web::Data<AppState>, json: web::Json<Answer>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_answer` is never used
[INFO] [stdout]   --> src/controllers/answers.rs:40:14
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub async fn delete_answer(state: web::Data<AppState>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_user_answer` is never used
[INFO] [stdout]  --> src/controllers/user_answers.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub async fn create_user_answer(state: web::Data<AppState>, json: web::Json<NewUserAnswer>) -> HttpResponse {
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_user_answer_by_id` is never used
[INFO] [stdout]   --> src/controllers/user_answers.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn get_user_answer_by_id(state: web::Data<AppState>, json: web::Json<UserAnswer>) -> HttpResponse {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [optimized + debuginfo] target(s) in 3m 21s
[INFO] running `Command { std: "docker" "inspect" "292a5c84fd2765d0907f3bb953f8832ab4fc4790fec544c946a0ba8fb211e8e5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "292a5c84fd2765d0907f3bb953f8832ab4fc4790fec544c946a0ba8fb211e8e5", kill_on_drop: false }`
[INFO] [stdout] 292a5c84fd2765d0907f3bb953f8832ab4fc4790fec544c946a0ba8fb211e8e5
