[INFO] cloning repository https://github.com/bluecupcoffee/rust_api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bluecupcoffee/rust_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbluecupcoffee%2Frust_api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbluecupcoffee%2Frust_api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1440dd83f555d3e18e106fe62e2790401340d6c7 [INFO] checking bluecupcoffee/rust_api against master#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbluecupcoffee%2Frust_api" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bluecupcoffee/rust_api on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bluecupcoffee/rust_api [INFO] finished tweaking git repo https://github.com/bluecupcoffee/rust_api [INFO] tweaked toml for git repo https://github.com/bluecupcoffee/rust_api written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bluecupcoffee/rust_api 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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "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] Downloading crates ... [INFO] [stderr] Downloaded openssl v0.10.65 [INFO] [stderr] Downloaded runtime-tokio v0.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 850648d09eb3107b202f60367525f962c4f103daed790e27dca2eefc8b8d0e8b [INFO] running `Command { std: "docker" "start" "-a" "850648d09eb3107b202f60367525f962c4f103daed790e27dca2eefc8b8d0e8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "850648d09eb3107b202f60367525f962c4f103daed790e27dca2eefc8b8d0e8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "850648d09eb3107b202f60367525f962c4f103daed790e27dca2eefc8b8d0e8b", kill_on_drop: false }` [INFO] [stdout] 850648d09eb3107b202f60367525f962c4f103daed790e27dca2eefc8b8d0e8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5498a6acfe329dbd63005348f1665d8bc5a57c5805a064fb47a17995accee73 [INFO] running `Command { std: "docker" "start" "-a" "c5498a6acfe329dbd63005348f1665d8bc5a57c5805a064fb47a17995accee73", kill_on_drop: false }` [INFO] [stderr] warning: rust_api v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `runtime-tokio` which is missing a lib target [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking value-bag v1.9.0 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking bytes v1.6.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.65 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling piper v0.2.3 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling async-executor v1.13.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Compiling tokio v1.38.1 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking unicode-properties v0.1.1 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking whoami v1.5.1 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking rsa v0.9.6 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling polling v3.7.2 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Compiling async-io v2.3.3 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking sqlx-mysql v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking rust_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/models.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models` [INFO] [stdout] --> src/models.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::models; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `red` should have an upper camel case name [INFO] [stdout] --> src/models.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | red, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `blue` should have an upper camel case name [INFO] [stdout] --> src/models.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | blue, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `yellow` should have an upper camel case name [INFO] [stdout] --> src/models.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | yellow, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Yellow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{fs, io}; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pool` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::{Pool, Error}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MySql` [INFO] [stdout] --> src/main.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use sqlx_mysql::{MySql, MySqlPool, MySqlQueryResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Colors` [INFO] [stdout] --> src/main.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::models::{Person, PersonGenerator, Colors}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | if let mut max_conn = pool.options().get_max_connections() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_conn` is never read [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | max_conn =1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/models.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models` [INFO] [stdout] --> src/models.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::models; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `red` should have an upper camel case name [INFO] [stdout] --> src/models.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | red, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Red` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `blue` should have an upper camel case name [INFO] [stdout] --> src/models.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | blue, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `yellow` should have an upper camel case name [INFO] [stdout] --> src/models.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | yellow, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Yellow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{fs, io}; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pool` [INFO] [stdout] --> src/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::{Pool, Error}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MySql` [INFO] [stdout] --> src/main.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use sqlx_mysql::{MySql, MySqlPool, MySqlQueryResult}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Colors` [INFO] [stdout] --> src/main.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::models::{Person, PersonGenerator, Colors}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/models.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | for i in 0..self.population { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | Ok(r) => println!("{:#?}", i), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_test_table` is never used [INFO] [stdout] --> src/main.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | async fn replace_test_table(pool: &MySqlPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/threadpool.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ThreadPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/threadpool.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/threadpool.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/threadpool.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 39 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/threadpool.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/main.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | if let mut max_conn = pool.options().get_max_connections() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_conn` is never read [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | max_conn =1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/models.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | for i in 0..self.population { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | Ok(r) => println!("{:#?}", i), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_test_table` is never used [INFO] [stdout] --> src/main.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | async fn replace_test_table(pool: &MySqlPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/threadpool.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ThreadPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/threadpool.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/threadpool.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/threadpool.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 39 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/threadpool.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "c5498a6acfe329dbd63005348f1665d8bc5a57c5805a064fb47a17995accee73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5498a6acfe329dbd63005348f1665d8bc5a57c5805a064fb47a17995accee73", kill_on_drop: false }` [INFO] [stdout] c5498a6acfe329dbd63005348f1665d8bc5a57c5805a064fb47a17995accee73