[INFO] cloning repository https://github.com/al-ula/saicms [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/al-ula/saicms" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fal-ula%2Fsaicms", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fal-ula%2Fsaicms'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d4bfcfa18655d9c218704bfde09a89af5494adf6 [INFO] building al-ula/saicms against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fal-ula%2Fsaicms" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/al-ula/saicms [INFO] finished tweaking git repo https://github.com/al-ula/saicms [INFO] tweaked toml for git repo https://github.com/al-ula/saicms written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/al-ula/saicms on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/al-ula/saicms already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded oid-registry v0.7.0 [INFO] [stderr] Downloaded cc v1.1.6 [INFO] [stderr] Downloaded ulid v1.1.3 [INFO] [stderr] Downloaded salvo v0.69.0 [INFO] [stderr] Downloaded rustls-native-certs v0.7.1 [INFO] [stderr] Downloaded str-buf v3.0.3 [INFO] [stderr] Downloaded hyper-rustls v0.27.2 [INFO] [stderr] Downloaded etag v4.0.0 [INFO] [stderr] Downloaded salvo_core v0.69.0 [INFO] [stderr] Downloaded redb v2.1.1 [INFO] [stderr] Downloaded serde-email v3.0.1 [INFO] [stderr] Downloaded toml_datetime v0.6.7 [INFO] [stderr] Downloaded serde-xml-rs v0.6.0 [INFO] [stderr] Downloaded mime-infer v3.0.0 [INFO] [stderr] Downloaded asn1-rs-derive v0.5.0 [INFO] [stderr] Downloaded quinn-udp v0.5.4 [INFO] [stderr] Downloaded asn1-rs v0.6.1 [INFO] [stderr] Downloaded rcgen v0.13.1 [INFO] [stderr] Downloaded quinn v0.11.2 [INFO] [stderr] Downloaded salvo-http3 v0.3.0 [INFO] [stderr] Downloaded reqwest v0.12.5 [INFO] [stderr] Downloaded quinn-proto v0.11.3 [INFO] [stderr] Downloaded rustls-webpki v0.102.6 [INFO] [stderr] Downloaded tokio v1.39.1 [INFO] [stderr] Downloaded salvo-proxy v0.69.0 [INFO] [stderr] Downloaded salvo_extra v0.69.0 [INFO] [stderr] Downloaded salvo-jwt-auth v0.69.0 [INFO] [stderr] Downloaded salvo_macros v0.69.0 [INFO] [stderr] Downloaded salvo-serde-util v0.69.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1083ad97d1c1afd345b415ae4c509d06e847cf2edb4145fffbec46064d17e45 [INFO] running `Command { std: "docker" "start" "-a" "c1083ad97d1c1afd345b415ae4c509d06e847cf2edb4145fffbec46064d17e45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1083ad97d1c1afd345b415ae4c509d06e847cf2edb4145fffbec46064d17e45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1083ad97d1c1afd345b415ae4c509d06e847cf2edb4145fffbec46064d17e45", kill_on_drop: false }` [INFO] [stdout] c1083ad97d1c1afd345b415ae4c509d06e847cf2edb4145fffbec46064d17e45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 791358dabfcc51e25c3b451a29869fd4ccde37bbc21599c72b533ebc84c0033c [INFO] running `Command { std: "docker" "start" "-a" "791358dabfcc51e25c3b451a29869fd4ccde37bbc21599c72b533ebc84c0033c", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling rustls-pki-types v1.8.0 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling toml_datetime v0.6.7 [INFO] [stderr] Compiling oid-registry v0.7.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling mime-infer v3.0.0 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling quinn-udp v0.5.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling toml_edit v0.21.1 [INFO] [stderr] Compiling rustls-pemfile v2.1.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling rustls-native-certs v0.7.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling xml-rs v0.8.21 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling headers v0.4.0 [INFO] [stderr] Compiling xxhash-rust v0.8.12 [INFO] [stderr] Compiling str-buf v3.0.3 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling ulid v1.1.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling etag v4.0.0 [INFO] [stderr] Compiling redb v2.1.1 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling rusticata-macros v4.1.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling proc-macro-crate v3.1.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling salvo-serde-util v0.69.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling asn1-rs-impl v0.2.0 [INFO] [stderr] Compiling asn1-rs-derive v0.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling enumflags2_derive v0.7.10 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling salvo_macros v0.69.0 [INFO] [stderr] Compiling rustls-webpki v0.102.6 [INFO] [stderr] Compiling enumflags2 v0.7.10 [INFO] [stderr] Compiling rcgen v0.13.1 [INFO] [stderr] Compiling tokio v1.39.1 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling asn1-rs v0.6.1 [INFO] [stderr] Compiling tungstenite v0.23.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling der-parser v9.0.0 [INFO] [stderr] Compiling x509-parser v0.16.0 [INFO] [stderr] Compiling quinn-proto v0.11.3 [INFO] [stderr] Compiling serde-xml-rs v0.6.0 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling email_address v0.2.9 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde-email v3.0.1 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-rustls v0.26.0 [INFO] [stderr] Compiling tokio-tungstenite v0.23.1 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling quinn v0.11.2 [INFO] [stderr] Compiling salvo-http3 v0.3.0 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.7 [INFO] [stderr] Compiling hyper-rustls v0.27.2 [INFO] [stderr] Compiling salvo_core v0.69.0 [INFO] [stderr] Compiling salvo_extra v0.69.0 [INFO] [stderr] Compiling salvo v0.69.0 [INFO] [stderr] Compiling saicms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/admin/auth/account.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/admin/auth/account.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Account { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | pub fn create(username: String, email: Email, secret: String) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn create_with_id(id: u128, username: String, email: Email, secret: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_id(&self) -> u128 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_username(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_email(&self) -> Email { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_secret(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn change_secret(&mut self, new_secret: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn change_email(&mut self, new_email: Email) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn change_username(&mut self, new_username: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register` is never constructed [INFO] [stdout] --> src/admin/auth/account.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Register { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check`, and `register` are never used [INFO] [stdout] --> src/admin/auth/account.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl Register { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(username: String, email: Email, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn check(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn register(&self) -> Account { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Login` is never constructed [INFO] [stdout] --> src/admin/auth/account.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct Login { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoginType` is never used [INFO] [stdout] --> src/admin/auth/account.rs:107:10 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum LoginType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `try_login` are never used [INFO] [stdout] --> src/admin/auth/account.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Login { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 113 | pub fn new(identity: LoginType, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn try_login(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/admin/auth/account.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn hash_password(password: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/admin/auth/account.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn verify_password( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE` is never used [INFO] [stdout] --> src/admin/auth/db.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const TABLE: TableDefinition> = TableDefinition::new("account"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_account`, `query_account_by_id`, `query_account_by_username`, `query_account_by_email`, and `query_all_account` are never used [INFO] [stdout] --> src/admin/auth/db.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Db { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] 9 | pub fn insert_account(&self, account: &Account) -> Result<(), redb::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn query_account_by_id(&self, id: u128) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn query_account_by_username( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn query_account_by_email( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn query_all_account( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/db/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Db { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 11 | pub db: Arc, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "791358dabfcc51e25c3b451a29869fd4ccde37bbc21599c72b533ebc84c0033c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "791358dabfcc51e25c3b451a29869fd4ccde37bbc21599c72b533ebc84c0033c", kill_on_drop: false }` [INFO] [stdout] 791358dabfcc51e25c3b451a29869fd4ccde37bbc21599c72b533ebc84c0033c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09ac992d8d65c908c1b1ace05f4e4235297cd6c116d788710ca8fbfe0a47eb0a [INFO] running `Command { std: "docker" "start" "-a" "09ac992d8d65c908c1b1ace05f4e4235297cd6c116d788710ca8fbfe0a47eb0a", kill_on_drop: false }` [INFO] [stderr] Compiling saicms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/admin/auth/account.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/admin/auth/account.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Account { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | pub fn create(username: String, email: Email, secret: String) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn create_with_id(id: u128, username: String, email: Email, secret: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_id(&self) -> u128 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_username(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_email(&self) -> Email { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_secret(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn change_secret(&mut self, new_secret: String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn change_email(&mut self, new_email: Email) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn change_username(&mut self, new_username: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Register` is never constructed [INFO] [stdout] --> src/admin/auth/account.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Register { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `check`, and `register` are never used [INFO] [stdout] --> src/admin/auth/account.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl Register { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(username: String, email: Email, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn check(self) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn register(&self) -> Account { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Login` is never constructed [INFO] [stdout] --> src/admin/auth/account.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct Login { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoginType` is never used [INFO] [stdout] --> src/admin/auth/account.rs:107:10 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum LoginType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `try_login` are never used [INFO] [stdout] --> src/admin/auth/account.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Login { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 113 | pub fn new(identity: LoginType, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn try_login(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/admin/auth/account.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn hash_password(password: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/admin/auth/account.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn verify_password( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE` is never used [INFO] [stdout] --> src/admin/auth/db.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const TABLE: TableDefinition> = TableDefinition::new("account"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_account`, `query_account_by_id`, `query_account_by_username`, `query_account_by_email`, and `query_all_account` are never used [INFO] [stdout] --> src/admin/auth/db.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Db { [INFO] [stdout] | ------- methods in this implementation [INFO] [stdout] 9 | pub fn insert_account(&self, account: &Account) -> Result<(), redb::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn query_account_by_id(&self, id: u128) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn query_account_by_username( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn query_account_by_email( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn query_all_account( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/db/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Db { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 11 | pub db: Arc, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.12s [INFO] running `Command { std: "docker" "inspect" "09ac992d8d65c908c1b1ace05f4e4235297cd6c116d788710ca8fbfe0a47eb0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09ac992d8d65c908c1b1ace05f4e4235297cd6c116d788710ca8fbfe0a47eb0a", kill_on_drop: false }` [INFO] [stdout] 09ac992d8d65c908c1b1ace05f4e4235297cd6c116d788710ca8fbfe0a47eb0a