[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] checking al-ula/saicms against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fal-ula%2Fsaicms" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/al-ula/saicms on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-email v3.0.1 [INFO] [stderr] Downloaded salvo v0.69.0 [INFO] [stderr] Downloaded asn1-rs-impl v0.2.0 [INFO] [stderr] Downloaded email_address v0.2.9 [INFO] [stderr] Downloaded security-framework-sys v2.11.1 [INFO] [stderr] Downloaded etag v4.0.0 [INFO] [stderr] Downloaded tungstenite v0.23.0 [INFO] [stderr] Downloaded quinn-udp v0.5.4 [INFO] [stderr] Downloaded toml_datetime v0.6.7 [INFO] [stderr] Downloaded winreg v0.52.0 [INFO] [stderr] Downloaded xxhash-rust v0.8.12 [INFO] [stderr] Downloaded password-hash v0.5.0 [INFO] [stderr] Downloaded hyper-rustls v0.27.2 [INFO] [stderr] Downloaded redb v2.1.1 [INFO] [stderr] Downloaded openssl-sys v0.9.103 [INFO] [stderr] Downloaded reqwest v0.12.5 [INFO] [stderr] Downloaded argon2 v0.5.3 [INFO] [stderr] Downloaded salvo-http3 v0.3.0 [INFO] [stderr] Downloaded headers-core v0.3.0 [INFO] [stderr] Downloaded jsonwebtoken v9.3.0 [INFO] [stderr] Downloaded rustls-native-certs v0.7.1 [INFO] [stderr] Downloaded salvo_core v0.69.0 [INFO] [stderr] Downloaded quinn-proto v0.11.3 [INFO] [stderr] Downloaded hyper v1.4.1 [INFO] [stderr] Downloaded hyper-util v0.1.7 [INFO] [stderr] Downloaded rustls-pemfile v2.1.3 [INFO] [stderr] Downloaded h2 v0.4.5 [INFO] [stderr] Downloaded xml-rs v0.8.21 [INFO] [stderr] Downloaded der-parser v9.0.0 [INFO] [stderr] Downloaded openssl v0.10.66 [INFO] [stderr] Downloaded cookie v0.18.1 [INFO] [stderr] Downloaded serde-xml-rs v0.6.0 [INFO] [stderr] Downloaded rustls v0.23.12 [INFO] [stderr] Downloaded rcgen v0.13.1 [INFO] [stderr] Downloaded quinn v0.11.2 [INFO] [stderr] Downloaded rustls-webpki v0.102.6 [INFO] [stderr] Downloaded salvo-proxy v0.69.0 [INFO] [stderr] Downloaded asn1-rs v0.6.1 [INFO] [stderr] Downloaded x509-parser v0.16.0 [INFO] [stderr] Downloaded ulid v1.1.3 [INFO] [stderr] Downloaded salvo-jwt-auth v0.69.0 [INFO] [stderr] Downloaded str-buf v3.0.3 [INFO] [stderr] Downloaded headers v0.4.0 [INFO] [stderr] Downloaded multer v3.1.0 [INFO] [stderr] Downloaded mime-infer v3.0.0 [INFO] [stderr] Downloaded asn1-rs-derive v0.5.0 [INFO] [stderr] Downloaded oid-registry v0.7.0 [INFO] [stderr] Downloaded object v0.36.2 [INFO] [stderr] Downloaded tokio v1.39.1 [INFO] [stderr] Downloaded pem v3.0.4 [INFO] [stderr] Downloaded salvo_macros v0.69.0 [INFO] [stderr] Downloaded salvo-serde-util v0.69.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.23.1 [INFO] [stderr] Downloaded mio v1.0.1 [INFO] [stderr] Downloaded salvo_extra v0.69.0 [INFO] [stderr] Downloaded bytes v1.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d693fa76d348be967e36a40f4afc5b4949bd212f883dbace67e90b6da2fabb57 [INFO] running `Command { std: "docker" "start" "-a" "d693fa76d348be967e36a40f4afc5b4949bd212f883dbace67e90b6da2fabb57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d693fa76d348be967e36a40f4afc5b4949bd212f883dbace67e90b6da2fabb57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d693fa76d348be967e36a40f4afc5b4949bd212f883dbace67e90b6da2fabb57", kill_on_drop: false }` [INFO] [stdout] d693fa76d348be967e36a40f4afc5b4949bd212f883dbace67e90b6da2fabb57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09625ab56e7b238d7bd2e8adf29c22216fe37cb67a2c2800e8c14f0626997951 [INFO] running `Command { std: "docker" "start" "-a" "09625ab56e7b238d7bd2e8adf29c22216fe37cb67a2c2800e8c14f0626997951", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling toml_datetime v0.6.7 [INFO] [stderr] Compiling oid-registry v0.7.0 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling mime-infer v3.0.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Checking rustls-native-certs v0.7.1 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking xml-rs v0.8.21 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking xxhash-rust v0.8.12 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Checking str-buf v3.0.3 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling redb v2.1.1 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling toml_edit v0.21.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking quinn-udp v0.5.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking etag v4.0.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking headers v0.4.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking ulid v1.1.3 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking yasna v0.5.2 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling salvo-serde-util v0.69.0 [INFO] [stderr] Compiling proc-macro-crate v3.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling asn1-rs-impl v0.2.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling asn1-rs-derive v0.5.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.10 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking tokio v1.39.1 [INFO] [stderr] Checking enumflags2 v0.7.10 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking asn1-rs v0.6.1 [INFO] [stderr] Checking tungstenite v0.23.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling salvo_macros v0.69.0 [INFO] [stderr] Checking rustls-webpki v0.102.6 [INFO] [stderr] Checking rcgen v0.13.1 [INFO] [stderr] Checking der-parser v9.0.0 [INFO] [stderr] Checking x509-parser v0.16.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-tungstenite v0.23.1 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking quinn-proto v0.11.3 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking serde-xml-rs v0.6.0 [INFO] [stderr] Checking multimap v0.10.0 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking serde-email v3.0.1 [INFO] [stderr] Checking quinn v0.11.2 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking salvo-http3 v0.3.0 [INFO] [stderr] Checking hyper-util v0.1.7 [INFO] [stderr] Checking hyper-rustls v0.27.2 [INFO] [stderr] Checking salvo_core v0.69.0 [INFO] [stderr] Checking salvo_extra v0.69.0 [INFO] [stderr] Checking salvo v0.69.0 [INFO] [stderr] Checking 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] [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 50.61s [INFO] running `Command { std: "docker" "inspect" "09625ab56e7b238d7bd2e8adf29c22216fe37cb67a2c2800e8c14f0626997951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09625ab56e7b238d7bd2e8adf29c22216fe37cb67a2c2800e8c14f0626997951", kill_on_drop: false }` [INFO] [stdout] 09625ab56e7b238d7bd2e8adf29c22216fe37cb67a2c2800e8c14f0626997951