[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] checking zerosutienso/book_manager_web4 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzerosutienso%2Fbook_manager_web4" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zerosutienso/book_manager_web4 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a16ea3df3ecb00a0d8b2b0235c83e0ecea32a003026b6cf6a953e08535d0a04 [INFO] running `Command { std: "docker" "start" "-a" "8a16ea3df3ecb00a0d8b2b0235c83e0ecea32a003026b6cf6a953e08535d0a04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a16ea3df3ecb00a0d8b2b0235c83e0ecea32a003026b6cf6a953e08535d0a04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a16ea3df3ecb00a0d8b2b0235c83e0ecea32a003026b6cf6a953e08535d0a04", kill_on_drop: false }` [INFO] [stdout] 8a16ea3df3ecb00a0d8b2b0235c83e0ecea32a003026b6cf6a953e08535d0a04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72d4cae9a701e4a0b78e4074039f25079f3c8730e0d58cc9b76c2d74aad59964 [INFO] running `Command { std: "docker" "start" "-a" "72d4cae9a701e4a0b78e4074039f25079f3c8730e0d58cc9b76c2d74aad59964", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking pem v1.1.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [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 futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking 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: 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 `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] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:44:94 [INFO] [stdout] | [INFO] [stdout] 44 | async fn register_handler(register: RegisterRequest) -> Result { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 45 | | let message = Message::Register { [INFO] [stdout] 46 | | username: register.username, [INFO] [stdout] 47 | | email: register.email, [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:44:94 [INFO] [stdout] | [INFO] [stdout] 44 | async fn register_handler(register: RegisterRequest) -> Result { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 45 | | let message = Message::Register { [INFO] [stdout] 46 | | username: register.username, [INFO] [stdout] 47 | | email: register.email, [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / match send_message_to_server(message).await { [INFO] [stdout] 53 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 54 | | Err(e) => { [INFO] [stdout] 55 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 55 | | let error_response = serde_json::json!({ [INFO] [stdout] 56 | | "success": false, [INFO] [stdout] 57 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 58 | | }); [INFO] [stdout] 59 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:64:104 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_user_info_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 65 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:64:104 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_user_info_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 65 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] 67 | | [INFO] [stdout] 68 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 83 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 84 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:65:50 [INFO] [stdout] | [INFO] [stdout] 65 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] 67 | | [INFO] [stdout] 68 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 78 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | / match send_message_to_server(message).await { [INFO] [stdout] 69 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 70 | | Err(e) => { [INFO] [stdout] 71 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 71 | | let error_response = serde_json::json!({ [INFO] [stdout] 72 | | "success": false, [INFO] [stdout] 73 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 74 | | }); [INFO] [stdout] 75 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 79 | | let error_response = serde_json::json!({ [INFO] [stdout] 80 | | "success": false, [INFO] [stdout] 81 | | "message": "缺少認證令牌" [INFO] [stdout] 82 | | }); [INFO] [stdout] 83 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 84 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:91:43 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 92 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] ... | [INFO] [stdout] 136 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:91:43 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 92 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] ... | [INFO] [stdout] 136 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] 94 | | [INFO] [stdout] 95 | | if utils::is_duplicate_request(&history, &request_key) { [INFO] [stdout] ... | [INFO] [stdout] 134 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] 94 | | [INFO] [stdout] 95 | | if utils::is_duplicate_request(&history, &request_key) { [INFO] [stdout] ... | [INFO] [stdout] 129 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | return Ok(warp::reply::json(&response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | return Ok(warp::reply::json(&response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / match send_message_to_server(message).await { [INFO] [stdout] 120 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 121 | | Err(e) => { [INFO] [stdout] 122 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 128 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:120:29 [INFO] [stdout] | [INFO] [stdout] 120 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 122 | | let error_response = serde_json::json!({ [INFO] [stdout] 123 | | "success": false, [INFO] [stdout] 124 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 125 | | }); [INFO] [stdout] 126 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 130 | | let error_response = serde_json::json!({ [INFO] [stdout] 131 | | "success": false, [INFO] [stdout] 132 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 133 | | }); [INFO] [stdout] 134 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 142 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 142 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] 145 | | query: query.query [INFO] [stdout] ... | [INFO] [stdout] 163 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 164 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:142:50 [INFO] [stdout] | [INFO] [stdout] 142 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] 145 | | query: query.query [INFO] [stdout] ... | [INFO] [stdout] 158 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | / match send_message_to_server(message).await { [INFO] [stdout] 149 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 150 | | Err(e) => { [INFO] [stdout] 151 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:149:29 [INFO] [stdout] | [INFO] [stdout] 149 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 150 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 151 | | let error_response = serde_json::json!({ [INFO] [stdout] 152 | | "success": false, [INFO] [stdout] 153 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 154 | | }); [INFO] [stdout] 155 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 159 | | let error_response = serde_json::json!({ [INFO] [stdout] 160 | | "success": false, [INFO] [stdout] 161 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 162 | | }); [INFO] [stdout] 163 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 164 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:170:43 [INFO] [stdout] | [INFO] [stdout] 170 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 171 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] ... | [INFO] [stdout] 197 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:170:43 [INFO] [stdout] | [INFO] [stdout] 170 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 171 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] ... | [INFO] [stdout] 197 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] 174 | | id: update.id, [INFO] [stdout] ... | [INFO] [stdout] 195 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 196 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:171:50 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] 174 | | id: update.id, [INFO] [stdout] ... | [INFO] [stdout] 190 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | / match send_message_to_server(message).await { [INFO] [stdout] 181 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 182 | | Err(e) => { [INFO] [stdout] 183 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 183 | | let error_response = serde_json::json!({ [INFO] [stdout] 184 | | "success": false, [INFO] [stdout] 185 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 186 | | }); [INFO] [stdout] 187 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 191 | | let error_response = serde_json::json!({ [INFO] [stdout] 192 | | "success": false, [INFO] [stdout] 193 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 194 | | }); [INFO] [stdout] 195 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 196 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:202:43 [INFO] [stdout] | [INFO] [stdout] 202 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 203 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] ... | [INFO] [stdout] 226 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:202:43 [INFO] [stdout] | [INFO] [stdout] 202 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 203 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] ... | [INFO] [stdout] 226 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 203 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] 206 | | id: delete.id [INFO] [stdout] ... | [INFO] [stdout] 224 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] 206 | | id: delete.id [INFO] [stdout] ... | [INFO] [stdout] 219 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | / match send_message_to_server(message).await { [INFO] [stdout] 210 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 211 | | Err(e) => { [INFO] [stdout] 212 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 218 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:210:29 [INFO] [stdout] | [INFO] [stdout] 210 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 212 | | let error_response = serde_json::json!({ [INFO] [stdout] 213 | | "success": false, [INFO] [stdout] 214 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 215 | | }); [INFO] [stdout] 216 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 217 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 220 | | let error_response = serde_json::json!({ [INFO] [stdout] 221 | | "success": false, [INFO] [stdout] 222 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 223 | | }); [INFO] [stdout] 224 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:352:85 [INFO] [stdout] | [INFO] [stdout] 352 | async fn login_handler(login: LoginRequest) -> Result { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 353 | | let message = Message::Login { [INFO] [stdout] 354 | | username: login.username, [INFO] [stdout] 355 | | password: login.password, [INFO] [stdout] ... | [INFO] [stdout] 368 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:352:85 [INFO] [stdout] | [INFO] [stdout] 352 | async fn login_handler(login: LoginRequest) -> Result { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 353 | | let message = Message::Login { [INFO] [stdout] 354 | | username: login.username, [INFO] [stdout] 355 | | password: login.password, [INFO] [stdout] ... | [INFO] [stdout] 368 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:358:5 [INFO] [stdout] | [INFO] [stdout] 358 | / match send_message_to_server(message).await { [INFO] [stdout] 359 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 360 | | Err(e) => { [INFO] [stdout] 361 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 367 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:359:25 [INFO] [stdout] | [INFO] [stdout] 359 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:360:19 [INFO] [stdout] | [INFO] [stdout] 360 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 361 | | let error_response = serde_json::json!({ [INFO] [stdout] 362 | | "success": false, [INFO] [stdout] 363 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 364 | | }); [INFO] [stdout] 365 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 366 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:365:13 [INFO] [stdout] | [INFO] [stdout] 365 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:370:97 [INFO] [stdout] | [INFO] [stdout] 370 | async fn logout_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 371 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] ... | [INFO] [stdout] 391 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:370:97 [INFO] [stdout] | [INFO] [stdout] 370 | async fn logout_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 371 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] ... | [INFO] [stdout] 391 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] 373 | | [INFO] [stdout] 374 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 389 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 390 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:371:50 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] 373 | | [INFO] [stdout] 374 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 384 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 374 | / match send_message_to_server(message).await { [INFO] [stdout] 375 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 376 | | Err(e) => { [INFO] [stdout] 377 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 383 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:376:23 [INFO] [stdout] | [INFO] [stdout] 376 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 377 | | let error_response = serde_json::json!({ [INFO] [stdout] 378 | | "success": false, [INFO] [stdout] 379 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 380 | | }); [INFO] [stdout] 381 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 384 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 385 | | let error_response = serde_json::json!({ [INFO] [stdout] 386 | | "success": false, [INFO] [stdout] 387 | | "message": "缺少認證令牌" [INFO] [stdout] 388 | | }); [INFO] [stdout] 389 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 390 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:396:43 [INFO] [stdout] | [INFO] [stdout] 396 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 397 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] ... | [INFO] [stdout] 422 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:396:43 [INFO] [stdout] | [INFO] [stdout] 396 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 397 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] ... | [INFO] [stdout] 422 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] 400 | | old_password: change_password.old_password, [INFO] [stdout] ... | [INFO] [stdout] 420 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 421 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:397:50 [INFO] [stdout] | [INFO] [stdout] 397 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] 400 | | old_password: change_password.old_password, [INFO] [stdout] ... | [INFO] [stdout] 415 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 405 | / match send_message_to_server(message).await { [INFO] [stdout] 406 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 407 | | Err(e) => { [INFO] [stdout] 408 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 414 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 406 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:407:23 [INFO] [stdout] | [INFO] [stdout] 407 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 408 | | let error_response = serde_json::json!({ [INFO] [stdout] 409 | | "success": false, [INFO] [stdout] 410 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 411 | | }); [INFO] [stdout] 412 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 413 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:412:17 [INFO] [stdout] | [INFO] [stdout] 412 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:415:12 [INFO] [stdout] | [INFO] [stdout] 415 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 416 | | let error_response = serde_json::json!({ [INFO] [stdout] 417 | | "success": false, [INFO] [stdout] 418 | | "message": "缺少認證令牌" [INFO] [stdout] 419 | | }); [INFO] [stdout] 420 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 421 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:420:9 [INFO] [stdout] | [INFO] [stdout] 420 | Ok(warp::reply::json(&error_response)) [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] [stderr] error: could not compile `book_manager` (bin "client") due to 84 previous errors; 31 warnings emitted [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] [stderr] warning: build failed, waiting for other jobs to finish... [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] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:44:94 [INFO] [stdout] | [INFO] [stdout] 44 | async fn register_handler(register: RegisterRequest) -> Result { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 45 | | let message = Message::Register { [INFO] [stdout] 46 | | username: register.username, [INFO] [stdout] 47 | | email: register.email, [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:44:94 [INFO] [stdout] | [INFO] [stdout] 44 | async fn register_handler(register: RegisterRequest) -> Result { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 45 | | let message = Message::Register { [INFO] [stdout] 46 | | username: register.username, [INFO] [stdout] 47 | | email: register.email, [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | / match send_message_to_server(message).await { [INFO] [stdout] 53 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 54 | | Err(e) => { [INFO] [stdout] 55 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 55 | | let error_response = serde_json::json!({ [INFO] [stdout] 56 | | "success": false, [INFO] [stdout] 57 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 58 | | }); [INFO] [stdout] 59 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:64:104 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_user_info_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 65 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:64:104 [INFO] [stdout] | [INFO] [stdout] 64 | async fn get_user_info_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 65 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] 67 | | [INFO] [stdout] 68 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 83 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 84 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:65:50 [INFO] [stdout] | [INFO] [stdout] 65 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 66 | | let message = Message::GetUserInfo { token }; [INFO] [stdout] 67 | | [INFO] [stdout] 68 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 78 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | / match send_message_to_server(message).await { [INFO] [stdout] 69 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 70 | | Err(e) => { [INFO] [stdout] 71 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 71 | | let error_response = serde_json::json!({ [INFO] [stdout] 72 | | "success": false, [INFO] [stdout] 73 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 74 | | }); [INFO] [stdout] 75 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 79 | | let error_response = serde_json::json!({ [INFO] [stdout] 80 | | "success": false, [INFO] [stdout] 81 | | "message": "缺少認證令牌" [INFO] [stdout] 82 | | }); [INFO] [stdout] 83 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 84 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:91:43 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 92 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] ... | [INFO] [stdout] 136 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:91:43 [INFO] [stdout] | [INFO] [stdout] 91 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 92 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] ... | [INFO] [stdout] 136 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] 94 | | [INFO] [stdout] 95 | | if utils::is_duplicate_request(&history, &request_key) { [INFO] [stdout] ... | [INFO] [stdout] 134 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 93 | | let request_key = utils::generate_request_key(&book.title, &book.author, &book.excerpt); [INFO] [stdout] 94 | | [INFO] [stdout] 95 | | if utils::is_duplicate_request(&history, &request_key) { [INFO] [stdout] ... | [INFO] [stdout] 129 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:100:20 [INFO] [stdout] | [INFO] [stdout] 100 | return Ok(warp::reply::json(&response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | return Ok(warp::reply::json(&response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | / match send_message_to_server(message).await { [INFO] [stdout] 120 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 121 | | Err(e) => { [INFO] [stdout] 122 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 128 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:120:29 [INFO] [stdout] | [INFO] [stdout] 120 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:121:23 [INFO] [stdout] | [INFO] [stdout] 121 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 122 | | let error_response = serde_json::json!({ [INFO] [stdout] 123 | | "success": false, [INFO] [stdout] 124 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 125 | | }); [INFO] [stdout] 126 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 130 | | let error_response = serde_json::json!({ [INFO] [stdout] 131 | | "success": false, [INFO] [stdout] 132 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 133 | | }); [INFO] [stdout] 134 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 142 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 141 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 142 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] 145 | | query: query.query [INFO] [stdout] ... | [INFO] [stdout] 163 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 164 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:142:50 [INFO] [stdout] | [INFO] [stdout] 142 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 143 | | let message = Message::Query { [INFO] [stdout] 144 | | token, [INFO] [stdout] 145 | | query: query.query [INFO] [stdout] ... | [INFO] [stdout] 158 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | / match send_message_to_server(message).await { [INFO] [stdout] 149 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 150 | | Err(e) => { [INFO] [stdout] 151 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 157 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:149:29 [INFO] [stdout] | [INFO] [stdout] 149 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:150:23 [INFO] [stdout] | [INFO] [stdout] 150 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 151 | | let error_response = serde_json::json!({ [INFO] [stdout] 152 | | "success": false, [INFO] [stdout] 153 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 154 | | }); [INFO] [stdout] 155 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 156 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 159 | | let error_response = serde_json::json!({ [INFO] [stdout] 160 | | "success": false, [INFO] [stdout] 161 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 162 | | }); [INFO] [stdout] 163 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 164 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:170:43 [INFO] [stdout] | [INFO] [stdout] 170 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 171 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] ... | [INFO] [stdout] 197 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:170:43 [INFO] [stdout] | [INFO] [stdout] 170 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 171 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] ... | [INFO] [stdout] 197 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] 174 | | id: update.id, [INFO] [stdout] ... | [INFO] [stdout] 195 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 196 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:171:50 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 172 | | let message = Message::Update { [INFO] [stdout] 173 | | token, [INFO] [stdout] 174 | | id: update.id, [INFO] [stdout] ... | [INFO] [stdout] 190 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | / match send_message_to_server(message).await { [INFO] [stdout] 181 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 182 | | Err(e) => { [INFO] [stdout] 183 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:182:23 [INFO] [stdout] | [INFO] [stdout] 182 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 183 | | let error_response = serde_json::json!({ [INFO] [stdout] 184 | | "success": false, [INFO] [stdout] 185 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 186 | | }); [INFO] [stdout] 187 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 191 | | let error_response = serde_json::json!({ [INFO] [stdout] 192 | | "success": false, [INFO] [stdout] 193 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 194 | | }); [INFO] [stdout] 195 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 196 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:202:43 [INFO] [stdout] | [INFO] [stdout] 202 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 203 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] ... | [INFO] [stdout] 226 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:202:43 [INFO] [stdout] | [INFO] [stdout] 202 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 203 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] ... | [INFO] [stdout] 226 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:203:5 [INFO] [stdout] | [INFO] [stdout] 203 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] 206 | | id: delete.id [INFO] [stdout] ... | [INFO] [stdout] 224 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:203:50 [INFO] [stdout] | [INFO] [stdout] 203 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 204 | | let message = Message::Delete { [INFO] [stdout] 205 | | token, [INFO] [stdout] 206 | | id: delete.id [INFO] [stdout] ... | [INFO] [stdout] 219 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | / match send_message_to_server(message).await { [INFO] [stdout] 210 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 211 | | Err(e) => { [INFO] [stdout] 212 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 218 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:210:29 [INFO] [stdout] | [INFO] [stdout] 210 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 212 | | let error_response = serde_json::json!({ [INFO] [stdout] 213 | | "success": false, [INFO] [stdout] 214 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 215 | | }); [INFO] [stdout] 216 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 217 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 220 | | let error_response = serde_json::json!({ [INFO] [stdout] 221 | | "success": false, [INFO] [stdout] 222 | | "message": "缺少認證令牌,請重新登入" [INFO] [stdout] 223 | | }); [INFO] [stdout] 224 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 225 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:352:85 [INFO] [stdout] | [INFO] [stdout] 352 | async fn login_handler(login: LoginRequest) -> Result { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 353 | | let message = Message::Login { [INFO] [stdout] 354 | | username: login.username, [INFO] [stdout] 355 | | password: login.password, [INFO] [stdout] ... | [INFO] [stdout] 368 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:352:85 [INFO] [stdout] | [INFO] [stdout] 352 | async fn login_handler(login: LoginRequest) -> Result { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 353 | | let message = Message::Login { [INFO] [stdout] 354 | | username: login.username, [INFO] [stdout] 355 | | password: login.password, [INFO] [stdout] ... | [INFO] [stdout] 368 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `book_manager` (bin "client" test) due to 84 previous errors; 31 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:358:5 [INFO] [stdout] | [INFO] [stdout] 358 | / match send_message_to_server(message).await { [INFO] [stdout] 359 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 360 | | Err(e) => { [INFO] [stdout] 361 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 367 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:359:25 [INFO] [stdout] | [INFO] [stdout] 359 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:360:19 [INFO] [stdout] | [INFO] [stdout] 360 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 361 | | let error_response = serde_json::json!({ [INFO] [stdout] 362 | | "success": false, [INFO] [stdout] 363 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 364 | | }); [INFO] [stdout] 365 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 366 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:365:13 [INFO] [stdout] | [INFO] [stdout] 365 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:370:97 [INFO] [stdout] | [INFO] [stdout] 370 | async fn logout_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 371 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] ... | [INFO] [stdout] 391 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:370:97 [INFO] [stdout] | [INFO] [stdout] 370 | async fn logout_handler(headers: warp::http::HeaderMap) -> Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 371 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] ... | [INFO] [stdout] 391 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] 373 | | [INFO] [stdout] 374 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 389 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 390 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:371:50 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 372 | | let message = Message::Logout { token }; [INFO] [stdout] 373 | | [INFO] [stdout] 374 | | match send_message_to_server(message).await { [INFO] [stdout] ... | [INFO] [stdout] 384 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 374 | / match send_message_to_server(message).await { [INFO] [stdout] 375 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 376 | | Err(e) => { [INFO] [stdout] 377 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 383 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:376:23 [INFO] [stdout] | [INFO] [stdout] 376 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 377 | | let error_response = serde_json::json!({ [INFO] [stdout] 378 | | "success": false, [INFO] [stdout] 379 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 380 | | }); [INFO] [stdout] 381 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 382 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 384 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 385 | | let error_response = serde_json::json!({ [INFO] [stdout] 386 | | "success": false, [INFO] [stdout] 387 | | "message": "缺少認證令牌" [INFO] [stdout] 388 | | }); [INFO] [stdout] 389 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 390 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:396:43 [INFO] [stdout] | [INFO] [stdout] 396 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 397 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] ... | [INFO] [stdout] 422 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:396:43 [INFO] [stdout] | [INFO] [stdout] 396 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 397 | | if let Some(token) = extract_token(&headers) { [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] ... | [INFO] [stdout] 422 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | / if let Some(token) = extract_token(&headers) { [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] 400 | | old_password: change_password.old_password, [INFO] [stdout] ... | [INFO] [stdout] 420 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 421 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:397:50 [INFO] [stdout] | [INFO] [stdout] 397 | if let Some(token) = extract_token(&headers) { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 398 | | let message = Message::ChangePassword { [INFO] [stdout] 399 | | token, [INFO] [stdout] 400 | | old_password: change_password.old_password, [INFO] [stdout] ... | [INFO] [stdout] 415 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 405 | / match send_message_to_server(message).await { [INFO] [stdout] 406 | | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] 407 | | Err(e) => { [INFO] [stdout] 408 | | let error_response = serde_json::json!({ [INFO] [stdout] ... | [INFO] [stdout] 414 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:406:29 [INFO] [stdout] | [INFO] [stdout] 406 | Ok(response) => Ok(warp::reply::json(&response)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:407:23 [INFO] [stdout] | [INFO] [stdout] 407 | Err(e) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 408 | | let error_response = serde_json::json!({ [INFO] [stdout] 409 | | "success": false, [INFO] [stdout] 410 | | "message": format!("服務器通訊錯誤: {}", e) [INFO] [stdout] 411 | | }); [INFO] [stdout] 412 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 413 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:412:17 [INFO] [stdout] | [INFO] [stdout] 412 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:415:12 [INFO] [stdout] | [INFO] [stdout] 415 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 416 | | let error_response = serde_json::json!({ [INFO] [stdout] 417 | | "success": false, [INFO] [stdout] 418 | | "message": "缺少認證令牌" [INFO] [stdout] 419 | | }); [INFO] [stdout] 420 | | Ok(warp::reply::json(&error_response)) [INFO] [stdout] 421 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/client.rs:420:9 [INFO] [stdout] | [INFO] [stdout] 420 | Ok(warp::reply::json(&error_response)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "72d4cae9a701e4a0b78e4074039f25079f3c8730e0d58cc9b76c2d74aad59964", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72d4cae9a701e4a0b78e4074039f25079f3c8730e0d58cc9b76c2d74aad59964", kill_on_drop: false }` [INFO] [stdout] 72d4cae9a701e4a0b78e4074039f25079f3c8730e0d58cc9b76c2d74aad59964