[INFO] cloning repository https://github.com/Laplaza1/task_scheduler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Laplaza1/task_scheduler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaplaza1%2Ftask_scheduler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaplaza1%2Ftask_scheduler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8a36e8466f83f51ce4a408dd921e9e8cba3f8ab8 [INFO] checking Laplaza1/task_scheduler against master#c290daa1e5274a52e54a0f49e31bd70192abc606 for pr-133502-23 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLaplaza1%2Ftask_scheduler" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Laplaza1/task_scheduler [INFO] finished tweaking git repo https://github.com/Laplaza1/task_scheduler [INFO] tweaked toml for git repo https://github.com/Laplaza1/task_scheduler written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Laplaza1/task_scheduler on toolchain c290daa1e5274a52e54a0f49e31bd70192abc606 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Laplaza1/task_scheduler 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" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded axum-governor v1.0.3 [INFO] [stderr] Downloaded reqwest v0.13.4 [INFO] [stderr] Downloaded real v0.1.4 [INFO] [stderr] Downloaded crc-catalog v2.5.0 [INFO] [stderr] Downloaded rustls-native-certs v0.8.4 [INFO] [stderr] Downloaded lazy-limit v1.0.3 [INFO] [stderr] Downloaded multer v3.1.0 [INFO] [stderr] Downloaded axum-macros v0.5.1 [INFO] [stderr] Downloaded axum-extra v0.12.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2 [INFO] running `Command { std: "docker" "start" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2" "/opt/rustwide/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2" "/opt/rustwide/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking typenum v1.20.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking mio v1.2.0 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Checking rustls-pki-types v1.14.1 [INFO] [stderr] Compiling litemap v0.8.2 [INFO] [stderr] Compiling writeable v0.6.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling num-conv v0.2.1 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling aws-lc-rs v1.17.0 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling cc v1.2.62 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling tinyvec v1.11.0 [INFO] [stderr] Compiling tokio v1.52.3 [INFO] [stderr] Compiling deranged v0.5.8 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling webpki-roots v1.0.7 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling crc-catalog v2.5.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Checking data-encoding v2.11.0 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.41.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking rustls-native-certs v0.8.4 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.6 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling axum-macros v0.5.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom v0.1.7 [INFO] [stderr] Compiling yoke v0.8.2 [INFO] [stderr] Compiling rustls-webpki v0.103.13 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking tungstenite v0.29.0 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-tungstenite v0.29.0 [INFO] [stderr] Checking lazy-limit v1.0.3 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking tower-http v0.6.11 [INFO] [stderr] Checking h2 v0.4.14 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.7.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking axum v0.8.9 [INFO] [stderr] Checking hyper-rustls v0.27.9 [INFO] [stderr] Checking reqwest v0.13.4 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking real v0.1.4 [INFO] [stderr] Checking axum-extra v0.12.6 [INFO] [stderr] Checking axum-governor v1.0.3 [INFO] [stderr] Checking task_scheduler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/models.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Any, PgPool}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Number` and `self` [INFO] [stdout] --> src/main.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value::{self, Number}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Executor`, `PgPool`, `Pool`, and `Postgres` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::{Executor, PgPool, Pool, Postgres}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `COOKIE`, `HeaderValue`, `Method`, `Path`, `Router`, `debug_handler`, `delete`, `get`, `post`, `put`, `self`, `self`, and `ws::close_code::STATUS` [INFO] [stdout] --> src/routes.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | ...y, debug_handler, extract::{ws::close_code::STATUS, Path, State}, http::{header::{self, COOKIE, SET_COOKIE}, HeaderMap, HeaderValue, Method, Response, StatusCode}, response::{self, IntoResponse, Json}, routing::{delete, get, post, put}, Router [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^ ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/routes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefaultHasher`, `Hash`, `Hasher`, `collections::HashMap`, `fmt::LowerHex`, `type_name_of_val`, and `type_name` [INFO] [stdout] --> src/routes.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{any::{type_name, type_name_of_val}, collections::HashMap, fmt::LowerHex, hash::{DefaultHasher, Hash, Hasher}, time::{Durati... [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cookie` [INFO] [stdout] --> src/routes.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use axum_extra::extract::{cookie,CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum_governor::GovernorLayer` [INFO] [stdout] --> src/routes.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use axum_governor::GovernorLayer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest` [INFO] [stdout] --> src/routes.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use reqwest; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AllowOrigin`, `Any`, and `CorsLayer` [INFO] [stdout] --> src/routes.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use tower_http::cors::{CorsLayer, AllowOrigin,Any}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/routes.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt`, `TryStreamExt`, and `io::Cursor` [INFO] [stdout] --> src/routes.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use futures::{StreamExt, TryStreamExt, io::Cursor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] --> src/routes.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Executor` and `PgPool` [INFO] [stdout] --> src/routes.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use sqlx::{Executor, PgPool, Pool}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes.rs:136:68 [INFO] [stdout] | [INFO] [stdout] 136 | let expires_in = Duration::from_secs(7 * 24 * 60 * 60);/// Days * Hours * Mins * Secs [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | let expires_at = SystemTime::now() + expires_in; [INFO] [stdout] | ------------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/routes.rs:139:31 [INFO] [stdout] | [INFO] [stdout] 139 | let mut cookier = (Cookie::new("GID", "placeholder")); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - let mut cookier = (Cookie::new("GID", "placeholder")); [INFO] [stdout] 139 + let mut cookier = Cookie::new("GID", "placeholder"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `COOKIE`, `HeaderMap`, `IntoResponse`, `Json`, `Path`, `Response`, `SET_COOKIE`, `State`, `StatusCode`, `body::Body`, `debug_handler`, `delete`, `put`, `self`, `self`, and `ws::close_code::STATUS` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | body::Body, debug_handler, extract::{ws::close_code::STATUS, Path, State}, http::{header::{self, COOKIE, SET_COOKIE}, HeaderMap, HeaderValue, Method, Response, StatusCode}, response::{self, IntoResponse, Json}, routing::{delete, get, post, put}, ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^ ^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefaultHasher`, `Duration`, `Hash`, `Hasher`, `SystemTime`, `collections::HashMap`, `type_name_of_val`, and `type_name` [INFO] [stdout] --> src/main.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | use std::{any::{type_name, type_name_of_val}, collections::HashMap, hash::{DefaultHasher, Hash, Hasher}, time::{Duration, SystemTime}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CookieJar` and `cookie` [INFO] [stdout] --> src/main.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | use axum_extra::extract::{cookie,CookieJar}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum_governor::GovernorLayer` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use axum_governor::GovernorLayer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cookie`, `Expiration`, and `SameSite` [INFO] [stdout] --> src/main.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | use ::cookie::{Cookie, Expiration, SameSite}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use reqwest; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/main.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | use tower_http::cors::{CorsLayer, AllowOrigin,Any}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt`, `TryStreamExt`, and `io::Cursor` [INFO] [stdout] --> src/main.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | use futures::{StreamExt, TryStreamExt, io::Cursor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::OffsetDateTime` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use time::OffsetDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/models.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Any, PgPool}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Number` and `self` [INFO] [stdout] --> src/main.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use serde_json::Value::{self, Number}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Executor`, `PgPool`, `Pool`, and `Postgres` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::{Executor, PgPool, Pool, Postgres}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `COOKIE`, `HeaderValue`, `Method`, `Path`, `Router`, `debug_handler`, `delete`, `get`, `post`, `put`, `self`, `self`, and `ws::close_code::STATUS` [INFO] [stdout] --> src/routes.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | ...y, debug_handler, extract::{ws::close_code::STATUS, Path, State}, http::{header::{self, COOKIE, SET_COOKIE}, HeaderMap, HeaderValue, Method, Response, StatusCode}, response::{self, IntoResponse, Json}, routing::{delete, get, post, put}, Router [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^ ^^^^ ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/routes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefaultHasher`, `Hash`, `Hasher`, `collections::HashMap`, `fmt::LowerHex`, `type_name_of_val`, and `type_name` [INFO] [stdout] --> src/routes.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{any::{type_name, type_name_of_val}, collections::HashMap, fmt::LowerHex, hash::{DefaultHasher, Hash, Hasher}, time::{Durati... [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cookie` [INFO] [stdout] --> src/routes.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use axum_extra::extract::{cookie,CookieJar}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum_governor::GovernorLayer` [INFO] [stdout] --> src/routes.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use axum_governor::GovernorLayer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest` [INFO] [stdout] --> src/routes.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use reqwest; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AllowOrigin`, `Any`, and `CorsLayer` [INFO] [stdout] --> src/routes.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use tower_http::cors::{CorsLayer, AllowOrigin,Any}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/routes.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt`, `TryStreamExt`, and `io::Cursor` [INFO] [stdout] --> src/routes.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | use futures::{StreamExt, TryStreamExt, io::Cursor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgPoolOptions` [INFO] [stdout] --> src/routes.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use sqlx::postgres::PgPoolOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Executor` and `PgPool` [INFO] [stdout] --> src/routes.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use sqlx::{Executor, PgPool, Pool}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/routes.rs:136:68 [INFO] [stdout] | [INFO] [stdout] 136 | let expires_in = Duration::from_secs(7 * 24 * 60 * 60);/// Days * Hours * Mins * Secs [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 137 | let expires_at = SystemTime::now() + expires_in; [INFO] [stdout] | ------------------------------------------------ rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/routes.rs:139:31 [INFO] [stdout] | [INFO] [stdout] 139 | let mut cookier = (Cookie::new("GID", "placeholder")); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 139 - let mut cookier = (Cookie::new("GID", "placeholder")); [INFO] [stdout] 139 + let mut cookier = Cookie::new("GID", "placeholder"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `COOKIE`, `HeaderMap`, `IntoResponse`, `Json`, `Path`, `Response`, `SET_COOKIE`, `State`, `StatusCode`, `body::Body`, `debug_handler`, `delete`, `put`, `self`, `self`, and `ws::close_code::STATUS` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | body::Body, debug_handler, extract::{ws::close_code::STATUS, Path, State}, http::{header::{self, COOKIE, SET_COOKIE}, HeaderMap, HeaderValue, Method, Response, StatusCode}, response::{self, IntoResponse, Json}, routing::{delete, get, post, put}, ... [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^ ^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ ^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::panic` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use core::panic; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DefaultHasher`, `Duration`, `Hash`, `Hasher`, `SystemTime`, `collections::HashMap`, `type_name_of_val`, and `type_name` [INFO] [stdout] --> src/main.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | use std::{any::{type_name, type_name_of_val}, collections::HashMap, hash::{DefaultHasher, Hash, Hasher}, time::{Duration, SystemTime}}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CookieJar` and `cookie` [INFO] [stdout] --> src/main.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | use axum_extra::extract::{cookie,CookieJar}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum_governor::GovernorLayer` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use axum_governor::GovernorLayer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cookie`, `Expiration`, and `SameSite` [INFO] [stdout] --> src/main.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | use ::cookie::{Cookie, Expiration, SameSite}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use reqwest; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Any` [INFO] [stdout] --> src/main.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | use tower_http::cors::{CorsLayer, AllowOrigin,Any}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StreamExt`, `TryStreamExt`, and `io::Cursor` [INFO] [stdout] --> src/main.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | use futures::{StreamExt, TryStreamExt, io::Cursor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time::OffsetDateTime` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use time::OffsetDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::handler::Handler` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::handler::Handler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poolState` [INFO] [stdout] --> src/routes.rs:102:50 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_poolState` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/routes.rs:102:82 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headerMap` [INFO] [stdout] --> src/routes.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headerMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::handler::Handler` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::handler::Handler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let user = get_user(&pool, 1).await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poolState` [INFO] [stdout] --> src/routes.rs:102:50 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_poolState` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tasks` is never constructed [INFO] [stdout] --> src/models.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Tasks{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/routes.rs:102:82 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CompletedTasks` is never constructed [INFO] [stdout] --> src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct CompletedTasks{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headerMap` [INFO] [stdout] --> src/routes.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headerMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `email` are never read [INFO] [stdout] --> src/models.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 36 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tasks` and `CompletedTasks` are never constructed [INFO] [stdout] --> src/models.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum Tables { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 45 | User, [INFO] [stdout] 46 | Tasks, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | CompletedTasks, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tables` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_user` is never used [INFO] [stdout] --> src/models.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | pub async fn delete_user(pool: &sqlx::PgPool, user_id: i32) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `login` is never used [INFO] [stdout] --> src/routes.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let poolState = AppPool{pool:pool}; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn user_(State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn task_(State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/routes.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | create_task(&poolState.pool, user_id, task.to_string(), description.to_string(), OffsetDateTime::from_unix_timestamp_nanos(due_date.unwrap()).unwrap().date()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 90 | let _ = create_task(&poolState.pool, user_id, task.to_string(), description.to_string(), OffsetDateTime::from_unix_timestamp_nanos(due_date.unwrap()).unwrap().date()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `headerMap` should have a snake case name [INFO] [stdout] --> src/routes.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `header_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:102:50 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/routes.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | Some(x)=>{x;}, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `headerMap` should have a snake case name [INFO] [stdout] --> src/routes.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `header_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:118:46 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/routes.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut newHeader = HeaderMap::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let user = get_user(&pool, 1).await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tasks` is never constructed [INFO] [stdout] --> src/models.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Tasks{ [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 `CompletedTasks` is never constructed [INFO] [stdout] --> src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct CompletedTasks{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `email` are never read [INFO] [stdout] --> src/models.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 36 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 37 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tasks` and `CompletedTasks` are never constructed [INFO] [stdout] --> src/models.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum Tables { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 45 | User, [INFO] [stdout] 46 | Tasks, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | CompletedTasks, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tables` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_user` is never used [INFO] [stdout] --> src/models.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | pub async fn delete_user(pool: &sqlx::PgPool, user_id: i32) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `login` is never used [INFO] [stdout] --> src/routes.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let poolState = AppPool{pool:pool}; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn user_(State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn task_(State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/routes.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | create_task(&poolState.pool, user_id, task.to_string(), description.to_string(), OffsetDateTime::from_unix_timestamp_nanos(due_date.unwrap()).unwrap().date()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 90 | let _ = create_task(&poolState.pool, user_id, task.to_string(), description.to_string(), OffsetDateTime::from_unix_timestamp_nanos(due_date.unwrap()).unwrap().date()).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `headerMap` should have a snake case name [INFO] [stdout] --> src/routes.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `header_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:102:50 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_users(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/routes.rs:107:19 [INFO] [stdout] | [INFO] [stdout] 107 | Some(x)=>{x;}, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `headerMap` should have a snake case name [INFO] [stdout] --> src/routes.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `header_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `poolState` should have a snake case name [INFO] [stdout] --> src/routes.rs:118:46 [INFO] [stdout] | [INFO] [stdout] 118 | pub async fn login(headerMap:HeaderMap,State(poolState): State,Json(payload): Json)->Response{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pool_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/routes.rs:134:21 [INFO] [stdout] | [INFO] [stdout] 134 | let mut newHeader = HeaderMap::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2", kill_on_drop: false }` [INFO] [stdout] f9cfbe71a3e077533375b87cca93b360b3c8f6d925dc7568af2624bcc6abc2f2