[INFO] cloning repository https://github.com/Malique-Auguste/Servaunt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Malique-Auguste/Servaunt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMalique-Auguste%2FServaunt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMalique-Auguste%2FServaunt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ba1435e88864127391e0940b0fcaf8a3b3f35b6 [INFO] checking Malique-Auguste/Servaunt against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMalique-Auguste%2FServaunt" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 36% (1819/4997) Updating files: 37% (1849/4997) Updating files: 38% (1899/4997) Updating files: 39% (1949/4997) Updating files: 40% (1999/4997) Updating files: 41% (2049/4997) Updating files: 41% (2086/4997) Updating files: 42% (2099/4997) Updating files: 43% (2149/4997) Updating files: 44% (2199/4997) Updating files: 44% (2246/4997) Updating files: 45% (2249/4997) Updating files: 46% (2299/4997) Updating files: 46% (2342/4997) Updating files: 47% (2349/4997) Updating files: 48% (2399/4997) Updating files: 49% (2449/4997) Updating files: 50% (2499/4997) Updating files: 51% (2549/4997) Updating files: 51% (2579/4997) Updating files: 52% (2599/4997) Updating files: 53% (2649/4997) Updating files: 54% (2699/4997) Updating files: 55% (2749/4997) Updating files: 56% (2799/4997) Updating files: 56% (2820/4997) Updating files: 57% (2849/4997) Updating files: 58% (2899/4997) Updating files: 59% (2949/4997) Updating files: 60% (2999/4997) Updating files: 61% (3049/4997) Updating files: 62% (3099/4997) Updating files: 63% (3149/4997) Updating files: 64% (3199/4997) Updating files: 64% (3213/4997) Updating files: 65% (3249/4997) Updating files: 66% (3299/4997) Updating files: 67% (3348/4997) Updating files: 68% (3398/4997) Updating files: 69% (3448/4997) Updating files: 70% (3498/4997) Updating files: 71% (3548/4997) Updating files: 71% (3587/4997) Updating files: 72% (3598/4997) Updating files: 73% (3648/4997) Updating files: 74% (3698/4997) Updating files: 75% (3748/4997) Updating files: 76% (3798/4997) Updating files: 77% (3848/4997) Updating files: 78% (3898/4997) Updating files: 79% (3948/4997) Updating files: 79% (3979/4997) Updating files: 80% (3998/4997) Updating files: 81% (4048/4997) Updating files: 82% (4098/4997) Updating files: 83% (4148/4997) Updating files: 84% (4198/4997) Updating files: 85% (4248/4997) Updating files: 86% (4298/4997) Updating files: 87% (4348/4997) Updating files: 87% (4379/4997) Updating files: 88% (4398/4997) Updating files: 89% (4448/4997) Updating files: 90% (4498/4997) Updating files: 91% (4548/4997) Updating files: 92% (4598/4997) Updating files: 93% (4648/4997) Updating files: 94% (4698/4997) Updating files: 95% (4748/4997) Updating files: 96% (4798/4997) Updating files: 97% (4848/4997) Updating files: 98% (4898/4997) Updating files: 98% (4905/4997) Updating files: 99% (4948/4997) Updating files: 100% (4997/4997) Updating files: 100% (4997/4997), done. [INFO] validating manifest of git repo https://github.com/Malique-Auguste/Servaunt on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Malique-Auguste/Servaunt [INFO] finished tweaking git repo https://github.com/Malique-Auguste/Servaunt [INFO] tweaked toml for git repo https://github.com/Malique-Auguste/Servaunt written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Malique-Auguste/Servaunt 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded yansi v1.0.1 [INFO] [stderr] Downloaded serde_derive v1.0.199 [INFO] [stderr] Downloaded proc-macro2 v1.0.81 [INFO] [stderr] Downloaded async-stream-impl v0.3.5 [INFO] [stderr] Downloaded async-stream v0.3.5 [INFO] [stderr] Downloaded binascii v0.1.4 [INFO] [stderr] Downloaded atomic v0.6.0 [INFO] [stderr] Downloaded rustversion v1.0.15 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded figment v0.10.17 [INFO] [stderr] Downloaded bytemuck v1.15.0 [INFO] [stderr] Downloaded serde v1.0.199 [INFO] [stderr] Downloaded rocket_http v0.5.0 [INFO] [stderr] Downloaded rocket_codegen v0.5.0 [INFO] [stderr] Downloaded serde_json v1.0.116 [INFO] [stderr] Downloaded cookie v0.18.1 [INFO] [stderr] Downloaded stable-pattern v0.1.0 [INFO] [stderr] Downloaded winnow v0.6.6 [INFO] [stderr] Downloaded syn v2.0.60 [INFO] [stderr] Downloaded state v0.6.0 [INFO] [stderr] Downloaded proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Downloaded ref-cast-impl v1.0.22 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded rocket v0.5.0 [INFO] [stderr] Downloaded devise_core v0.4.1 [INFO] [stderr] Downloaded inlinable_string v0.1.15 [INFO] [stderr] Downloaded pear v0.2.9 [INFO] [stderr] Downloaded devise_codegen v0.4.1 [INFO] [stderr] Downloaded devise v0.4.1 [INFO] [stderr] Downloaded pear_codegen v0.2.9 [INFO] [stderr] Downloaded ref-cast v1.0.22 [INFO] [stderr] Downloaded uncased v0.9.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29ad2a964e49b2c303bd3aaef4c177c187f2e35c06f801d0a5b4800b9264e2ed [INFO] running `Command { std: "docker" "start" "-a" "29ad2a964e49b2c303bd3aaef4c177c187f2e35c06f801d0a5b4800b9264e2ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29ad2a964e49b2c303bd3aaef4c177c187f2e35c06f801d0a5b4800b9264e2ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29ad2a964e49b2c303bd3aaef4c177c187f2e35c06f801d0a5b4800b9264e2ed", kill_on_drop: false }` [INFO] [stdout] 29ad2a964e49b2c303bd3aaef4c177c187f2e35c06f801d0a5b4800b9264e2ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f106122ea5c262ac995dd8d137852cfd8be7d44d6d97d7eee054b50aa651c4f5 [INFO] running `Command { std: "docker" "start" "-a" "f106122ea5c262ac995dd8d137852cfd8be7d44d6d97d7eee054b50aa651c4f5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling serde v1.0.199 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling ref-cast v1.0.22 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Checking winnow v0.6.6 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling figment v0.10.17 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling rocket v0.5.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking fastrand v2.0.2 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.199 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.22 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling rocket_http v0.5.0 [INFO] [stderr] Compiling rocket_codegen v0.5.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking servaunt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/user_manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/user_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cookie` [INFO] [stdout] --> src/user_manager.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::http::{Cookie, CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/user_manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/user_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cookie` [INFO] [stdout] --> src/user_manager.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::http::{Cookie, CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LoginData` and `self` [INFO] [stdout] --> src/lib.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::user_manager::{self, LoginData}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sessions` is never read [INFO] [stdout] --> src/user_manager.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UserManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 18 | users: Vec, [INFO] [stdout] 19 | sessions: Vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_new_user`, `login_user`, and `get_current_user` are never used [INFO] [stdout] --> src/user_manager.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl UserManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 23 | //Creates a new UserManager with no active sessions and a list of users from the database [INFO] [stdout] 24 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn add_new_user(&mut self, new_user: User) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn login_user(&mut self, current_user: &User, jar: &CookieJar) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_current_user(&self, jar: &CookieJar) -> Result<&User, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_name`, `id`, `creation_timestamp`, and `last_action_timestamp` are never read [INFO] [stdout] --> src/user_manager.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Session { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 134 | user_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 135 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 136 | creation_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | last_action_timestamp: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_manager.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl Session { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 141 | //the id represents a hash of the uer name and their login time so that the cookie cannot be guessed [INFO] [stdout] 142 | fn new(user: &User) -> Session { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/user_manager.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 179 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `password` are never read [INFO] [stdout] --> src/user_manager.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct LoginData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 187 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | password: String [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_user` are never used [INFO] [stdout] --> src/user_manager.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 191 | impl LoginData { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | pub fn new(name: String, password: String)-> LoginData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn to_user(&self) -> User { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sessions` is never read [INFO] [stdout] --> src/user_manager.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UserManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 18 | users: Vec, [INFO] [stdout] 19 | sessions: Vec [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_new_user`, `login_user`, and `get_current_user` are never used [INFO] [stdout] --> src/user_manager.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl UserManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 23 | //Creates a new UserManager with no active sessions and a list of users from the database [INFO] [stdout] 24 | pub fn new() -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn add_new_user(&mut self, new_user: User) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn login_user(&mut self, current_user: &User, jar: &CookieJar) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_current_user(&self, jar: &CookieJar) -> Result<&User, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_name`, `id`, `creation_timestamp`, and `last_action_timestamp` are never read [INFO] [stdout] --> src/user_manager.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Session { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 134 | user_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 135 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 136 | creation_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | last_action_timestamp: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_manager.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 140 | impl Session { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 141 | //the id represents a hash of the uer name and their login time so that the cookie cannot be guessed [INFO] [stdout] 142 | fn new(user: &User) -> Session { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/user_manager.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 179 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `password` are never read [INFO] [stdout] --> src/user_manager.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct LoginData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 187 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 188 | password: String [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_user` are never used [INFO] [stdout] --> src/user_manager.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 191 | impl LoginData { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 192 | pub fn new(name: String, password: String)-> LoginData { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn to_user(&self) -> User { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/user_manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/user_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cookie` [INFO] [stdout] --> src/user_manager.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::http::{Cookie, CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/user_manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Debug` and `format` [INFO] [stdout] --> src/renderer.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fmt::{format, Debug}, fs, io::Read}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> src/user_manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NamedFile` and `TempFile` [INFO] [stdout] --> src/renderer.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::fs::{TempFile, NamedFile}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cookie` [INFO] [stdout] --> src/user_manager.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use rocket::http::{Cookie, CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::form::name::Name` [INFO] [stdout] --> src/routes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::form::name::Name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response` [INFO] [stdout] --> src/routes.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::{response, State}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Debug` and `format` [INFO] [stdout] --> src/renderer.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{fmt::{format, Debug}, fs, io::Read}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cookie` [INFO] [stdout] --> src/routes.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use rocket::http::{Cookie, CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NamedFile` and `TempFile` [INFO] [stdout] --> src/renderer.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::fs::{TempFile, NamedFile}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `renderer::render` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use renderer::render; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::form::name::Name` [INFO] [stdout] --> src/routes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::form::name::Name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `response` [INFO] [stdout] --> src/routes.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use rocket::{response, State}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cookie` [INFO] [stdout] --> src/routes.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use rocket::http::{Cookie, CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `renderer::render` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use renderer::render; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:49:95 [INFO] [stdout] | [INFO] [stdout] 49 | ...>>, jar: &CookieJar<'_>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:49:95 [INFO] [stdout] | [INFO] [stdout] 49 | ...>>, jar: &CookieJar<'_>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:60:65 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn my_files(dm: &State>>, jar: &CookieJar<'_>) -> RawHtml { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:60:65 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn my_files(dm: &State>>, jar: &CookieJar<'_>) -> RawHtml { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:70:96 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn upload_data(mut form: Form>, dm: &State>>, jar: &CookieJar<'_>) -> Redirect { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:70:96 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn upload_data(mut form: Form>, dm: &State>>, jar: &CookieJar<'_>) -> Redirect { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:95:80 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn open(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> NamedFile { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn open(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> NamedFile { [INFO] [stdout] | ^^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:95:80 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn open(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> NamedFile { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | pub async fn open(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> NamedFile { [INFO] [stdout] | ^^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:117:82 [INFO] [stdout] | [INFO] [stdout] 117 | pub async fn delete(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> Redirect { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | pub async fn delete(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> Redirect { [INFO] [stdout] | ^^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:117:82 [INFO] [stdout] | [INFO] [stdout] 117 | pub async fn delete(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> Redirect { [INFO] [stdout] | ^^^^^^^^^^^^^^ matches no values because `(Status, Infallible)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/routes.rs:117:32 [INFO] [stdout] | [INFO] [stdout] 117 | pub async fn delete(file_name: String, dm: &State>>, jar: &CookieJar<'_>) -> Redirect { [INFO] [stdout] | ^^^^^^ matches no values because `Infallible` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut dm: UserManager = UserManager::new().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut dm_wrapper = Arc::new(Mutex::new(dm)); [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/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut dm: UserManager = UserManager::new().unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut dm_wrapper = Arc::new(Mutex::new(dm)); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `creation_timestamp` and `last_action_timestamp` are never read [INFO] [stdout] --> src/user_manager.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Session { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 136 | creation_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | last_action_timestamp: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_manager.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 191 | impl LoginData { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 192 | pub fn new(name: String, password: String)-> LoginData { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `creation_timestamp` and `last_action_timestamp` are never read [INFO] [stdout] --> src/user_manager.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Session { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 136 | creation_timestamp: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | last_action_timestamp: u64 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_manager.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 191 | impl LoginData { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 192 | pub fn new(name: String, password: String)-> LoginData { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.84s [INFO] running `Command { std: "docker" "inspect" "f106122ea5c262ac995dd8d137852cfd8be7d44d6d97d7eee054b50aa651c4f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f106122ea5c262ac995dd8d137852cfd8be7d44d6d97d7eee054b50aa651c4f5", kill_on_drop: false }` [INFO] [stdout] f106122ea5c262ac995dd8d137852cfd8be7d44d6d97d7eee054b50aa651c4f5