[INFO] cloning repository https://github.com/elcid14/100_day_rust_challenge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elcid14/100_day_rust_challenge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felcid14%2F100_day_rust_challenge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felcid14%2F100_day_rust_challenge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd66584f89d76b51b39b86b59da7f6cda808fed8 [INFO] checking elcid14/100_day_rust_challenge against master#385fa9d845dd326c6bbfd58c22244215e431948a for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felcid14%2F100_day_rust_challenge" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elcid14/100_day_rust_challenge on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elcid14/100_day_rust_challenge [INFO] finished tweaking git repo https://github.com/elcid14/100_day_rust_challenge [INFO] tweaked toml for git repo https://github.com/elcid14/100_day_rust_challenge written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/elcid14/100_day_rust_challenge 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid-macro-internal v1.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31e261a1fb4b657a2106ab1a13b1720673a97bce1d90b8e424937d464d8dcb38 [INFO] running `Command { std: "docker" "start" "-a" "31e261a1fb4b657a2106ab1a13b1720673a97bce1d90b8e424937d464d8dcb38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31e261a1fb4b657a2106ab1a13b1720673a97bce1d90b8e424937d464d8dcb38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31e261a1fb4b657a2106ab1a13b1720673a97bce1d90b8e424937d464d8dcb38", kill_on_drop: false }` [INFO] [stdout] 31e261a1fb4b657a2106ab1a13b1720673a97bce1d90b8e424937d464d8dcb38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba553ab0499f5e8c6c07875d5f14d1ee8f8cd289317daeca562105f2f800a680 [INFO] running `Command { std: "docker" "start" "-a" "ba553ab0499f5e8c6c07875d5f14d1ee8f8cd289317daeca562105f2f800a680", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ahash v0.8.7 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling openssl-sys v0.9.98 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling openssl v0.10.62 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling actix-router v0.5.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling uuid-macro-internal v1.6.1 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Checking zstd v0.13.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking actix-server v2.3.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.22 [INFO] [stderr] Checking actix-codec v0.5.1 [INFO] [stderr] Checking serde_json v1.0.108 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.6.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking actix-http v3.5.1 [INFO] [stderr] Checking actix-web v4.4.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.23 [INFO] [stderr] Checking one-hundred-days-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web::{self,Path, Json}, HttpResponse, Responder, HttpServer, App}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web::{self,Path, Json}, HttpResponse, Responder, HttpServer, App}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `insert_user` [INFO] [stdout] --> src/main.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn insert_user(app_data: web::Data, new_user:Json) -> impl Responder{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `insert_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_user` [INFO] [stdout] --> src/main.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | pub async fn get_user(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `create_post` [INFO] [stdout] --> src/main.rs:181:1 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn create_post(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `create_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_posts` [INFO] [stdout] --> src/main.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | pub async fn get_posts(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_posts` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post` [INFO] [stdout] --> src/main.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn get_post(app_data: web::Data, params:web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `add_comment` [INFO] [stdout] --> src/main.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub async fn add_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `add_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comments` [INFO] [stdout] --> src/main.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub async fn get_post_comments(app_data: web::Data, params:web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comments` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comment` [INFO] [stdout] --> src/main.rs:272:1 [INFO] [stdout] | [INFO] [stdout] 272 | pub async fn get_post_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_post` [INFO] [stdout] --> src/main.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | pub async fn delete_post(app_data: web::Data, params: web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_comment` [INFO] [stdout] --> src/main.rs:314:1 [INFO] [stdout] | [INFO] [stdout] 314 | pub async fn delete_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `insert_user` [INFO] [stdout] --> src/main.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn insert_user(app_data: web::Data, new_user:Json) -> impl Responder{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `insert_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_user` [INFO] [stdout] --> src/main.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | pub async fn get_user(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `create_post` [INFO] [stdout] --> src/main.rs:181:1 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn create_post(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `create_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_posts` [INFO] [stdout] --> src/main.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | pub async fn get_posts(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_posts` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post` [INFO] [stdout] --> src/main.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn get_post(app_data: web::Data, params:web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `add_comment` [INFO] [stdout] --> src/main.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub async fn add_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `add_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comments` [INFO] [stdout] --> src/main.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub async fn get_post_comments(app_data: web::Data, params:web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comments` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comment` [INFO] [stdout] --> src/main.rs:272:1 [INFO] [stdout] | [INFO] [stdout] 272 | pub async fn get_post_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_post` [INFO] [stdout] --> src/main.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | pub async fn delete_post(app_data: web::Data, params: web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_comment` [INFO] [stdout] --> src/main.rs:314:1 [INFO] [stdout] | [INFO] [stdout] 314 | pub async fn delete_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 06s [INFO] running `Command { std: "docker" "inspect" "ba553ab0499f5e8c6c07875d5f14d1ee8f8cd289317daeca562105f2f800a680", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba553ab0499f5e8c6c07875d5f14d1ee8f8cd289317daeca562105f2f800a680", kill_on_drop: false }` [INFO] [stdout] ba553ab0499f5e8c6c07875d5f14d1ee8f8cd289317daeca562105f2f800a680 [INFO] checking elcid14/100_day_rust_challenge against try#2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felcid14%2F100_day_rust_challenge" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elcid14/100_day_rust_challenge on toolchain 2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elcid14/100_day_rust_challenge [INFO] finished tweaking git repo https://github.com/elcid14/100_day_rust_challenge [INFO] tweaked toml for git repo https://github.com/elcid14/100_day_rust_challenge written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/elcid14/100_day_rust_challenge 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" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] caff8b62d7becd5296aca84fd74d5698b2ca8ce813e2ce60a5636f5e797fa554 [INFO] running `Command { std: "docker" "start" "-a" "caff8b62d7becd5296aca84fd74d5698b2ca8ce813e2ce60a5636f5e797fa554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "caff8b62d7becd5296aca84fd74d5698b2ca8ce813e2ce60a5636f5e797fa554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caff8b62d7becd5296aca84fd74d5698b2ca8ce813e2ce60a5636f5e797fa554", kill_on_drop: false }` [INFO] [stdout] caff8b62d7becd5296aca84fd74d5698b2ca8ce813e2ce60a5636f5e797fa554 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e84405ef827a8afed30686d4ab7eb41a778bfa521cf10ba8df568b82cdd9770f [INFO] running `Command { std: "docker" "start" "-a" "e84405ef827a8afed30686d4ab7eb41a778bfa521cf10ba8df568b82cdd9770f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ahash v0.8.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling openssl-sys v0.9.98 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling openssl v0.10.62 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-router v0.5.2 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Compiling uuid-macro-internal v1.6.1 [INFO] [stderr] Checking tokio v1.35.1 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Checking zstd v0.13.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking actix-server v2.3.0 [INFO] [stderr] Checking h2 v0.3.22 [INFO] [stderr] Checking actix-codec v0.5.1 [INFO] [stderr] Checking serde_json v1.0.108 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.6.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking actix-http v3.5.1 [INFO] [stderr] Checking actix-web v4.4.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.23 [INFO] [stderr] Checking one-hundred-days-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web::{self,Path, Json}, HttpResponse, Responder, HttpServer, App}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/main.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web::{self,Path, Json}, HttpResponse, Responder, HttpServer, App}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `insert_user` [INFO] [stdout] --> src/main.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn insert_user(app_data: web::Data, new_user:Json) -> impl Responder{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `insert_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_user` [INFO] [stdout] --> src/main.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | pub async fn get_user(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `create_post` [INFO] [stdout] --> src/main.rs:181:1 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn create_post(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `create_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_posts` [INFO] [stdout] --> src/main.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | pub async fn get_posts(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_posts` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post` [INFO] [stdout] --> src/main.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn get_post(app_data: web::Data, params:web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `add_comment` [INFO] [stdout] --> src/main.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub async fn add_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `add_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comments` [INFO] [stdout] --> src/main.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub async fn get_post_comments(app_data: web::Data, params:web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comments` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comment` [INFO] [stdout] --> src/main.rs:272:1 [INFO] [stdout] | [INFO] [stdout] 272 | pub async fn get_post_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_post` [INFO] [stdout] --> src/main.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | pub async fn delete_post(app_data: web::Data, params: web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_comment` [INFO] [stdout] --> src/main.rs:314:1 [INFO] [stdout] | [INFO] [stdout] 314 | pub async fn delete_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `insert_user` [INFO] [stdout] --> src/main.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn insert_user(app_data: web::Data, new_user:Json) -> impl Responder{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `insert_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_user` [INFO] [stdout] --> src/main.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 163 | pub async fn get_user(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_user` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `create_post` [INFO] [stdout] --> src/main.rs:181:1 [INFO] [stdout] | [INFO] [stdout] 181 | pub async fn create_post(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `create_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_posts` [INFO] [stdout] --> src/main.rs:198:1 [INFO] [stdout] | [INFO] [stdout] 198 | pub async fn get_posts(app_data: web::Data) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_posts` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post` [INFO] [stdout] --> src/main.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub async fn get_post(app_data: web::Data, params:web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `add_comment` [INFO] [stdout] --> src/main.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub async fn add_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `add_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comments` [INFO] [stdout] --> src/main.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 262 | pub async fn get_post_comments(app_data: web::Data, params:web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comments` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `get_post_comment` [INFO] [stdout] --> src/main.rs:272:1 [INFO] [stdout] | [INFO] [stdout] 272 | pub async fn get_post_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `get_post_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_post` [INFO] [stdout] --> src/main.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | pub async fn delete_post(app_data: web::Data, params: web::Path) -> HttpResponse{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_post` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `AppDataState` is more private than the item `delete_comment` [INFO] [stdout] --> src/main.rs:314:1 [INFO] [stdout] | [INFO] [stdout] 314 | pub async fn delete_comment(app_data: web::Data, params: web::Path) -> HttpResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `delete_comment` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `AppDataState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | struct AppDataState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "e84405ef827a8afed30686d4ab7eb41a778bfa521cf10ba8df568b82cdd9770f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e84405ef827a8afed30686d4ab7eb41a778bfa521cf10ba8df568b82cdd9770f", kill_on_drop: false }` [INFO] [stdout] e84405ef827a8afed30686d4ab7eb41a778bfa521cf10ba8df568b82cdd9770f