[INFO] cloning repository https://github.com/zerosutienso/book_manager_web4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zerosutienso/book_manager_web4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzerosutienso%2Fbook_manager_web4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzerosutienso%2Fbook_manager_web4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e944e2cdf423b261f0ac07fad413ff201addecb [INFO] building zerosutienso/book_manager_web4 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzerosutienso%2Fbook_manager_web4" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zerosutienso/book_manager_web4 [INFO] finished tweaking git repo https://github.com/zerosutienso/book_manager_web4 [INFO] tweaked toml for git repo https://github.com/zerosutienso/book_manager_web4 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zerosutienso/book_manager_web4 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/zerosutienso/book_manager_web4 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 multer v2.1.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.20.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.21.0 [INFO] [stderr] Downloaded headers-core v0.2.0 [INFO] [stderr] Downloaded pem v1.1.1 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded tungstenite v0.21.0 [INFO] [stderr] Downloaded tungstenite v0.20.1 [INFO] [stderr] Downloaded headers v0.3.9 [INFO] [stderr] Downloaded jsonwebtoken v8.3.0 [INFO] [stderr] Downloaded warp v0.3.7 [INFO] [stderr] Downloaded serde_json v1.0.142 [INFO] [stderr] Downloaded cc v1.2.32 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea6289fd12dba69eb78d6f9ba045ed2d98c622ec50c85f2be82227361a9ea53c [INFO] running `Command { std: "docker" "start" "-a" "ea6289fd12dba69eb78d6f9ba045ed2d98c622ec50c85f2be82227361a9ea53c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea6289fd12dba69eb78d6f9ba045ed2d98c622ec50c85f2be82227361a9ea53c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea6289fd12dba69eb78d6f9ba045ed2d98c622ec50c85f2be82227361a9ea53c", kill_on_drop: false }` [INFO] [stdout] ea6289fd12dba69eb78d6f9ba045ed2d98c622ec50c85f2be82227361a9ea53c [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71418479ab687ea0e38987f78030e109ce25133d7e96147ddb141209960ce478 [INFO] running `Command { std: "docker" "start" "-a" "71418479ab687ea0e38987f78030e109ce25133d7e96147ddb141209960ce478", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling book_manager v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Book` [INFO] [stdout] --> src/client.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use shared::{Book, Message, AddBookRequest, UpdateBookRequest, DeleteBookRequest, QueryRequest, [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: `DateTime` [INFO] [stdout] --> src/client.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RegisterRequest` is never constructed [INFO] [stdout] --> src/shared.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub struct RegisterRequest { [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 `LoginRequest` is never constructed [INFO] [stdout] --> src/shared.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangePasswordRequest` is never constructed [INFO] [stdout] --> src/shared.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct ChangePasswordRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddBookRequest` is never constructed [INFO] [stdout] --> src/shared.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct AddBookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateBookRequest` is never constructed [INFO] [stdout] --> src/shared.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct UpdateBookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeleteBookRequest` is never constructed [INFO] [stdout] --> src/shared.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DeleteBookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryRequest` is never constructed [INFO] [stdout] --> src/shared.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLIENT_ADDRESS` is never used [INFO] [stdout] --> src/shared.rs:185:15 [INFO] [stdout] | [INFO] [stdout] 185 | pub const CLIENT_ADDRESS: ([u8; 4], u16) = ([127, 0, 0, 1], 3030); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DUPLICATE_CHECK_INTERVAL` is never used [INFO] [stdout] --> src/shared.rs:197:15 [INFO] [stdout] | [INFO] [stdout] 197 | pub const DUPLICATE_CHECK_INTERVAL: i64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REQUEST_HISTORY_CLEANUP_MINUTES` is never used [INFO] [stdout] --> src/shared.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | pub const REQUEST_HISTORY_CLEANUP_MINUTES: i64 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_key` is never used [INFO] [stdout] --> src/shared.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn generate_request_key(title: &str, author: &str, excerpt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_duplicate_request` is never used [INFO] [stdout] --> src/shared.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn is_duplicate_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_datetime` is never used [INFO] [stdout] --> src/shared.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn format_datetime(dt: &DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_permission` is never used [INFO] [stdout] --> src/shared.rs:480:12 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn has_permission(user_role: &UserRole, required_role: &UserRole) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Book` is never constructed [INFO] [stdout] --> src/shared.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Book { [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 `User` is never constructed [INFO] [stdout] --> src/shared.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/shared.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOOKS_STORAGE_FILE` is never used [INFO] [stdout] --> src/shared.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 188 | pub const BOOKS_STORAGE_FILE: &str = "books.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERS_STORAGE_FILE` is never used [INFO] [stdout] --> src/shared.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | pub const USERS_STORAGE_FILE: &str = "users.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSIONS_STORAGE_FILE` is never used [INFO] [stdout] --> src/shared.rs:194:15 [INFO] [stdout] | [INFO] [stdout] 194 | pub const SESSIONS_STORAGE_FILE: &str = "sessions.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_EXPIRE_DAYS` is never used [INFO] [stdout] --> src/shared.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | pub const SESSION_EXPIRE_DAYS: i64 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_book_duplicate` is never used [INFO] [stdout] --> src/shared.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn is_book_duplicate(books: &HashMap, title: &str, author: &str, owner_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_books` is never used [INFO] [stdout] --> src/shared.rs:274:12 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn search_books(books: &HashMap, query: &str, owner_id: Option<&str>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_books` is never used [INFO] [stdout] --> src/shared.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn get_user_books(books: &HashMap, owner_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_datetime` is never used [INFO] [stdout] --> src/shared.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn format_datetime(dt: &DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_salt` is never used [INFO] [stdout] --> src/shared.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 319 | pub fn generate_salt() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/shared.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub fn hash_password(password: &str, salt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/shared.rs:334:12 [INFO] [stdout] | [INFO] [stdout] 334 | pub fn verify_password(password: &str, hash: &str, salt: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_token` is never used [INFO] [stdout] --> src/shared.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn generate_token() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_username` is never used [INFO] [stdout] --> src/shared.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn validate_username(username: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_email` is never used [INFO] [stdout] --> src/shared.rs:359:12 [INFO] [stdout] | [INFO] [stdout] 359 | pub fn validate_email(email: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_password` is never used [INFO] [stdout] --> src/shared.rs:370:12 [INFO] [stdout] | [INFO] [stdout] 370 | pub fn validate_password(password: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user` is never used [INFO] [stdout] --> src/shared.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_session` is never used [INFO] [stdout] --> src/shared.rs:417:12 [INFO] [stdout] | [INFO] [stdout] 417 | pub fn create_session( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_session_valid` is never used [INFO] [stdout] --> src/shared.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn is_session_valid(session: &Session) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `username_exists` is never used [INFO] [stdout] --> src/shared.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub fn username_exists(users: &HashMap, username: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `email_exists` is never used [INFO] [stdout] --> src/shared.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | pub fn email_exists(users: &HashMap, email: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_user_by_username` is never used [INFO] [stdout] --> src/shared.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn find_user_by_username<'a>(users: &'a HashMap, username: &str) -> Option<&'a User> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_session_by_token` is never used [INFO] [stdout] --> src/shared.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 458 | pub fn find_session_by_token<'a>(sessions: &'a HashMap, token: &str) -> Option<&'a Session> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_expired_sessions` is never used [INFO] [stdout] --> src/shared.rs:463:12 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn cleanup_expired_sessions(sessions: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `user_to_info` is never used [INFO] [stdout] --> src/shared.rs:469:12 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn user_to_info(user: &User) -> UserInfo { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_permission` is never used [INFO] [stdout] --> src/shared.rs:480:12 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn has_permission(user_role: &UserRole, required_role: &UserRole) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `authenticate_user` is never used [INFO] [stdout] --> src/shared.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 489 | pub fn authenticate_user<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "71418479ab687ea0e38987f78030e109ce25133d7e96147ddb141209960ce478", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71418479ab687ea0e38987f78030e109ce25133d7e96147ddb141209960ce478", kill_on_drop: false }` [INFO] [stdout] 71418479ab687ea0e38987f78030e109ce25133d7e96147ddb141209960ce478 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5c23581ea94c20750f0a87227a74e1d43de8c5f1ab6eb47e51c1e8ceb8841f3 [INFO] running `Command { std: "docker" "start" "-a" "a5c23581ea94c20750f0a87227a74e1d43de8c5f1ab6eb47e51c1e8ceb8841f3", kill_on_drop: false }` [INFO] [stderr] Compiling book_manager v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Book` [INFO] [stdout] --> src/client.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use shared::{Book, Message, AddBookRequest, UpdateBookRequest, DeleteBookRequest, QueryRequest, [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: `DateTime` [INFO] [stdout] --> src/client.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RegisterRequest` is never constructed [INFO] [stdout] --> src/shared.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub struct RegisterRequest { [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 `LoginRequest` is never constructed [INFO] [stdout] --> src/shared.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangePasswordRequest` is never constructed [INFO] [stdout] --> src/shared.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct ChangePasswordRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddBookRequest` is never constructed [INFO] [stdout] --> src/shared.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub struct AddBookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateBookRequest` is never constructed [INFO] [stdout] --> src/shared.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub struct UpdateBookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeleteBookRequest` is never constructed [INFO] [stdout] --> src/shared.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DeleteBookRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryRequest` is never constructed [INFO] [stdout] --> src/shared.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct QueryRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLIENT_ADDRESS` is never used [INFO] [stdout] --> src/shared.rs:185:15 [INFO] [stdout] | [INFO] [stdout] 185 | pub const CLIENT_ADDRESS: ([u8; 4], u16) = ([127, 0, 0, 1], 3030); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DUPLICATE_CHECK_INTERVAL` is never used [INFO] [stdout] --> src/shared.rs:197:15 [INFO] [stdout] | [INFO] [stdout] 197 | pub const DUPLICATE_CHECK_INTERVAL: i64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REQUEST_HISTORY_CLEANUP_MINUTES` is never used [INFO] [stdout] --> src/shared.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | pub const REQUEST_HISTORY_CLEANUP_MINUTES: i64 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_request_key` is never used [INFO] [stdout] --> src/shared.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn generate_request_key(title: &str, author: &str, excerpt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_duplicate_request` is never used [INFO] [stdout] --> src/shared.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn is_duplicate_request( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_datetime` is never used [INFO] [stdout] --> src/shared.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn format_datetime(dt: &DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_permission` is never used [INFO] [stdout] --> src/shared.rs:480:12 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn has_permission(user_role: &UserRole, required_role: &UserRole) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Book` is never constructed [INFO] [stdout] --> src/shared.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Book { [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 `User` is never constructed [INFO] [stdout] --> src/shared.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/shared.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOOKS_STORAGE_FILE` is never used [INFO] [stdout] --> src/shared.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 188 | pub const BOOKS_STORAGE_FILE: &str = "books.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERS_STORAGE_FILE` is never used [INFO] [stdout] --> src/shared.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | pub const USERS_STORAGE_FILE: &str = "users.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSIONS_STORAGE_FILE` is never used [INFO] [stdout] --> src/shared.rs:194:15 [INFO] [stdout] | [INFO] [stdout] 194 | pub const SESSIONS_STORAGE_FILE: &str = "sessions.json"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_EXPIRE_DAYS` is never used [INFO] [stdout] --> src/shared.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 203 | pub const SESSION_EXPIRE_DAYS: i64 = 30; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_book_duplicate` is never used [INFO] [stdout] --> src/shared.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn is_book_duplicate(books: &HashMap, title: &str, author: &str, owner_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_books` is never used [INFO] [stdout] --> src/shared.rs:274:12 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn search_books(books: &HashMap, query: &str, owner_id: Option<&str>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_books` is never used [INFO] [stdout] --> src/shared.rs:300:12 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn get_user_books(books: &HashMap, owner_id: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_datetime` is never used [INFO] [stdout] --> src/shared.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn format_datetime(dt: &DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_salt` is never used [INFO] [stdout] --> src/shared.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 319 | pub fn generate_salt() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/shared.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub fn hash_password(password: &str, salt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/shared.rs:334:12 [INFO] [stdout] | [INFO] [stdout] 334 | pub fn verify_password(password: &str, hash: &str, salt: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_token` is never used [INFO] [stdout] --> src/shared.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn generate_token() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_username` is never used [INFO] [stdout] --> src/shared.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 345 | pub fn validate_username(username: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_email` is never used [INFO] [stdout] --> src/shared.rs:359:12 [INFO] [stdout] | [INFO] [stdout] 359 | pub fn validate_email(email: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_password` is never used [INFO] [stdout] --> src/shared.rs:370:12 [INFO] [stdout] | [INFO] [stdout] 370 | pub fn validate_password(password: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_user` is never used [INFO] [stdout] --> src/shared.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_session` is never used [INFO] [stdout] --> src/shared.rs:417:12 [INFO] [stdout] | [INFO] [stdout] 417 | pub fn create_session( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_session_valid` is never used [INFO] [stdout] --> src/shared.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn is_session_valid(session: &Session) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `username_exists` is never used [INFO] [stdout] --> src/shared.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 443 | pub fn username_exists(users: &HashMap, username: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `email_exists` is never used [INFO] [stdout] --> src/shared.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | pub fn email_exists(users: &HashMap, email: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_user_by_username` is never used [INFO] [stdout] --> src/shared.rs:453:12 [INFO] [stdout] | [INFO] [stdout] 453 | pub fn find_user_by_username<'a>(users: &'a HashMap, username: &str) -> Option<&'a User> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_session_by_token` is never used [INFO] [stdout] --> src/shared.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 458 | pub fn find_session_by_token<'a>(sessions: &'a HashMap, token: &str) -> Option<&'a Session> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_expired_sessions` is never used [INFO] [stdout] --> src/shared.rs:463:12 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn cleanup_expired_sessions(sessions: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `user_to_info` is never used [INFO] [stdout] --> src/shared.rs:469:12 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn user_to_info(user: &User) -> UserInfo { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_permission` is never used [INFO] [stdout] --> src/shared.rs:480:12 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn has_permission(user_role: &UserRole, required_role: &UserRole) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `authenticate_user` is never used [INFO] [stdout] --> src/shared.rs:489:12 [INFO] [stdout] | [INFO] [stdout] 489 | pub fn authenticate_user<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.45s [INFO] running `Command { std: "docker" "inspect" "a5c23581ea94c20750f0a87227a74e1d43de8c5f1ab6eb47e51c1e8ceb8841f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5c23581ea94c20750f0a87227a74e1d43de8c5f1ab6eb47e51c1e8ceb8841f3", kill_on_drop: false }` [INFO] [stdout] a5c23581ea94c20750f0a87227a74e1d43de8c5f1ab6eb47e51c1e8ceb8841f3