[INFO] cloning repository https://github.com/Next-Era-Myanmar/nx-health-checker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Next-Era-Myanmar/nx-health-checker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNext-Era-Myanmar%2Fnx-health-checker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNext-Era-Myanmar%2Fnx-health-checker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c04841ca1ed56e7049886a09c67ca2bcbc66bb20 [INFO] linting Next-Era-Myanmar/nx-health-checker against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNext-Era-Myanmar%2Fnx-health-checker" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Next-Era-Myanmar/nx-health-checker [INFO] finished tweaking git repo https://github.com/Next-Era-Myanmar/nx-health-checker [INFO] tweaked toml for git repo https://github.com/Next-Era-Myanmar/nx-health-checker written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Next-Era-Myanmar/nx-health-checker 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/Next-Era-Myanmar/nx-health-checker 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] Downloading crates ... [INFO] [stderr] Downloaded wit-bindgen v0.45.0 [INFO] [stderr] Downloaded find-msvc-tools v0.1.0 [INFO] [stderr] Downloaded cc v1.2.35 [INFO] [stderr] Downloaded wasi v0.14.3+wasi-0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 1df4c6008929a9e77763ee6b8a1df9f981d5e4ef3d20a671527c87c34b9767d9 [INFO] running `Command { std: "docker" "start" "-a" "1df4c6008929a9e77763ee6b8a1df9f981d5e4ef3d20a671527c87c34b9767d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1df4c6008929a9e77763ee6b8a1df9f981d5e4ef3d20a671527c87c34b9767d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1df4c6008929a9e77763ee6b8a1df9f981d5e4ef3d20a671527c87c34b9767d9", kill_on_drop: false }` [INFO] [stdout] 1df4c6008929a9e77763ee6b8a1df9f981d5e4ef3d20a671527c87c34b9767d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e1812b749c3c64e86d261a3b689084a27ef738317cc87220e3e67a3cd8121b53 [INFO] running `Command { std: "docker" "start" "-a" "e1812b749c3c64e86d261a3b689084a27ef738317cc87220e3e67a3cd8121b53", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking crc v3.3.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking nx_health_checker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/models.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DashboardData` is never constructed [INFO] [stdout] --> src/models.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DashboardData { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/auth.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | Some(pair[11..].to_string()) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/auth.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | if pair.starts_with("session_id=") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 51 ~ if let Some() = pair.strip_prefix("session_id=") { [INFO] [stdout] 52 ~ Some(.to_string()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/models.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DashboardData` is never constructed [INFO] [stdout] --> src/models.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DashboardData { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/auth.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | Some(pair[11..].to_string()) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/auth.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | if pair.starts_with("session_id=") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 51 ~ if let Some() = pair.strip_prefix("session_id=") { [INFO] [stdout] 52 ~ Some(.to_string()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/config.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 19 | / let config = Self { [INFO] [stdout] 20 | | database_url: env::var("DATABASE_URL") [INFO] [stdout] 21 | | .unwrap_or_else(|_| "sqlite:health_check.db?mode=rwc".to_string()), [INFO] [stdout] ... | [INFO] [stdout] 43 | | .unwrap_or_else(|_| "info".to_string()), [INFO] [stdout] 44 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 45 | [INFO] [stdout] 46 | config [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 19 ~ [INFO] [stdout] 20 | [INFO] [stdout] 21 ~ Self { [INFO] [stdout] 22 + database_url: env::var("DATABASE_URL") [INFO] [stdout] 23 + .unwrap_or_else(|_| "sqlite:health_check.db?mode=rwc".to_string()), [INFO] [stdout] 24 + [INFO] [stdout] 25 + default_username: env::var("DEFAULT_USERNAME") [INFO] [stdout] 26 + .unwrap_or_else(|_| "admin".to_string()), [INFO] [stdout] 27 + [INFO] [stdout] 28 + default_password: env::var("DEFAULT_PASSWORD") [INFO] [stdout] 29 + .unwrap_or_else(|_| "admin".to_string()), [INFO] [stdout] 30 + [INFO] [stdout] 31 + host: env::var("HOST") [INFO] [stdout] 32 + .unwrap_or_else(|_| "127.0.0.1".to_string()), [INFO] [stdout] 33 + [INFO] [stdout] 34 + port: env::var("PORT") [INFO] [stdout] 35 + .unwrap_or_else(|_| "3030".to_string()) [INFO] [stdout] 36 + .parse() [INFO] [stdout] 37 + .unwrap_or(3030), [INFO] [stdout] 38 + [INFO] [stdout] 39 + prometheus_enabled: env::var("PROMETHEUS_ENABLED") [INFO] [stdout] 40 + .unwrap_or_else(|_| "true".to_string()) [INFO] [stdout] 41 + .parse() [INFO] [stdout] 42 + .unwrap_or(true), [INFO] [stdout] 43 + [INFO] [stdout] 44 + rust_log: env::var("RUST_LOG") [INFO] [stdout] 45 + .unwrap_or_else(|_| "info".to_string()), [INFO] [stdout] 46 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/config.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 19 | / let config = Self { [INFO] [stdout] 20 | | database_url: env::var("DATABASE_URL") [INFO] [stdout] 21 | | .unwrap_or_else(|_| "sqlite:health_check.db?mode=rwc".to_string()), [INFO] [stdout] ... | [INFO] [stdout] 43 | | .unwrap_or_else(|_| "info".to_string()), [INFO] [stdout] 44 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 45 | [INFO] [stdout] 46 | config [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 19 ~ [INFO] [stdout] 20 | [INFO] [stdout] 21 ~ Self { [INFO] [stdout] 22 + database_url: env::var("DATABASE_URL") [INFO] [stdout] 23 + .unwrap_or_else(|_| "sqlite:health_check.db?mode=rwc".to_string()), [INFO] [stdout] 24 + [INFO] [stdout] 25 + default_username: env::var("DEFAULT_USERNAME") [INFO] [stdout] 26 + .unwrap_or_else(|_| "admin".to_string()), [INFO] [stdout] 27 + [INFO] [stdout] 28 + default_password: env::var("DEFAULT_PASSWORD") [INFO] [stdout] 29 + .unwrap_or_else(|_| "admin".to_string()), [INFO] [stdout] 30 + [INFO] [stdout] 31 + host: env::var("HOST") [INFO] [stdout] 32 + .unwrap_or_else(|_| "127.0.0.1".to_string()), [INFO] [stdout] 33 + [INFO] [stdout] 34 + port: env::var("PORT") [INFO] [stdout] 35 + .unwrap_or_else(|_| "3030".to_string()) [INFO] [stdout] 36 + .parse() [INFO] [stdout] 37 + .unwrap_or(3030), [INFO] [stdout] 38 + [INFO] [stdout] 39 + prometheus_enabled: env::var("PROMETHEUS_ENABLED") [INFO] [stdout] 40 + .unwrap_or_else(|_| "true".to_string()) [INFO] [stdout] 41 + .parse() [INFO] [stdout] 42 + .unwrap_or(true), [INFO] [stdout] 43 + [INFO] [stdout] 44 + rust_log: env::var("RUST_LOG") [INFO] [stdout] 45 + .unwrap_or_else(|_| "info".to_string()), [INFO] [stdout] 46 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/collector.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | pub static GLOBAL_COLLECTOR: Lazy = Lazy::new(|| CollectorManager::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `CollectorManager::new` [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: redundant closure [INFO] [stdout] --> src/collector.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | pub static GLOBAL_COLLECTOR: Lazy = Lazy::new(|| CollectorManager::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `CollectorManager::new` [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: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/collector.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | let services: Vec = match sqlx::query_as::<_, Service>("SELECT * FROM services") [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 30 | | .fetch_all(&pool) [INFO] [stdout] 31 | | .await [INFO] [stdout] ... | [INFO] [stdout] 34 | | Err(_) => Vec::new(), [INFO] [stdout] 35 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] help: ascribe the type std::vec::Vec and replace your expression with [INFO] [stdout] | [INFO] [stdout] 29 ~ let services: Vec = sqlx::query_as::<_, Service>("SELECT * FROM services") [INFO] [stdout] 30 + .fetch_all(&pool) [INFO] [stdout] 31 ~ .await.unwrap_or_default(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/collector.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | let services: Vec = match sqlx::query_as::<_, Service>("SELECT * FROM services") [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 30 | | .fetch_all(&pool) [INFO] [stdout] 31 | | .await [INFO] [stdout] ... | [INFO] [stdout] 34 | | Err(_) => Vec::new(), [INFO] [stdout] 35 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] help: ascribe the type std::vec::Vec and replace your expression with [INFO] [stdout] | [INFO] [stdout] 29 ~ let services: Vec = sqlx::query_as::<_, Service>("SELECT * FROM services") [INFO] [stdout] 30 + .fetch_all(&pool) [INFO] [stdout] 31 ~ .await.unwrap_or_default(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/collector.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | for h in handles { let _ = h.abort(); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `#[warn(clippy::let_unit_value)]` on by default [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 84 - for h in handles { let _ = h.abort(); } [INFO] [stdout] 84 + for h in handles { h.abort(); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this let-binding has unit value [INFO] [stdout] --> src/collector.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | for h in handles { let _ = h.abort(); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value [INFO] [stdout] = note: `#[warn(clippy::let_unit_value)]` on by default [INFO] [stdout] help: omit the `let` binding [INFO] [stdout] | [INFO] [stdout] 84 - for h in handles { let _ = h.abort(); } [INFO] [stdout] 84 + for h in handles { h.abort(); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | return Err(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 21 | | .status(StatusCode::FOUND) [INFO] [stdout] 22 | | .header("Location", "/dashboard") [INFO] [stdout] 23 | | .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 24 | | .unwrap() [INFO] [stdout] 25 | | .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] 20 ~ return Err(Response::builder() [INFO] [stdout] 21 + .status(StatusCode::FOUND) [INFO] [stdout] 22 + .header("Location", "/dashboard") [INFO] [stdout] 23 + .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 24 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | return Err(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 21 | | .status(StatusCode::FOUND) [INFO] [stdout] 22 | | .header("Location", "/dashboard") [INFO] [stdout] 23 | | .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 24 | | .unwrap() [INFO] [stdout] 25 | | .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] 20 ~ return Err(Response::builder() [INFO] [stdout] 21 + .status(StatusCode::FOUND) [INFO] [stdout] 22 + .header("Location", "/dashboard") [INFO] [stdout] 23 + .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 24 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | return Err(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 42 | | .status(StatusCode::FOUND) [INFO] [stdout] 43 | | .header("Location", "/dashboard") [INFO] [stdout] 44 | | .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 45 | | .unwrap() [INFO] [stdout] 46 | | .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] 41 ~ return Err(Response::builder() [INFO] [stdout] 42 + .status(StatusCode::FOUND) [INFO] [stdout] 43 + .header("Location", "/dashboard") [INFO] [stdout] 44 + .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 45 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 41 | return Err(Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 42 | | .status(StatusCode::FOUND) [INFO] [stdout] 43 | | .header("Location", "/dashboard") [INFO] [stdout] 44 | | .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 45 | | .unwrap() [INFO] [stdout] 46 | | .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] 41 ~ return Err(Response::builder() [INFO] [stdout] 42 + .status(StatusCode::FOUND) [INFO] [stdout] 43 + .header("Location", "/dashboard") [INFO] [stdout] 44 + .body(axum::body::Body::from("Redirecting to dashboard...")) [INFO] [stdout] 45 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:125:24 [INFO] [stdout] | [INFO] [stdout] 125 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 126 | | .status(StatusCode::FOUND) [INFO] [stdout] 127 | | .header("Location", "/login") [INFO] [stdout] 128 | | .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 129 | | .unwrap() [INFO] [stdout] 130 | | .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] 125 ~ return Err(Response::builder() [INFO] [stdout] 126 + .status(StatusCode::FOUND) [INFO] [stdout] 127 + .header("Location", "/login") [INFO] [stdout] 128 + .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 129 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:125:24 [INFO] [stdout] | [INFO] [stdout] 125 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 126 | | .status(StatusCode::FOUND) [INFO] [stdout] 127 | | .header("Location", "/login") [INFO] [stdout] 128 | | .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 129 | | .unwrap() [INFO] [stdout] 130 | | .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] 125 ~ return Err(Response::builder() [INFO] [stdout] 126 + .status(StatusCode::FOUND) [INFO] [stdout] 127 + .header("Location", "/login") [INFO] [stdout] 128 + .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 129 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 155 | | .status(StatusCode::FOUND) [INFO] [stdout] 156 | | .header("Location", "/login") [INFO] [stdout] 157 | | .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 158 | | .unwrap() [INFO] [stdout] 159 | | .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] 154 ~ return Err(Response::builder() [INFO] [stdout] 155 + .status(StatusCode::FOUND) [INFO] [stdout] 156 + .header("Location", "/login") [INFO] [stdout] 157 + .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 158 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 155 | | .status(StatusCode::FOUND) [INFO] [stdout] 156 | | .header("Location", "/login") [INFO] [stdout] 157 | | .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 158 | | .unwrap() [INFO] [stdout] 159 | | .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] 154 ~ return Err(Response::builder() [INFO] [stdout] 155 + .status(StatusCode::FOUND) [INFO] [stdout] 156 + .header("Location", "/login") [INFO] [stdout] 157 + .body(axum::body::Body::from("Redirecting to login...")) [INFO] [stdout] 158 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:201:23 [INFO] [stdout] | [INFO] [stdout] 201 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 202 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 203 | | .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 204 | | .unwrap() [INFO] [stdout] 205 | | .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] 201 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 202 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 203 + .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 204 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:201:23 [INFO] [stdout] | [INFO] [stdout] 201 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 202 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 203 | | .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 204 | | .unwrap() [INFO] [stdout] 205 | | .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] 201 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 202 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 203 + .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 204 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:241:31 [INFO] [stdout] | [INFO] [stdout] 241 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________________^ [INFO] [stdout] 242 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 243 | | .body(axum::body::Body::from("Failed to get service ID")) [INFO] [stdout] 244 | | .unwrap() [INFO] [stdout] 245 | | .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] 241 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 242 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 243 + .body(axum::body::Body::from("Failed to get service ID")) [INFO] [stdout] 244 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:248:23 [INFO] [stdout] | [INFO] [stdout] 248 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 249 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 250 | | .body(axum::body::Body::from("Failed to create service")) [INFO] [stdout] 251 | | .unwrap() [INFO] [stdout] 252 | | .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] 248 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 249 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 250 + .body(axum::body::Body::from("Failed to create service")) [INFO] [stdout] 251 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/handlers.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | if let Err(_) = sqlx::query("UPDATE services SET service_name = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 265 ~ if sqlx::query("UPDATE services SET service_name = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] 266 + .bind(name) [INFO] [stdout] 267 + .bind(now) [INFO] [stdout] 268 + .bind(service_id) [INFO] [stdout] 269 + .execute(&pool) [INFO] [stdout] 270 + .await.is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:241:31 [INFO] [stdout] | [INFO] [stdout] 241 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________________^ [INFO] [stdout] 242 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 243 | | .body(axum::body::Body::from("Failed to get service ID")) [INFO] [stdout] 244 | | .unwrap() [INFO] [stdout] 245 | | .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] 241 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 242 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 243 + .body(axum::body::Body::from("Failed to get service ID")) [INFO] [stdout] 244 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:272:24 [INFO] [stdout] | [INFO] [stdout] 272 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 273 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 274 | | .body(axum::body::Body::from("Failed to update service name")) [INFO] [stdout] 275 | | .unwrap() [INFO] [stdout] 276 | | .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] 272 ~ return Err(Response::builder() [INFO] [stdout] 273 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 274 + .body(axum::body::Body::from("Failed to update service name")) [INFO] [stdout] 275 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/handlers.rs:281:16 [INFO] [stdout] | [INFO] [stdout] 281 | if let Err(_) = sqlx::query("UPDATE services SET healthcheck_url = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 281 ~ if sqlx::query("UPDATE services SET healthcheck_url = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] 282 + .bind(url) [INFO] [stdout] 283 + .bind(now) [INFO] [stdout] 284 + .bind(service_id) [INFO] [stdout] 285 + .execute(&pool) [INFO] [stdout] 286 + .await.is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:288:24 [INFO] [stdout] | [INFO] [stdout] 288 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 289 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 290 | | .body(axum::body::Body::from("Failed to update service URL")) [INFO] [stdout] 291 | | .unwrap() [INFO] [stdout] 292 | | .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] 288 ~ return Err(Response::builder() [INFO] [stdout] 289 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 290 + .body(axum::body::Body::from("Failed to update service URL")) [INFO] [stdout] 291 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/handlers.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | if let Err(_) = sqlx::query("UPDATE services SET healthcheck_duration_seconds = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 297 ~ if sqlx::query("UPDATE services SET healthcheck_duration_seconds = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] 298 + .bind(duration) [INFO] [stdout] 299 + .bind(now) [INFO] [stdout] 300 + .bind(service_id) [INFO] [stdout] 301 + .execute(&pool) [INFO] [stdout] 302 + .await.is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:304:24 [INFO] [stdout] | [INFO] [stdout] 304 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 305 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 306 | | .body(axum::body::Body::from("Failed to update service duration")) [INFO] [stdout] 307 | | .unwrap() [INFO] [stdout] 308 | | .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] 304 ~ return Err(Response::builder() [INFO] [stdout] 305 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 306 + .body(axum::body::Body::from("Failed to update service duration")) [INFO] [stdout] 307 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:248:23 [INFO] [stdout] | [INFO] [stdout] 248 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 249 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 250 | | .body(axum::body::Body::from("Failed to create service")) [INFO] [stdout] 251 | | .unwrap() [INFO] [stdout] 252 | | .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] 248 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 249 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 250 + .body(axum::body::Body::from("Failed to create service")) [INFO] [stdout] 251 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/handlers.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | if let Err(_) = sqlx::query("UPDATE services SET service_name = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 265 ~ if sqlx::query("UPDATE services SET service_name = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] 266 + .bind(name) [INFO] [stdout] 267 + .bind(now) [INFO] [stdout] 268 + .bind(service_id) [INFO] [stdout] 269 + .execute(&pool) [INFO] [stdout] 270 + .await.is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:272:24 [INFO] [stdout] | [INFO] [stdout] 272 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 273 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 274 | | .body(axum::body::Body::from("Failed to update service name")) [INFO] [stdout] 275 | | .unwrap() [INFO] [stdout] 276 | | .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] 272 ~ return Err(Response::builder() [INFO] [stdout] 273 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 274 + .body(axum::body::Body::from("Failed to update service name")) [INFO] [stdout] 275 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/handlers.rs:281:16 [INFO] [stdout] | [INFO] [stdout] 281 | if let Err(_) = sqlx::query("UPDATE services SET healthcheck_url = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 281 ~ if sqlx::query("UPDATE services SET healthcheck_url = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] 282 + .bind(url) [INFO] [stdout] 283 + .bind(now) [INFO] [stdout] 284 + .bind(service_id) [INFO] [stdout] 285 + .execute(&pool) [INFO] [stdout] 286 + .await.is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:288:24 [INFO] [stdout] | [INFO] [stdout] 288 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 289 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 290 | | .body(axum::body::Body::from("Failed to update service URL")) [INFO] [stdout] 291 | | .unwrap() [INFO] [stdout] 292 | | .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] 288 ~ return Err(Response::builder() [INFO] [stdout] 289 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 290 + .body(axum::body::Body::from("Failed to update service URL")) [INFO] [stdout] 291 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/handlers.rs:297:16 [INFO] [stdout] | [INFO] [stdout] 297 | if let Err(_) = sqlx::query("UPDATE services SET healthcheck_duration_seconds = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 297 ~ if sqlx::query("UPDATE services SET healthcheck_duration_seconds = ?, updated_at = ? WHERE id = ?") [INFO] [stdout] 298 + .bind(duration) [INFO] [stdout] 299 + .bind(now) [INFO] [stdout] 300 + .bind(service_id) [INFO] [stdout] 301 + .execute(&pool) [INFO] [stdout] 302 + .await.is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:304:24 [INFO] [stdout] | [INFO] [stdout] 304 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 305 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 306 | | .body(axum::body::Body::from("Failed to update service duration")) [INFO] [stdout] 307 | | .unwrap() [INFO] [stdout] 308 | | .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] 304 ~ return Err(Response::builder() [INFO] [stdout] 305 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 306 + .body(axum::body::Body::from("Failed to update service duration")) [INFO] [stdout] 307 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:331:23 [INFO] [stdout] | [INFO] [stdout] 331 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 332 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 333 | | .body(axum::body::Body::from("Failed to delete service")) [INFO] [stdout] 334 | | .unwrap() [INFO] [stdout] 335 | | .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] 331 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 332 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 333 + .body(axum::body::Body::from("Failed to delete service")) [INFO] [stdout] 334 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:352:24 [INFO] [stdout] | [INFO] [stdout] 352 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 353 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 354 | | .body(axum::body::Body::from("Service not found")) [INFO] [stdout] 355 | | .unwrap() [INFO] [stdout] 356 | | .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] 352 ~ return Err(Response::builder() [INFO] [stdout] 353 + .status(StatusCode::NOT_FOUND) [INFO] [stdout] 354 + .body(axum::body::Body::from("Service not found")) [INFO] [stdout] 355 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:359:24 [INFO] [stdout] | [INFO] [stdout] 359 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 360 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 361 | | .body(axum::body::Body::from("Database error")) [INFO] [stdout] 362 | | .unwrap() [INFO] [stdout] 363 | | .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] 359 ~ return Err(Response::builder() [INFO] [stdout] 360 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 361 + .body(axum::body::Body::from("Database error")) [INFO] [stdout] 362 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:331:23 [INFO] [stdout] | [INFO] [stdout] 331 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 332 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 333 | | .body(axum::body::Body::from("Failed to delete service")) [INFO] [stdout] 334 | | .unwrap() [INFO] [stdout] 335 | | .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] 331 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 332 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 333 + .body(axum::body::Body::from("Failed to delete service")) [INFO] [stdout] 334 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:352:24 [INFO] [stdout] | [INFO] [stdout] 352 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 353 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 354 | | .body(axum::body::Body::from("Service not found")) [INFO] [stdout] 355 | | .unwrap() [INFO] [stdout] 356 | | .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] 352 ~ return Err(Response::builder() [INFO] [stdout] 353 + .status(StatusCode::NOT_FOUND) [INFO] [stdout] 354 + .body(axum::body::Body::from("Service not found")) [INFO] [stdout] 355 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:359:24 [INFO] [stdout] | [INFO] [stdout] 359 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 360 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 361 | | .body(axum::body::Body::from("Database error")) [INFO] [stdout] 362 | | .unwrap() [INFO] [stdout] 363 | | .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] 359 ~ return Err(Response::builder() [INFO] [stdout] 360 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 361 + .body(axum::body::Body::from("Database error")) [INFO] [stdout] 362 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:400:24 [INFO] [stdout] | [INFO] [stdout] 400 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 401 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 402 | | .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 403 | | .unwrap() [INFO] [stdout] 404 | | .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] 400 ~ return Err(Response::builder() [INFO] [stdout] 401 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 402 + .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 403 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:400:24 [INFO] [stdout] | [INFO] [stdout] 400 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 401 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 402 | | .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 403 | | .unwrap() [INFO] [stdout] 404 | | .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] 400 ~ return Err(Response::builder() [INFO] [stdout] 401 + .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 402 + .body(axum::body::Body::from("Failed to fetch services")) [INFO] [stdout] 403 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:467:23 [INFO] [stdout] | [INFO] [stdout] 467 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 468 | | .status(StatusCode::SERVICE_UNAVAILABLE) [INFO] [stdout] 469 | | .body(axum::body::Body::from("Database connection failed")) [INFO] [stdout] 470 | | .unwrap() [INFO] [stdout] 471 | | .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] 467 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 468 + .status(StatusCode::SERVICE_UNAVAILABLE) [INFO] [stdout] 469 + .body(axum::body::Body::from("Database connection failed")) [INFO] [stdout] 470 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:467:23 [INFO] [stdout] | [INFO] [stdout] 467 | Err(_) => Err(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 468 | | .status(StatusCode::SERVICE_UNAVAILABLE) [INFO] [stdout] 469 | | .body(axum::body::Body::from("Database connection failed")) [INFO] [stdout] 470 | | .unwrap() [INFO] [stdout] 471 | | .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] 467 ~ Err(_) => Err(Response::builder() [INFO] [stdout] 468 + .status(StatusCode::SERVICE_UNAVAILABLE) [INFO] [stdout] 469 + .body(axum::body::Body::from("Database connection failed")) [INFO] [stdout] 470 ~ .unwrap()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:496:24 [INFO] [stdout] | [INFO] [stdout] 496 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 497 | | .status(StatusCode::UNAUTHORIZED) [INFO] [stdout] 498 | | .body(axum::body::Body::from("Unauthorized")) [INFO] [stdout] 499 | | .unwrap() [INFO] [stdout] 500 | | .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] 496 ~ return Err(Response::builder() [INFO] [stdout] 497 + .status(StatusCode::UNAUTHORIZED) [INFO] [stdout] 498 + .body(axum::body::Body::from("Unauthorized")) [INFO] [stdout] 499 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `axum::http::Response` [INFO] [stdout] --> src/handlers.rs:496:24 [INFO] [stdout] | [INFO] [stdout] 496 | return Err(Response::builder() [INFO] [stdout] | ________________________^ [INFO] [stdout] 497 | | .status(StatusCode::UNAUTHORIZED) [INFO] [stdout] 498 | | .body(axum::body::Body::from("Unauthorized")) [INFO] [stdout] 499 | | .unwrap() [INFO] [stdout] 500 | | .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] 496 ~ return Err(Response::builder() [INFO] [stdout] 497 + .status(StatusCode::UNAUTHORIZED) [INFO] [stdout] 498 + .body(axum::body::Body::from("Unauthorized")) [INFO] [stdout] 499 ~ .unwrap()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "e1812b749c3c64e86d261a3b689084a27ef738317cc87220e3e67a3cd8121b53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1812b749c3c64e86d261a3b689084a27ef738317cc87220e3e67a3cd8121b53", kill_on_drop: false }` [INFO] [stdout] e1812b749c3c64e86d261a3b689084a27ef738317cc87220e3e67a3cd8121b53