[INFO] cloning repository https://github.com/developersaikiran/ecommerce-rust-api-sql [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/developersaikiran/ecommerce-rust-api-sql" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevelopersaikiran%2Fecommerce-rust-api-sql", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevelopersaikiran%2Fecommerce-rust-api-sql'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca0e9f66060bbad94d7a7f75af5635fcf70967a5 [INFO] testing developersaikiran/ecommerce-rust-api-sql against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevelopersaikiran%2Fecommerce-rust-api-sql" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/developersaikiran/ecommerce-rust-api-sql [INFO] finished tweaking git repo https://github.com/developersaikiran/ecommerce-rust-api-sql [INFO] tweaked toml for git repo https://github.com/developersaikiran/ecommerce-rust-api-sql written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/developersaikiran/ecommerce-rust-api-sql on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/developersaikiran/ecommerce-rust-api-sql 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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 pwhash v1.0.0 [INFO] [stderr] Downloaded whoami v1.5.1 [INFO] [stderr] Downloaded blocking v1.6.0 [INFO] [stderr] Downloaded polling v3.7.0 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded async-executor v1.11.0 [INFO] [stderr] Downloaded piper v0.2.2 [INFO] [stderr] Downloaded blowfish v0.7.0 [INFO] [stderr] Downloaded actix-cors v0.6.5 [INFO] [stderr] Downloaded actix-rt v2.9.0 [INFO] [stderr] Downloaded actix-router v0.5.2 [INFO] [stderr] Downloaded actix-server v2.3.0 [INFO] [stderr] Downloaded actix-web-codegen v4.2.2 [INFO] [stderr] Downloaded async-channel v2.3.0 [INFO] [stderr] Downloaded actix-http v3.6.0 [INFO] [stderr] Downloaded actix-web v4.5.1 [INFO] [stderr] Downloaded zstd-sys v2.0.10+zstd.1.5.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55a6fc57954052d49068c1f5cb6338908ea21cf22770c1ea85cf5532e7b5997b [INFO] running `Command { std: "docker" "start" "-a" "55a6fc57954052d49068c1f5cb6338908ea21cf22770c1ea85cf5532e7b5997b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55a6fc57954052d49068c1f5cb6338908ea21cf22770c1ea85cf5532e7b5997b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55a6fc57954052d49068c1f5cb6338908ea21cf22770c1ea85cf5532e7b5997b", kill_on_drop: false }` [INFO] [stdout] 55a6fc57954052d49068c1f5cb6338908ea21cf22770c1ea85cf5532e7b5997b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32bf281ed6f7647d1ddcb1e8ffa2c5832e2297de10bd7962e4a35567b0e67e57 [INFO] running `Command { std: "docker" "start" "-a" "32bf281ed6f7647d1ddcb1e8ffa2c5832e2297de10bd7962e4a35567b0e67e57", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling value-bag v1.9.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling serde v1.0.201 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling zerocopy v0.7.34 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling event-listener v5.3.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.63 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.2 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling piper v0.2.2 [INFO] [stderr] Compiling async-channel v2.3.0 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling blocking v1.6.0 [INFO] [stderr] Compiling async-executor v1.11.0 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling brotli-decompressor v2.5.1 [INFO] [stderr] Compiling actix-rt v2.9.0 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling brotli v3.5.0 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling zstd v0.13.1 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num-bigint v0.4.5 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.201 [INFO] [stderr] Compiling thiserror-impl v1.0.60 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling blowfish v0.7.0 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling pwhash v1.0.0 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling polling v3.7.0 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling async-io v2.3.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling actix-router v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-http v3.6.0 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling actix-server v2.3.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.0 [INFO] [stderr] Compiling actix-web v4.5.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling actix-cors v0.6.5 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling routes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/controllers/user/login/login.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | let users_result = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 54 | | FindUser_RType, [INFO] [stdout] 55 | | r#" [INFO] [stdout] 56 | | SELECT id, email, password FROM users [INFO] [stdout] 57 | | WHERE email = $1"#, email [INFO] [stdout] 58 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/controllers/user/registration/registration.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | let users_result = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 27 | | FindUser_RType, [INFO] [stdout] 28 | | r#" [INFO] [stdout] 29 | | SELECT email FROM users [INFO] [stdout] 30 | | WHERE email = $1"#, email [INFO] [stdout] 31 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/controllers/user/registration/registration.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | let create_user = sqlx::query!( [INFO] [stdout] | _______________________________^ [INFO] [stdout] 50 | | r#" [INFO] [stdout] 51 | | INSERT INTO users (name, email, password, device_token) VALUES ($1, $2, $3, $4) [INFO] [stdout] 52 | | "#, [INFO] [stdout] ... | [INFO] [stdout] 56 | | device_token [INFO] [stdout] 57 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/controllers/user/registration/registration.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 65 | let registered_user = sqlx::query_as!( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 66 | | CreateUser_RType, [INFO] [stdout] 67 | | r#" [INFO] [stdout] 68 | | SELECT id, name, email FROM users WHERE email = $1 [INFO] [stdout] 69 | | "#, [INFO] [stdout] 70 | | email [INFO] [stdout] 71 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server_error_response` [INFO] [stdout] --> src/controllers/user/login/login.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | response::{server_error_response, success_response, bad_request_response}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FindUser_RType` [INFO] [stdout] --> src/controllers/user/login/login.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | FindUser_RType, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OpenOptions` and `self` [INFO] [stdout] --> src/controllers/user/login/login.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use std::fs::{self, OpenOptions}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, and `decode` [INFO] [stdout] --> src/controllers/user/login/login.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | use jsonwebtoken::{encode, decode, Header, Validation, EncodingKey, DecodingKey}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/controllers/user/login/rType.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestBody_RTypes` should have an upper camel case name [INFO] [stdout] --> src/controllers/user/login/rType.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RequestBody_RTypes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RequestBodyRtypes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FindUser_RType` should have an upper camel case name [INFO] [stdout] --> src/controllers/user/login/rType.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FindUser_RType { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FindUserRtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `server_error_response` [INFO] [stdout] --> src/controllers/user/registration/registration.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | response::{server_error_response, success_response, bad_request_response}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CreateUser_RType` and `FindUser_RType` [INFO] [stdout] --> src/controllers/user/registration/registration.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | FindUser_RType, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 14 | CreateUser_RType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/controllers/user/registration/rType.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `RequestBody_RTypes` should have an upper camel case name [INFO] [stdout] --> src/controllers/user/registration/rType.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RequestBody_RTypes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RequestBodyRtypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `FindUser_RType` should have an upper camel case name [INFO] [stdout] --> src/controllers/user/registration/rType.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct FindUser_RType { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FindUserRtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `CreateUser_RType` should have an upper camel case name [INFO] [stdout] --> src/controllers/user/registration/rType.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct CreateUser_RType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateUserRtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `user` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::controllers::{user}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpResponse` [INFO] [stdout] --> src/routes/index.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpResponse` [INFO] [stdout] --> src/routes/v1/index.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `admin` [INFO] [stdout] --> src/routes/v1/index.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{user, admin}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `success_response` [INFO] [stdout] --> src/routes/v1/user/auth.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | response::{success_response}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpRequest`, `HttpResponse`, `delete`, `get`, and `patch` [INFO] [stdout] --> src/routes/v1/user/auth.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{delete, get, patch, post, web, HttpRequest, HttpResponse, Responder}; [INFO] [stdout] | ^^^^^^ ^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/routes/v1/user/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/routes/v1/user/auth.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `Validation`, `decode`, and `errors::Error as JwtError` [INFO] [stdout] --> src/routes/v1/user/auth.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | use jsonwebtoken::{decode, DecodingKey, Validation, errors::Error as JwtError}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth` [INFO] [stdout] --> src/routes/v1/user/auth.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | auth: web::Data [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_auth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `routes` (bin "routes") due to 4 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "32bf281ed6f7647d1ddcb1e8ffa2c5832e2297de10bd7962e4a35567b0e67e57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32bf281ed6f7647d1ddcb1e8ffa2c5832e2297de10bd7962e4a35567b0e67e57", kill_on_drop: false }` [INFO] [stdout] 32bf281ed6f7647d1ddcb1e8ffa2c5832e2297de10bd7962e4a35567b0e67e57