[INFO] cloning repository https://github.com/deddybear/pb-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/deddybear/pb-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeddybear%2Fpb-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeddybear%2Fpb-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 732f974620f52bfb0a9c180493238658dbc32e58 [INFO] linting deddybear/pb-backend against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdeddybear%2Fpb-backend" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/deddybear/pb-backend [INFO] finished tweaking git repo https://github.com/deddybear/pb-backend [INFO] tweaked toml for git repo https://github.com/deddybear/pb-backend written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/deddybear/pb-backend on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/deddybear/pb-backend 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mac_address v1.1.8 [INFO] [stderr] Downloaded quoted_printable v0.5.1 [INFO] [stderr] Downloaded regex-cache v0.2.1 [INFO] [stderr] Downloaded email-encoding v0.4.1 [INFO] [stderr] Downloaded card-validate v2.4.0 [INFO] [stderr] Downloaded chumsky v0.9.3 [INFO] [stderr] Downloaded bcrypt v0.18.0 [INFO] [stderr] Downloaded garde v0.22.1 [INFO] [stderr] Downloaded garde_derive v0.22.1 [INFO] [stderr] Downloaded oncemutex v0.1.1 [INFO] [stderr] Downloaded redox_syscall v0.7.1 [INFO] [stderr] Downloaded jiff-static v0.2.20 [INFO] [stderr] Downloaded lettre v0.11.19 [INFO] [stderr] Downloaded jiff v0.2.20 [INFO] [stderr] Downloaded phonenumber v0.3.9+9.0.21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f83543349f4f58a88a851bd8c87545cd8c763a566e53689978cfee16781c982e [INFO] running `Command { std: "docker" "start" "-a" "f83543349f4f58a88a851bd8c87545cd8c763a566e53689978cfee16781c982e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f83543349f4f58a88a851bd8c87545cd8c763a566e53689978cfee16781c982e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f83543349f4f58a88a851bd8c87545cd8c763a566e53689978cfee16781c982e", kill_on_drop: false }` [INFO] [stdout] f83543349f4f58a88a851bd8c87545cd8c763a566e53689978cfee16781c982e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7126cbd333b9a8a7c29e7657a349e18404a3fa64b0c3a1cb6cbdb44d658956a [INFO] running `Command { std: "docker" "start" "-a" "d7126cbd333b9a8a7c29e7657a349e18404a3fa64b0c3a1cb6cbdb44d658956a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking base64ct v1.8.3 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling hash32 v0.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling mac_address v1.1.8 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling ar_archive_writer v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling cobs v0.3.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling aws-lc-rs v1.16.0 [INFO] [stderr] Compiling uuid v1.21.0 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling aws-lc-sys v0.37.1 [INFO] [stderr] Compiling stacker v0.1.23 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling postcard v1.1.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling psm v0.1.30 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling quick-xml v0.38.4 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Checking oncemutex v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-cache v0.2.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Compiling phonenumber v0.3.9+9.0.21 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Compiling garde_derive v0.22.1 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking p384 v0.13.1 [INFO] [stderr] Checking hostname v0.4.2 [INFO] [stderr] Checking card-validate v2.4.0 [INFO] [stderr] Checking env_filter v1.0.0 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking email-encoding v0.4.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking rsa v0.9.10 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking quoted_printable v0.5.1 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Checking jiff v0.2.20 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking bcrypt v0.18.0 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking jsonwebtoken v10.3.0 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking garde v0.22.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking lettre v0.11.19 [INFO] [stderr] Checking env_logger v0.11.9 [INFO] [stderr] Checking sqlx-postgres v0.8.6 [INFO] [stderr] Checking axum-extra v0.12.5 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking pb-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/handlers/shop_handler.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / /// buy weapon, chara, head [INFO] [stdout] 23 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn top_up_money( [INFO] [stdout] | ------------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 23 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/utils/response.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / /// A `Template` struct containing the HTTP code and message [INFO] [stdout] 13 | | [INFO] [stdout] | |_^ [INFO] [stdout] 14 | pub fn create_response(code: u16, message: &str) -> Template { [INFO] [stdout] | ---------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/utils/fallback.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / /// - A JSON response with error details [INFO] [stdout] 25 | | [INFO] [stdout] | |_^ [INFO] [stdout] 26 | pub async fn handler_404(uri: Uri) -> impl IntoResponse { [INFO] [stdout] | ------------------------ the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/handlers/shop_handler.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / /// buy weapon, chara, head [INFO] [stdout] 23 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub async fn top_up_money( [INFO] [stdout] | ------------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 23 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/utils/response.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / /// A `Template` struct containing the HTTP code and message [INFO] [stdout] 13 | | [INFO] [stdout] | |_^ [INFO] [stdout] 14 | pub fn create_response(code: u16, message: &str) -> Template { [INFO] [stdout] | ---------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/utils/fallback.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / /// - A JSON response with error details [INFO] [stdout] 25 | | [INFO] [stdout] | |_^ [INFO] [stdout] 26 | pub async fn handler_404(uri: Uri) -> impl IntoResponse { [INFO] [stdout] | ------------------------ the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `email`, and `access_level` are never read [INFO] [stdout] --> src/models/auth_model.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AuthUser { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 3 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 4 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub access_level: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthUser` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PayloadTooLarge` is never constructed [INFO] [stdout] --> src/utils/errors.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum AppError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 38 | PayloadTooLarge(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppPath` is never constructed [INFO] [stdout] --> src/utils/extractors.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct AppPath(pub T); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/auth_handler.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | if result_verify_password == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_password` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | &"Login successful".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Login successful"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/auth_handler.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | if result_verify_password == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_password` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | &"Login successful".to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Login successful"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/handlers/auth_handler.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | / format!( [INFO] [stdout] 140 | | "Username {} sudah terdaftar, silahkan menggunakan username yang lain !", [INFO] [stdout] 141 | | &body.username [INFO] [stdout] 142 | | ) [INFO] [stdout] 143 | | .into(), [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] help: consider removing `.into()` [INFO] [stdout] | [INFO] [stdout] 139 ~ format!( [INFO] [stdout] 140 + "Username {} sudah terdaftar, silahkan menggunakan username yang lain !", [INFO] [stdout] 141 + &body.username [INFO] [stdout] 142 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/handlers/auth_handler.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | / format!( [INFO] [stdout] 158 | | "Email {} sudah terdaftar, silahkan menggunakan email yang lain !", [INFO] [stdout] 159 | | &body.email [INFO] [stdout] 160 | | ) [INFO] [stdout] 161 | | .into(), [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing `.into()` [INFO] [stdout] | [INFO] [stdout] 157 ~ format!( [INFO] [stdout] 158 + "Email {} sudah terdaftar, silahkan menggunakan email yang lain !", [INFO] [stdout] 159 + &body.email [INFO] [stdout] 160 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `email`, and `access_level` are never read [INFO] [stdout] --> src/models/auth_model.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AuthUser { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 3 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 4 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub access_level: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthUser` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PayloadTooLarge` is never constructed [INFO] [stdout] --> src/utils/errors.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum AppError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 38 | PayloadTooLarge(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppPath` is never constructed [INFO] [stdout] --> src/utils/extractors.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct AppPath(pub T); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/auth_handler.rs:184:11 [INFO] [stdout] | [INFO] [stdout] 184 | .bind(&body.age) [INFO] [stdout] | ^^^^^^^^^ help: change this to: `body.age` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/auth_handler.rs:208:31 [INFO] [stdout] | [INFO] [stdout] 208 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | &"Signup successful".to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Signup successful"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/auth_handler.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | if state.config.smtp_enable == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!state.config.smtp_enable` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/auth_handler.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | if result_verify_password == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_password` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/handlers/auth_handler.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | / format!( [INFO] [stdout] 250 | | "Email for this username are empty ! please call the administrator {}", [INFO] [stdout] 251 | | &body.username [INFO] [stdout] 252 | | ) [INFO] [stdout] 253 | | .into(), [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing `.into()` [INFO] [stdout] | [INFO] [stdout] 249 ~ format!( [INFO] [stdout] 250 + "Email for this username are empty ! please call the administrator {}", [INFO] [stdout] 251 + &body.username [INFO] [stdout] 252 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | &"Login successful".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Login successful"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/auth_handler.rs:279:14 [INFO] [stdout] | [INFO] [stdout] 279 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/auth_handler.rs:282:31 [INFO] [stdout] | [INFO] [stdout] 282 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/auth_handler.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | if result_verify_password == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_password` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | &"Login successful".to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Login successful"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/handlers/auth_handler.rs:301:39 [INFO] [stdout] | [INFO] [stdout] 301 | variables.insert("email_support", &email_support); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `email_support` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | &"Password Baru anda telah dikirim melalui email yang terdaftar".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Password Baru anda telah dikirim melalui email yang terdaftar"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | if result_verify_password == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_password` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | .bind(&datetime::get_date_time_now()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `datetime::get_date_time_now()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | if state.config.smtp_enable == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!state.config.smtp_enable` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | &"Berhasil mengganti Password !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Password !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/handlers/account_handler.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | variables.insert("email_support", &email_support); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `email_support` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | &"Berhasil mengganti Password !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Password !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/handlers/account_handler.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 142 | let result_verify_email = &body.old_email == &account.email; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 142 - let result_verify_email = &body.old_email == &account.email; [INFO] [stdout] 142 + let result_verify_email = body.old_email == account.email; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | if result_verify_email == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_email` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/handlers/auth_handler.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | / format!( [INFO] [stdout] 140 | | "Username {} sudah terdaftar, silahkan menggunakan username yang lain !", [INFO] [stdout] 141 | | &body.username [INFO] [stdout] 142 | | ) [INFO] [stdout] 143 | | .into(), [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] help: consider removing `.into()` [INFO] [stdout] | [INFO] [stdout] 139 ~ format!( [INFO] [stdout] 140 + "Username {} sudah terdaftar, silahkan menggunakan username yang lain !", [INFO] [stdout] 141 + &body.username [INFO] [stdout] 142 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:170:14 [INFO] [stdout] | [INFO] [stdout] 170 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:166:11 [INFO] [stdout] | [INFO] [stdout] 166 | .bind(&datetime::get_date_time_now()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `datetime::get_date_time_now()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:167:11 [INFO] [stdout] | [INFO] [stdout] 167 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/handlers/auth_handler.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | / format!( [INFO] [stdout] 158 | | "Email {} sudah terdaftar, silahkan menggunakan email yang lain !", [INFO] [stdout] 159 | | &body.email [INFO] [stdout] 160 | | ) [INFO] [stdout] 161 | | .into(), [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing `.into()` [INFO] [stdout] | [INFO] [stdout] 157 ~ format!( [INFO] [stdout] 158 + "Email {} sudah terdaftar, silahkan menggunakan email yang lain !", [INFO] [stdout] 159 + &body.email [INFO] [stdout] 160 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | if state.config.smtp_enable == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!state.config.smtp_enable` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | &"Berhasil mengganti Email !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Email !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/auth_handler.rs:184:11 [INFO] [stdout] | [INFO] [stdout] 184 | .bind(&body.age) [INFO] [stdout] | ^^^^^^^^^ help: change this to: `body.age` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/auth_handler.rs:208:31 [INFO] [stdout] | [INFO] [stdout] 208 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/handlers/account_handler.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | variables.insert("email_support", &email_support); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `email_support` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | &"Signup successful".to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Signup successful"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | &"Berhasil mengganti Password !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Password !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/auth_handler.rs:227:8 [INFO] [stdout] | [INFO] [stdout] 227 | if state.config.smtp_enable == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!state.config.smtp_enable` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `std::string::String` [INFO] [stdout] --> src/handlers/auth_handler.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | / format!( [INFO] [stdout] 250 | | "Email for this username are empty ! please call the administrator {}", [INFO] [stdout] 251 | | &body.username [INFO] [stdout] 252 | | ) [INFO] [stdout] 253 | | .into(), [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing `.into()` [INFO] [stdout] | [INFO] [stdout] 249 ~ format!( [INFO] [stdout] 250 + "Email for this username are empty ! please call the administrator {}", [INFO] [stdout] 251 + &body.username [INFO] [stdout] 252 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/auth_handler.rs:279:14 [INFO] [stdout] | [INFO] [stdout] 279 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/auth_handler.rs:282:31 [INFO] [stdout] | [INFO] [stdout] 282 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/handlers/auth_handler.rs:301:39 [INFO] [stdout] | [INFO] [stdout] 301 | variables.insert("email_support", &email_support); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `email_support` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 117 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/auth_handler.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | &"Password Baru anda telah dikirim melalui email yang terdaftar".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Password Baru anda telah dikirim melalui email yang terdaftar"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 120 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | if result_verify_password == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_password` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | .bind(&datetime::get_date_time_now()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `datetime::get_date_time_now()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 71 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | if state.config.smtp_enable == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!state.config.smtp_enable` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | &"Berhasil mengganti Password !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Password !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/handlers/account_handler.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | variables.insert("email_support", &email_support); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `email_support` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | &"Berhasil mengganti Password !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Password !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:136:11 [INFO] [stdout] | [INFO] [stdout] 136 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/handlers/account_handler.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 142 | let result_verify_email = &body.old_email == &account.email; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 142 - let result_verify_email = &body.old_email == &account.email; [INFO] [stdout] 142 + let result_verify_email = body.old_email == account.email; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | if result_verify_email == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!result_verify_email` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:170:14 [INFO] [stdout] | [INFO] [stdout] 170 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:166:11 [INFO] [stdout] | [INFO] [stdout] 166 | .bind(&datetime::get_date_time_now()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `datetime::get_date_time_now()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/handlers/account_handler.rs:167:11 [INFO] [stdout] | [INFO] [stdout] 167 | .bind(&body.player_id) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `body.player_id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/account_handler.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/handlers/account_handler.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | if state.config.smtp_enable == false { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!state.config.smtp_enable` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | &"Berhasil mengganti Email !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Email !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/handlers/account_handler.rs:200:39 [INFO] [stdout] | [INFO] [stdout] 200 | variables.insert("email_support", &email_support); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: change this to: `email_support` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/handlers/account_handler.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | &"Berhasil mengganti Password !".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `"Berhasil mengganti Password !"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:117:18 [INFO] [stdout] | [INFO] [stdout] 117 | .map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/handlers/shop_handler.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 120 | tx.commit().await.map_err(|e| AppError::DatabaseError(e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `AppError::DatabaseError` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/utils/courier.rs:62:80 [INFO] [stdout] | [INFO] [stdout] 62 | .map_err(|e| AppError::InternalError(format!("Email build error: {}", e.to_string())))?; [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/utils/rand.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | return Ok(result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 46 - return Ok(result); [INFO] [stdout] 46 + Ok(result) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/utils/datetime.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | return now.year(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 6 - return now.year(); [INFO] [stdout] 6 + now.year() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/utils/datetime.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | return Local::now().naive_local(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 17 - return Local::now().naive_local(); [INFO] [stdout] 17 + Local::now().naive_local() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/utils/courier.rs:62:80 [INFO] [stdout] | [INFO] [stdout] 62 | .map_err(|e| AppError::InternalError(format!("Email build error: {}", e.to_string())))?; [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/utils/rand.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | return Ok(result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 46 - return Ok(result); [INFO] [stdout] 46 + Ok(result) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/utils/datetime.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | return now.year(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 6 - return now.year(); [INFO] [stdout] 6 + now.year() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/utils/datetime.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | return Local::now().naive_local(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 17 - return Local::now().naive_local(); [INFO] [stdout] 17 + Local::now().naive_local() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "d7126cbd333b9a8a7c29e7657a349e18404a3fa64b0c3a1cb6cbdb44d658956a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7126cbd333b9a8a7c29e7657a349e18404a3fa64b0c3a1cb6cbdb44d658956a", kill_on_drop: false }` [INFO] [stdout] d7126cbd333b9a8a7c29e7657a349e18404a3fa64b0c3a1cb6cbdb44d658956a