[INFO] cloning repository https://github.com/apple115/yyc_forum_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/apple115/yyc_forum_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapple115%2Fyyc_forum_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapple115%2Fyyc_forum_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c124c0e63208f0fd406e15fa84f7d67701cc86c [INFO] checking apple115/yyc_forum_rust against master#f4d794ea0b845413344621d89f6c945062748485 for pr-119369-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fapple115%2Fyyc_forum_rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/apple115/yyc_forum_rust on toolchain f4d794ea0b845413344621d89f6c945062748485 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f4d794ea0b845413344621d89f6c945062748485" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/apple115/yyc_forum_rust [INFO] finished tweaking git repo https://github.com/apple115/yyc_forum_rust [INFO] tweaked toml for git repo https://github.com/apple115/yyc_forum_rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/apple115/yyc_forum_rust 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" "+f4d794ea0b845413344621d89f6c945062748485" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded http-body v1.0.0 [INFO] [stderr] Downloaded hyper-util v0.1.1 [INFO] [stderr] Downloaded thiserror v1.0.51 [INFO] [stderr] Downloaded proc-macro2 v1.0.70 [INFO] [stderr] Downloaded tower-http v0.5.0 [INFO] [stderr] Downloaded ahash v0.8.6 [INFO] [stderr] Downloaded crossbeam-utils v0.8.17 [INFO] [stderr] Downloaded h2 v0.4.0 [INFO] [stderr] Downloaded tokio v1.35.0 [INFO] [stderr] Downloaded zerocopy v0.7.31 [INFO] [stderr] Downloaded hyper v1.0.1 [INFO] [stderr] Downloaded zerocopy-derive v0.7.31 [INFO] [stderr] Downloaded axum v0.7.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.51 [INFO] [stderr] Downloaded http v1.0.0 [INFO] [stderr] Downloaded axum-macros v0.4.0 [INFO] [stderr] Downloaded crossbeam-queue v0.3.9 [INFO] [stderr] Downloaded http-body-util v0.1.0 [INFO] [stderr] Downloaded axum-core v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+f4d794ea0b845413344621d89f6c945062748485" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc7d5e0367610d319c088cb887dc43d6ebc57201ff6cbf45b9aae4c995bf4078 [INFO] running `Command { std: "docker" "start" "-a" "dc7d5e0367610d319c088cb887dc43d6ebc57201ff6cbf45b9aae4c995bf4078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc7d5e0367610d319c088cb887dc43d6ebc57201ff6cbf45b9aae4c995bf4078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc7d5e0367610d319c088cb887dc43d6ebc57201ff6cbf45b9aae4c995bf4078", kill_on_drop: false }` [INFO] [stdout] dc7d5e0367610d319c088cb887dc43d6ebc57201ff6cbf45b9aae4c995bf4078 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+f4d794ea0b845413344621d89f6c945062748485" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7475631233fdc515a20c2e4de0af515f7e17d4269786f86fe87bb2df13d35b6 [INFO] running `Command { std: "docker" "start" "-a" "b7475631233fdc515a20c2e4de0af515f7e17d4269786f86fe87bb2df13d35b6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.17 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking zerocopy v0.7.31 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling thiserror v1.0.51 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking http v1.0.0 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling unicode-bidi v0.3.14 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling der v0.7.8 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling tokio v1.35.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling crossbeam-queue v0.3.9 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling ring v0.17.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling webpki-roots v0.25.3 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Checking http-body-util v0.1.0 [INFO] [stderr] Compiling axum-core v0.4.1 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling axum v0.7.2 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking iana-time-zone v0.1.58 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.51 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling axum-macros v0.4.0 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking serde_json v1.0.108 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.14 [INFO] [stderr] Checking tower-http v0.5.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Compiling tempfile v3.8.1 [INFO] [stderr] Checking sqlx-core v0.7.3 [INFO] [stderr] Checking hyper v1.0.1 [INFO] [stderr] Checking hyper-util v0.1.1 [INFO] [stderr] Checking sqlx-mysql v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Checking sqlx v0.7.3 [INFO] [stderr] Checking yyc_forum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Extension`, `HeaderValue`, `Json`, `Request`, `Response`, `extract::Path` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | extract::Path, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | http::{HeaderValue, Request, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | Extension, Json, Router, [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `get`, `post` [INFO] [stdout] --> src/posts.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 6 | Json, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CONTENT_TYPE`, `Method`, `self` [INFO] [stdout] --> src/posts.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MySqlPool`, `mysql::MySqlPoolOptions` [INFO] [stdout] --> src/posts.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sqlx::{mysql::MySqlPoolOptions, FromRow, MySqlPool, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderValue`, `Html`, `Path`, `Request`, `Response`, `Router`, `get`, `post` [INFO] [stdout] --> src/users.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Path, State}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | http::{HeaderValue, Request, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | response::{Html, IntoResponse}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 6 | Json, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CONTENT_TYPE`, `Method`, `self` [INFO] [stdout] --> src/users.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow`, `MySqlPool`, `mysql::MySqlPoolOptions` [INFO] [stdout] --> src/users.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sqlx::{mysql::MySqlPoolOptions, FromRow, MySqlPool, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `CorsLayer` [INFO] [stdout] --> src/users.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use tower_http::cors::{Any, CorsLayer}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `layer::SubscriberExt`, `util::SubscriberInitExt` [INFO] [stdout] --> src/users.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `login_data` should have an upper camel case name [INFO] [stdout] --> src/users.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct login_data { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `LoginData` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderValue`, `Html`, `Request`, `Response`, `Router`, `get`, `post` [INFO] [stdout] --> src/comment.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | http::{HeaderValue, Request, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | response::{Html, IntoResponse}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 6 | Json, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CONTENT_TYPE`, `Method`, `self` [INFO] [stdout] --> src/comment.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow`, `MySqlPool`, `mysql::MySqlPoolOptions` [INFO] [stdout] --> src/comment.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sqlx::{mysql::MySqlPoolOptions, FromRow, MySqlPool, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/comment.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `CorsLayer` [INFO] [stdout] --> src/comment.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | use tower_http::cors::{Any, CorsLayer}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `layer::SubscriberExt`, `util::SubscriberInitExt` [INFO] [stdout] --> src/comment.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension`, `HeaderValue`, `Json`, `Request`, `Response`, `extract::Path` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | extract::Path, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | http::{HeaderValue, Request, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | Extension, Json, Router, [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `get`, `post` [INFO] [stdout] --> src/posts.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 6 | Json, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CONTENT_TYPE`, `Method`, `self` [INFO] [stdout] --> src/posts.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MySqlPool`, `mysql::MySqlPoolOptions` [INFO] [stdout] --> src/posts.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sqlx::{mysql::MySqlPoolOptions, FromRow, MySqlPool, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderValue`, `Html`, `Path`, `Request`, `Response`, `Router`, `get`, `post` [INFO] [stdout] --> src/users.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Path, State}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | http::{HeaderValue, Request, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | response::{Html, IntoResponse}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 6 | Json, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CONTENT_TYPE`, `Method`, `self` [INFO] [stdout] --> src/users.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow`, `MySqlPool`, `mysql::MySqlPoolOptions` [INFO] [stdout] --> src/users.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sqlx::{mysql::MySqlPoolOptions, FromRow, MySqlPool, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `CorsLayer` [INFO] [stdout] --> src/users.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use tower_http::cors::{Any, CorsLayer}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `layer::SubscriberExt`, `util::SubscriberInitExt` [INFO] [stdout] --> src/users.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `login_data` should have an upper camel case name [INFO] [stdout] --> src/users.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct login_data { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `LoginData` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HeaderValue`, `Html`, `Request`, `Response`, `Router`, `get`, `post` [INFO] [stdout] --> src/comment.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | http::{HeaderValue, Request, Response, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | response::{Html, IntoResponse}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 6 | Json, Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CONTENT_TYPE`, `Method`, `self` [INFO] [stdout] --> src/comment.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | header::{self, CONTENT_TYPE}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow`, `MySqlPool`, `mysql::MySqlPoolOptions` [INFO] [stdout] --> src/comment.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use sqlx::{mysql::MySqlPoolOptions, FromRow, MySqlPool, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/comment.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any`, `CorsLayer` [INFO] [stdout] --> src/comment.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | use tower_http::cors::{Any, CorsLayer}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `layer::SubscriberExt`, `util::SubscriberInitExt` [INFO] [stdout] --> src/comment.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/users.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let row = sqlx::query( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/users.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let row = sqlx::query( [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/posts.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/posts.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_role` is never read [INFO] [stdout] --> src/users.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct login_data { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | user_role: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `login_data` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Authorname` should have a snake case name [INFO] [stdout] --> src/posts.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | Path(Authorname): Path, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `authorname` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_role` is never read [INFO] [stdout] --> src/users.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct login_data { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | user_role: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `login_data` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Authorname` should have a snake case name [INFO] [stdout] --> src/posts.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | Path(Authorname): Path, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `authorname` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.30s [INFO] running `Command { std: "docker" "inspect" "b7475631233fdc515a20c2e4de0af515f7e17d4269786f86fe87bb2df13d35b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7475631233fdc515a20c2e4de0af515f7e17d4269786f86fe87bb2df13d35b6", kill_on_drop: false }` [INFO] [stdout] b7475631233fdc515a20c2e4de0af515f7e17d4269786f86fe87bb2df13d35b6