[INFO] cloning repository https://github.com/oday-spec/RUST-CRUD [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oday-spec/RUST-CRUD" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foday-spec%2FRUST-CRUD", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foday-spec%2FRUST-CRUD'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63060bf7fab3e3904fbaec1858b1b38c73e5faf3 [INFO] testing oday-spec/RUST-CRUD against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_getrandom_patch_1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foday-spec%2FRUST-CRUD" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/oday-spec/RUST-CRUD [INFO] finished tweaking git repo https://github.com/oday-spec/RUST-CRUD [INFO] tweaked toml for git repo https://github.com/oday-spec/RUST-CRUD written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oday-spec/RUST-CRUD on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oday-spec/RUST-CRUD 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78a6049149529f594e31364f833a29449fcb99af8769d4dcc2c2f861ef50a7da [INFO] running `Command { std: "docker" "start" "-a" "78a6049149529f594e31364f833a29449fcb99af8769d4dcc2c2f861ef50a7da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78a6049149529f594e31364f833a29449fcb99af8769d4dcc2c2f861ef50a7da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78a6049149529f594e31364f833a29449fcb99af8769d4dcc2c2f861ef50a7da", kill_on_drop: false }` [INFO] [stdout] 78a6049149529f594e31364f833a29449fcb99af8769d4dcc2c2f861ef50a7da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 00e9aaa0c84ad14d158621c37dbf0079bd06b40909df7a148b0398b7d77153d7 [INFO] running `Command { std: "docker" "start" "-a" "00e9aaa0c84ad14d158621c37dbf0079bd06b40909df7a148b0398b7d77153d7", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling rustls v0.23.14 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling webpki-roots v0.26.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling encode_unicode v1.0.0 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling prettytable v0.10.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Compiling sqlx v0.8.2 [INFO] [stderr] Compiling CRUD-sqlx-potgres v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `add_post`, `delete_post_by_id`, `show_posts`, and `update_post` [INFO] [stdout] --> src/main.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::crud::{add_post, show_posts, show_post_by_id, update_post, delete_post_by_id}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_post` is never used [INFO] [stdout] --> src/crud.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn add_post( db: &PgPool, post: &Post) -> Result<(), anyhow::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_posts` is never used [INFO] [stdout] --> src/crud.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn show_posts(db: &PgPool) -> Result, anyhow::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_post` is never used [INFO] [stdout] --> src/crud.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | pub async fn update_post(db: &PgPool, post: &Post) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_post_by_id` is never used [INFO] [stdout] --> src/crud.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn delete_post_by_id(db: &PgPool, id : i32) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Entities` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Entities; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `entities` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | for post in posts { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + while let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + if let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.66s [INFO] running `Command { std: "docker" "inspect" "00e9aaa0c84ad14d158621c37dbf0079bd06b40909df7a148b0398b7d77153d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00e9aaa0c84ad14d158621c37dbf0079bd06b40909df7a148b0398b7d77153d7", kill_on_drop: false }` [INFO] [stdout] 00e9aaa0c84ad14d158621c37dbf0079bd06b40909df7a148b0398b7d77153d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 0266b6fb73132fe21397e8e1acc6edc0977308fd568f56af1a8055283c86de66 [INFO] running `Command { std: "docker" "start" "-a" "0266b6fb73132fe21397e8e1acc6edc0977308fd568f56af1a8055283c86de66", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling CRUD-sqlx-potgres v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `add_post`, `delete_post_by_id`, `show_posts`, and `update_post` [INFO] [stdout] --> src/main.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::crud::{add_post, show_posts, show_post_by_id, update_post, delete_post_by_id}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let post = Post { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_post` is never used [INFO] [stdout] --> src/crud.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn add_post( db: &PgPool, post: &Post) -> Result<(), anyhow::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_posts` is never used [INFO] [stdout] --> src/crud.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | pub async fn show_posts(db: &PgPool) -> Result, anyhow::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_post` is never used [INFO] [stdout] --> src/crud.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | pub async fn update_post(db: &PgPool, post: &Post) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_post_by_id` is never used [INFO] [stdout] --> src/crud.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | pub async fn delete_post_by_id(db: &PgPool, id : i32) -> Result<(), ErrorDB> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Entities` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Entities; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `entities` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | for post in posts { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + while let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 49 - for post in posts { [INFO] [stdout] 49 + if let Ok(post) = posts { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "0266b6fb73132fe21397e8e1acc6edc0977308fd568f56af1a8055283c86de66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0266b6fb73132fe21397e8e1acc6edc0977308fd568f56af1a8055283c86de66", kill_on_drop: false }` [INFO] [stdout] 0266b6fb73132fe21397e8e1acc6edc0977308fd568f56af1a8055283c86de66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e4bae1d179c6284c730d237f28560728f68b3579306b4b5d794b133f59fb786d [INFO] running `Command { std: "docker" "start" "-a" "e4bae1d179c6284c730d237f28560728f68b3579306b4b5d794b133f59fb786d", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] warning: unused imports: `add_post`, `delete_post_by_id`, `show_posts`, and `update_post` [INFO] [stderr] --> src/main.rs:5:19 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::crud::{add_post, show_posts, show_post_by_id, update_post, delete_post_by_id}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `post` [INFO] [stderr] --> src/main.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | let post = Post { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `add_post` is never used [INFO] [stderr] --> src/crud.rs:24:15 [INFO] [stderr] | [INFO] [stderr] 24 | pub async fn add_post( db: &PgPool, post: &Post) -> Result<(), anyhow::Error> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `show_posts` is never used [INFO] [stderr] --> src/crud.rs:39:14 [INFO] [stderr] | [INFO] [stderr] 39 | pub async fn show_posts(db: &PgPool) -> Result, anyhow::Error> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `update_post` is never used [INFO] [stderr] --> src/crud.rs:68:14 [INFO] [stderr] | [INFO] [stderr] 68 | pub async fn update_post(db: &PgPool, post: &Post) -> Result<(), ErrorDB> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `delete_post_by_id` is never used [INFO] [stderr] --> src/crud.rs:84:14 [INFO] [stderr] | [INFO] [stderr] 84 | pub async fn delete_post_by_id(db: &PgPool, id : i32) -> Result<(), ErrorDB> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: module `Entities` should have a snake case name [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | mod Entities; [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `entities` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: for loop over a `Result`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/main.rs:49:14 [INFO] [stderr] | [INFO] [stderr] 49 | for post in posts { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 49 - for post in posts { [INFO] [stderr] 49 + while let Ok(post) = posts { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 49 - for post in posts { [INFO] [stderr] 49 + if let Ok(post) = posts { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `CRUD-sqlx-potgres` (bin "CRUD-sqlx-potgres" test) generated 8 warnings (run `cargo fix --bin "CRUD-sqlx-potgres" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/CRUD_sqlx_potgres-36ab2428ae6e3cb0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e4bae1d179c6284c730d237f28560728f68b3579306b4b5d794b133f59fb786d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4bae1d179c6284c730d237f28560728f68b3579306b4b5d794b133f59fb786d", kill_on_drop: false }` [INFO] [stdout] e4bae1d179c6284c730d237f28560728f68b3579306b4b5d794b133f59fb786d