[INFO] fetching crate kbve 0.1.25... [INFO] testing kbve-0.1.25 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate kbve 0.1.25 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate kbve 0.1.25 [INFO] finished tweaking crates.io crate kbve 0.1.25 [INFO] tweaked toml for crates.io crate kbve 0.1.25 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate kbve 0.1.25 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 290 packages to latest compatible versions [INFO] [stderr] Adding ammonia v3.3.0 (available: v4.1.1) [INFO] [stderr] Adding axum v0.6.20 (available: v0.8.4) [INFO] [stderr] Adding axum-extra v0.7.7 (available: v0.10.1) [INFO] [stderr] Adding dashmap v5.5.3 (available: v6.1.0) [INFO] [stderr] Adding jedi v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding jsonwebtoken v8.3.0 (available: v9.3.1) [INFO] [stderr] Adding rand_core v0.6.4 (available: v0.9.3) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding tower v0.4.13 (available: v0.5.2) [INFO] [stderr] Adding tower-http v0.4.4 (available: v0.6.6) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jedi v0.1.14 [INFO] [stderr] Downloaded axum-extra v0.7.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b95759061eda7227c421906ec74bbce3555816e8ffbc914fc9bd4c9eb6fce05c [INFO] running `Command { std: "docker" "start" "-a" "b95759061eda7227c421906ec74bbce3555816e8ffbc914fc9bd4c9eb6fce05c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b95759061eda7227c421906ec74bbce3555816e8ffbc914fc9bd4c9eb6fce05c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b95759061eda7227c421906ec74bbce3555816e8ffbc914fc9bd4c9eb6fce05c", kill_on_drop: false }` [INFO] [stdout] b95759061eda7227c421906ec74bbce3555816e8ffbc914fc9bd4c9eb6fce05c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbc5a736e26d8c8d3bfa29c89e35e23a50aaaf128b9b90d2b7047b60a81b91a1 [INFO] running `Command { std: "docker" "start" "-a" "cbc5a736e26d8c8d3bfa29c89e35e23a50aaaf128b9b90d2b7047b60a81b91a1", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling deranged v0.5.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futf v0.1.5 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling time-macros v0.2.23 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling tendril v0.4.3 [INFO] [stderr] Compiling time v0.3.42 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling mysqlclient-sys v0.4.7 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling dsl_auto_type v0.1.3 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling ammonia v3.3.0 [INFO] [stderr] Compiling diesel_derives v2.2.7 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling tower-http v0.4.4 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling jedi v0.1.14 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling ulid v1.2.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling diesel v2.2.12 [INFO] [stderr] Compiling axum-extra v0.7.7 [INFO] [stderr] Compiling kbve v0.1.25 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/utility.rs:183:15 [INFO] [stdout] | [INFO] [stdout] 183 | .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stdout] 183 + .filter(|c| c.is_alphanumeric() || "/?@%$#".contains(*c)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Response`, `async_trait`, and `self` [INFO] [stdout] --> src/authentication.rs:40:3 [INFO] [stdout] | [INFO] [stdout] 40 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | http::{ StatusCode, Request, header }, [INFO] [stdout] 42 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 45 | Json, [INFO] [stdout] 46 | BoxError, [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: `rand_core::OsRng` [INFO] [stdout] --> src/authentication.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use rand_core::OsRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error as ReqwestError` [INFO] [stdout] --> src/sys/system_diagnostics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use reqwest::Error as ReqwestError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value as JsonValue` [INFO] [stdout] --> src/entity/response/header_response.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::{json, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/entity/session/jwt.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::http::{ StatusCode, HeaderMap }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/entity/session/middleware.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | extract::{ Extension, Json, State }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/entity/session/middleware.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use jsonwebtoken::{decode, DecodingKey, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/entity/session/recover.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{Utc, Duration, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PasswordHash` and `PasswordVerifier` [INFO] [stdout] --> src/entity/session/recover.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use argon2::{ password_hash::SaltString, Argon2, PasswordHash, PasswordHasher, PasswordVerifier }; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stdout] --> src/entity/session/recover.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | http::{ StatusCode, Request, header }, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] 22 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 23 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 25 | Json, [INFO] [stdout] 26 | BoxError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/entity/session/recover.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/shields.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/shields.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/jedi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/jedi.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap`, `Query`, `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/sheet.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{ Query, Path }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | response::{ Response, IntoResponse }, [INFO] [stdout] 4 | http::{ StatusCode, header, HeaderMap }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/sheet.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ammonia::clean` [INFO] [stdout] --> src/entity/images/sheet.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use ammonia::clean; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenericResponse` and `HeaderResponse` [INFO] [stdout] --> src/entity/images/sheet.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::response::{ GenericResponse, HeaderResponse }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Character` [INFO] [stdout] --> src/entity/images/sheet.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::models::{ Character }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/entity/images/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use shields::*; [INFO] [stdout] | ^^^^^^^^^^ the name `TextParams` in the type namespace is first re-exported here [INFO] [stdout] 6 | pub use jedi::*; [INFO] [stdout] 7 | pub use sheet::*; [INFO] [stdout] | -------- but the name `TextParams` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/entity/client/resend.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stdout] --> src/entity/client/resend.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | http::{ StatusCode, Request, header }, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] 20 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 21 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 23 | Json, [INFO] [stdout] 24 | BoxError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/entity/client/ai.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroqResponse` [INFO] [stdout] --> src/entity/client/ai.rs:5:60 [INFO] [stdout] | [INFO] [stdout] 5 | use jedi::groq::{GroqClient, GroqRequestBody, GroqMessage, GroqResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/entity/client/ai.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/entity/client/ai.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spellbook::*` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use spellbook::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/authentication.rs:108:11 [INFO] [stdout] | [INFO] [stdout] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/authentication.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/authentication.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/authentication.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_token_cookie` [INFO] [stdout] --> src/entity/session/jwt.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | let empty_token_cookie = HeaderResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_token_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | Extension(mut privatedata): Extension> [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:189:6 [INFO] [stdout] | [INFO] [stdout] 189 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:268:10 [INFO] [stdout] | [INFO] [stdout] 268 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:373:7 [INFO] [stdout] | [INFO] [stdout] 373 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_message` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:420:7 [INFO] [stdout] | [INFO] [stdout] 420 | Err(error_message) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | Extension(mut privatedata): Extension>, [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:268:6 [INFO] [stdout] | [INFO] [stdout] 268 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 15s [INFO] running `Command { std: "docker" "inspect" "cbc5a736e26d8c8d3bfa29c89e35e23a50aaaf128b9b90d2b7047b60a81b91a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbc5a736e26d8c8d3bfa29c89e35e23a50aaaf128b9b90d2b7047b60a81b91a1", kill_on_drop: false }` [INFO] [stdout] cbc5a736e26d8c8d3bfa29c89e35e23a50aaaf128b9b90d2b7047b60a81b91a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52b83c8dc672248ad0c6b9ee0647979ff818fb002d44075c274ecc87f87c94d5 [INFO] running `Command { std: "docker" "start" "-a" "52b83c8dc672248ad0c6b9ee0647979ff818fb002d44075c274ecc87f87c94d5", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/utility.rs:183:15 [INFO] [stdout] | [INFO] [stdout] 183 | .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stdout] 183 + .filter(|c| c.is_alphanumeric() || "/?@%$#".contains(*c)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Response`, `async_trait`, and `self` [INFO] [stdout] --> src/authentication.rs:40:3 [INFO] [stdout] | [INFO] [stdout] 40 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | http::{ StatusCode, Request, header }, [INFO] [stdout] 42 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 45 | Json, [INFO] [stdout] 46 | BoxError, [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: `rand_core::OsRng` [INFO] [stdout] --> src/authentication.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use rand_core::OsRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error as ReqwestError` [INFO] [stdout] --> src/sys/system_diagnostics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use reqwest::Error as ReqwestError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value as JsonValue` [INFO] [stdout] --> src/entity/response/header_response.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::{json, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/entity/session/jwt.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::http::{ StatusCode, HeaderMap }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/entity/session/middleware.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | extract::{ Extension, Json, State }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/entity/session/middleware.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use jsonwebtoken::{decode, DecodingKey, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/entity/session/recover.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{Utc, Duration, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PasswordHash` and `PasswordVerifier` [INFO] [stdout] --> src/entity/session/recover.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use argon2::{ password_hash::SaltString, Argon2, PasswordHash, PasswordHasher, PasswordVerifier }; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stdout] --> src/entity/session/recover.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | http::{ StatusCode, Request, header }, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] 22 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 23 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 25 | Json, [INFO] [stdout] 26 | BoxError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/entity/session/recover.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/shields.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/shields.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/jedi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/jedi.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap`, `Query`, `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/sheet.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{ Query, Path }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | response::{ Response, IntoResponse }, [INFO] [stdout] 4 | http::{ StatusCode, header, HeaderMap }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/sheet.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ammonia::clean` [INFO] [stdout] --> src/entity/images/sheet.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use ammonia::clean; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenericResponse` and `HeaderResponse` [INFO] [stdout] --> src/entity/images/sheet.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::response::{ GenericResponse, HeaderResponse }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Character` [INFO] [stdout] --> src/entity/images/sheet.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::models::{ Character }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/entity/images/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use shields::*; [INFO] [stdout] | ^^^^^^^^^^ the name `TextParams` in the type namespace is first re-exported here [INFO] [stdout] 6 | pub use jedi::*; [INFO] [stdout] 7 | pub use sheet::*; [INFO] [stdout] | -------- but the name `TextParams` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/entity/client/resend.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stdout] --> src/entity/client/resend.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | http::{ StatusCode, Request, header }, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] 20 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 21 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 23 | Json, [INFO] [stdout] 24 | BoxError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/entity/client/ai.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroqResponse` [INFO] [stdout] --> src/entity/client/ai.rs:5:60 [INFO] [stdout] | [INFO] [stdout] 5 | use jedi::groq::{GroqClient, GroqRequestBody, GroqMessage, GroqResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/entity/client/ai.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/entity/client/ai.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spellbook::*` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use spellbook::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/authentication.rs:108:11 [INFO] [stdout] | [INFO] [stdout] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/authentication.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/authentication.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/authentication.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_token_cookie` [INFO] [stdout] --> src/entity/session/jwt.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | let empty_token_cookie = HeaderResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_token_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | Extension(mut privatedata): Extension> [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:189:6 [INFO] [stdout] | [INFO] [stdout] 189 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:268:10 [INFO] [stdout] | [INFO] [stdout] 268 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:373:7 [INFO] [stdout] | [INFO] [stdout] 373 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_message` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:420:7 [INFO] [stdout] | [INFO] [stdout] 420 | Err(error_message) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | Extension(mut privatedata): Extension>, [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling kbve v0.1.25 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:268:6 [INFO] [stdout] | [INFO] [stdout] 268 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/utility.rs:183:15 [INFO] [stdout] | [INFO] [stdout] 183 | .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stdout] 183 + .filter(|c| c.is_alphanumeric() || "/?@%$#".contains(*c)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Response`, `async_trait`, and `self` [INFO] [stdout] --> src/authentication.rs:40:3 [INFO] [stdout] | [INFO] [stdout] 40 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | http::{ StatusCode, Request, header }, [INFO] [stdout] 42 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 45 | Json, [INFO] [stdout] 46 | BoxError, [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: `rand_core::OsRng` [INFO] [stdout] --> src/authentication.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use rand_core::OsRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error as ReqwestError` [INFO] [stdout] --> src/sys/system_diagnostics.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use reqwest::Error as ReqwestError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value as JsonValue` [INFO] [stdout] --> src/entity/response/header_response.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use serde_json::{json, Value as JsonValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/entity/session/jwt.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::http::{ StatusCode, HeaderMap }; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/entity/session/middleware.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | extract::{ Extension, Json, State }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/entity/session/middleware.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | use jsonwebtoken::{decode, DecodingKey, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NaiveDateTime` [INFO] [stdout] --> src/entity/session/recover.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{Utc, Duration, NaiveDateTime}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PasswordHash` and `PasswordVerifier` [INFO] [stdout] --> src/entity/session/recover.rs:9:50 [INFO] [stdout] | [INFO] [stdout] 9 | use argon2::{ password_hash::SaltString, Argon2, PasswordHash, PasswordHasher, PasswordVerifier }; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stdout] --> src/entity/session/recover.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | http::{ StatusCode, Request, header }, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] 22 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 23 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 25 | Json, [INFO] [stdout] 26 | BoxError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/entity/session/recover.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/shields.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/shields.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/jedi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/jedi.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderMap`, `Query`, `Router`, `async_trait`, and `routing::get` [INFO] [stdout] --> src/entity/images/sheet.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{ Query, Path }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | response::{ Response, IntoResponse }, [INFO] [stdout] 4 | http::{ StatusCode, header, HeaderMap }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | routing::get, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | body::Body, [INFO] [stdout] 8 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/entity/images/sheet.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ammonia::clean` [INFO] [stdout] --> src/entity/images/sheet.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use ammonia::clean; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GenericResponse` and `HeaderResponse` [INFO] [stdout] --> src/entity/images/sheet.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::response::{ GenericResponse, HeaderResponse }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Character` [INFO] [stdout] --> src/entity/images/sheet.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::models::{ Character }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/entity/images/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use shields::*; [INFO] [stdout] | ^^^^^^^^^^ the name `TextParams` in the type namespace is first re-exported here [INFO] [stdout] 6 | pub use jedi::*; [INFO] [stdout] 7 | pub use sheet::*; [INFO] [stdout] | -------- but the name `TextParams` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/entity/client/resend.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stdout] --> src/entity/client/resend.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | async_trait, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | http::{ StatusCode, Request, header }, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] 20 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 21 | response::{ IntoResponse, Response }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | middleware::{ self, Next }, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] 23 | Json, [INFO] [stdout] 24 | BoxError, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> src/entity/client/ai.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GroqResponse` [INFO] [stdout] --> src/entity/client/ai.rs:5:60 [INFO] [stdout] | [INFO] [stdout] 5 | use jedi::groq::{GroqClient, GroqRequestBody, GroqMessage, GroqResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/entity/client/ai.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/entity/client/ai.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spellbook::*` [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use spellbook::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/authentication.rs:108:11 [INFO] [stdout] | [INFO] [stdout] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/authentication.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/authentication.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/authentication.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_token_cookie` [INFO] [stdout] --> src/entity/session/jwt.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | let empty_token_cookie = HeaderResponse::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_token_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | Extension(mut privatedata): Extension> [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:189:6 [INFO] [stdout] | [INFO] [stdout] 189 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:268:10 [INFO] [stdout] | [INFO] [stdout] 268 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:373:7 [INFO] [stdout] | [INFO] [stdout] 373 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_message` [INFO] [stdout] --> src/entity/model/character/character_handler.rs:420:7 [INFO] [stdout] | [INFO] [stdout] 420 | Err(error_message) => { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | Extension(mut privatedata): Extension>, [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity/model/character/character_handler.rs:268:6 [INFO] [stdout] | [INFO] [stdout] 268 | let mut conn = match state.db_pool.get() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.88s [INFO] running `Command { std: "docker" "inspect" "52b83c8dc672248ad0c6b9ee0647979ff818fb002d44075c274ecc87f87c94d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52b83c8dc672248ad0c6b9ee0647979ff818fb002d44075c274ecc87f87c94d5", kill_on_drop: false }` [INFO] [stdout] 52b83c8dc672248ad0c6b9ee0647979ff818fb002d44075c274ecc87f87c94d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4595faa82f6d628bb9c0444470e526516af362ef7d833dae1ceefa9259d823ad [INFO] running `Command { std: "docker" "start" "-a" "4595faa82f6d628bb9c0444470e526516af362ef7d833dae1ceefa9259d823ad", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/utility.rs:183:15 [INFO] [stderr] | [INFO] [stderr] 183 | .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 183 - .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stderr] 183 + .filter(|c| c.is_alphanumeric() || "/?@%$#".contains(*c)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Response`, `async_trait`, and `self` [INFO] [stderr] --> src/authentication.rs:40:3 [INFO] [stderr] | [INFO] [stderr] 40 | async_trait, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 41 | http::{ StatusCode, Request, header }, [INFO] [stderr] 42 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 43 | response::{ IntoResponse, Response }, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 44 | middleware::{ self, Next }, [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] 45 | Json, [INFO] [stderr] 46 | BoxError, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand_core::OsRng` [INFO] [stderr] --> src/authentication.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | use rand_core::OsRng; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reqwest::Error as ReqwestError` [INFO] [stderr] --> src/sys/system_diagnostics.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use reqwest::Error as ReqwestError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Value as JsonValue` [INFO] [stderr] --> src/entity/response/header_response.rs:10:24 [INFO] [stderr] | [INFO] [stderr] 10 | use serde_json::{json, Value as JsonValue}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `StatusCode` [INFO] [stderr] --> src/entity/session/jwt.rs:5:19 [INFO] [stderr] | [INFO] [stderr] 5 | use axum::http::{ StatusCode, HeaderMap }; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Extension` [INFO] [stderr] --> src/entity/session/middleware.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | extract::{ Extension, Json, State }, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stderr] --> src/entity/session/middleware.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | use jsonwebtoken::{decode, DecodingKey, Validation}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NaiveDateTime` [INFO] [stderr] --> src/entity/session/recover.rs:3:29 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono::{Utc, Duration, NaiveDateTime}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `PasswordHash` and `PasswordVerifier` [INFO] [stderr] --> src/entity/session/recover.rs:9:50 [INFO] [stderr] | [INFO] [stderr] 9 | use argon2::{ password_hash::SaltString, Argon2, PasswordHash, PasswordHasher, PasswordVerifier }; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stderr] --> src/entity/session/recover.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | async_trait, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 21 | http::{ StatusCode, Request, header }, [INFO] [stderr] | ^^^^^^^ ^^^^^^ [INFO] [stderr] 22 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stderr] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stderr] 23 | response::{ IntoResponse, Response }, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 24 | middleware::{ self, Next }, [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] 25 | Json, [INFO] [stderr] 26 | BoxError, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str::FromStr` [INFO] [stderr] --> src/entity/session/recover.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::str::FromStr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stderr] --> src/entity/images/shields.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | routing::get, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 6 | Router, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 7 | body::Body, [INFO] [stderr] 8 | async_trait, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/entity/images/shields.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Router`, `async_trait`, and `routing::get` [INFO] [stderr] --> src/entity/images/jedi.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | routing::get, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 6 | Router, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 7 | body::Body, [INFO] [stderr] 8 | async_trait, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/entity/images/jedi.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HeaderMap`, `Query`, `Router`, `async_trait`, and `routing::get` [INFO] [stderr] --> src/entity/images/sheet.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | extract::{ Query, Path }, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 3 | response::{ Response, IntoResponse }, [INFO] [stderr] 4 | http::{ StatusCode, header, HeaderMap }, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 5 | routing::get, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 6 | Router, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 7 | body::Body, [INFO] [stderr] 8 | async_trait, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/entity/images/sheet.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ammonia::clean` [INFO] [stderr] --> src/entity/images/sheet.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use ammonia::clean; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GenericResponse` and `HeaderResponse` [INFO] [stderr] --> src/entity/images/sheet.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | use crate::response::{ GenericResponse, HeaderResponse }; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Character` [INFO] [stderr] --> src/entity/images/sheet.rs:29:22 [INFO] [stderr] | [INFO] [stderr] 29 | use crate::models::{ Character }; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: ambiguous glob re-exports [INFO] [stderr] --> src/entity/images/mod.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub use shields::*; [INFO] [stderr] | ^^^^^^^^^^ the name `TextParams` in the type namespace is first re-exported here [INFO] [stderr] 6 | pub use jedi::*; [INFO] [stderr] 7 | pub use sheet::*; [INFO] [stderr] | -------- but the name `TextParams` in the type namespace is also re-exported here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::Utc` [INFO] [stderr] --> src/entity/model/character/character_handler.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use chrono::Utc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/entity/client/resend.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BoxError`, `FromRequest`, `Next`, `Path`, `Request`, `Response`, `State`, `async_trait`, `header`, and `self` [INFO] [stderr] --> src/entity/client/resend.rs:18:3 [INFO] [stderr] | [INFO] [stderr] 18 | async_trait, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 19 | http::{ StatusCode, Request, header }, [INFO] [stderr] | ^^^^^^^ ^^^^^^ [INFO] [stderr] 20 | extract::{ Extension, Path, State, FromRequest }, [INFO] [stderr] | ^^^^ ^^^^^ ^^^^^^^^^^^ [INFO] [stderr] 21 | response::{ IntoResponse, Response }, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 22 | middleware::{ self, Next }, [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] 23 | Json, [INFO] [stderr] 24 | BoxError, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `info` and `warn` [INFO] [stderr] --> src/entity/client/ai.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use tracing::{info, warn, error}; [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GroqResponse` [INFO] [stderr] --> src/entity/client/ai.rs:5:60 [INFO] [stderr] | [INFO] [stderr] 5 | use jedi::groq::{GroqClient, GroqRequestBody, GroqMessage, GroqResponse}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/entity/client/ai.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/entity/client/ai.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `spellbook::*` [INFO] [stderr] --> src/lib.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub use spellbook::*; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn` [INFO] [stderr] --> src/authentication.rs:108:11 [INFO] [stderr] | [INFO] [stderr] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/authentication.rs:165:9 [INFO] [stderr] | [INFO] [stderr] 165 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/authentication.rs:108:7 [INFO] [stderr] | [INFO] [stderr] 108 | let mut conn = spellbook_pool!(pool); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/authentication.rs:376:9 [INFO] [stderr] | [INFO] [stderr] 376 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `empty_token_cookie` [INFO] [stderr] --> src/entity/session/jwt.rs:11:6 [INFO] [stderr] | [INFO] [stderr] 11 | let empty_token_cookie = HeaderResponse::new( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_token_cookie` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn` [INFO] [stderr] --> src/entity/model/character/character_handler.rs:189:10 [INFO] [stderr] | [INFO] [stderr] 189 | let mut conn = match state.db_pool.get() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/entity/model/character/character_handler.rs:223:7 [INFO] [stderr] | [INFO] [stderr] 223 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/entity/model/character/character_handler.rs:187:12 [INFO] [stderr] | [INFO] [stderr] 187 | Extension(mut privatedata): Extension> [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/entity/model/character/character_handler.rs:189:6 [INFO] [stderr] | [INFO] [stderr] 189 | let mut conn = match state.db_pool.get() { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conn` [INFO] [stderr] --> src/entity/model/character/character_handler.rs:268:10 [INFO] [stderr] | [INFO] [stderr] 268 | let mut conn = match state.db_pool.get() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/entity/model/character/character_handler.rs:373:7 [INFO] [stderr] | [INFO] [stderr] 373 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `error_message` [INFO] [stderr] --> src/entity/model/character/character_handler.rs:420:7 [INFO] [stderr] | [INFO] [stderr] 420 | Err(error_message) => { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_message` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/entity/model/character/character_handler.rs:265:12 [INFO] [stderr] | [INFO] [stderr] 265 | Extension(mut privatedata): Extension>, [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/entity/model/character/character_handler.rs:268:6 [INFO] [stderr] | [INFO] [stderr] 268 | let mut conn = match state.db_pool.get() { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `kbve` (lib) generated 44 warnings (run `cargo fix --lib -p kbve` to apply 34 suggestions) [INFO] [stderr] warning: `kbve` (lib test) generated 44 warnings (44 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/kbve-ddb58df9ede0012a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests kbve [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/utility.rs:183:15 [INFO] [stderr] | [INFO] [stderr] 183 | .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 183 - .filter(|c| (c.is_alphanumeric() || "/?@%$#".contains(*c))) [INFO] [stderr] 183 + .filter(|c| c.is_alphanumeric() || "/?@%$#".contains(*c)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4595faa82f6d628bb9c0444470e526516af362ef7d833dae1ceefa9259d823ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4595faa82f6d628bb9c0444470e526516af362ef7d833dae1ceefa9259d823ad", kill_on_drop: false }` [INFO] [stdout] 4595faa82f6d628bb9c0444470e526516af362ef7d833dae1ceefa9259d823ad