[INFO] cloning repository https://github.com/Juubes/mongo-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Juubes/mongo-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJuubes%2Fmongo-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJuubes%2Fmongo-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 94359e061db71c13d04b142aeb633605bfd1424c [INFO] testing Juubes/mongo-api against 1.100.0-beta.1 for beta-1.100-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJuubes%2Fmongo-api" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Juubes/mongo-api [INFO] finished tweaking git repo https://github.com/Juubes/mongo-api [INFO] tweaked toml for git repo https://github.com/Juubes/mongo-api written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Juubes/mongo-api on toolchain 1.100.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Juubes/mongo-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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db [INFO] running `Command { std: "docker" "start" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Compiling syn v1.0.102 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling bytes v1.2.1 [INFO] [stderr] Compiling once_cell v1.15.0 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling tokio v1.21.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.145 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling digest v0.10.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling serde v1.0.145 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling parking_lot_core v0.9.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling serde_json v1.0.87 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling sha-1 v0.10.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling rustls v0.20.7 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling ipnet v2.5.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling iana-time-zone v0.1.51 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling headers v0.3.8 [INFO] [stderr] Compiling time v0.3.15 [INFO] [stderr] Compiling rustls-pemfile v0.3.0 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling chrono v0.4.22 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling pbkdf2 v0.10.1 [INFO] [stderr] Compiling os_info v3.5.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling webpki-roots v0.22.5 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.25 [INFO] [stderr] Compiling thiserror-impl v1.0.37 [INFO] [stderr] Compiling async-trait v0.1.58 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.37 [INFO] [stderr] Compiling tungstenite v0.17.3 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling futures-executor v0.3.25 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling trust-dns-proto v0.21.2 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tokio-tungstenite v0.17.2 [INFO] [stderr] Compiling h2 v0.3.14 [INFO] [stderr] Compiling uuid v1.2.1 [INFO] [stderr] Compiling serde_bytes v0.11.7 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling trust-dns-resolver v0.21.2 [INFO] [stderr] Compiling bson v2.4.0 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling mongodb v2.3.1 [INFO] [stderr] Compiling warp v0.3.3 [INFO] [stderr] Compiling rust-api-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serializer` [INFO] [stdout] --> src/models/turtle.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, Serializer}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::turtle::Turtle` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use models::turtle::Turtle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Document`, and `doc` [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | bson::{doc, Document}, [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] 8 | Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/data/data_handler.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn read(id: String) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/data/data_handler.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | pub async fn update(id: String, turtle: Turtle) -> Result<(), mongodb::error::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turtle` [INFO] [stdout] --> src/data/data_handler.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | pub async fn update(id: String, turtle: Turtle) -> Result<(), mongodb::error::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_turtle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/data/data_handler.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn delete(id: String) -> Result<(), mongodb::error::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/routes/delete.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | .then(|ok| future::ready(String::from("OK"))) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonData` is never constructed [INFO] [stdout] --> src/routes/create.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct JsonData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 12s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling rust-api-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serializer` [INFO] [stdout] --> src/models/turtle.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize, Serializer}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::turtle::Turtle` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use models::turtle::Turtle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Document`, and `doc` [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | bson::{doc, Document}, [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] 8 | Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/data/data_handler.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn read(id: String) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/data/data_handler.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | pub async fn update(id: String, turtle: Turtle) -> Result<(), mongodb::error::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turtle` [INFO] [stdout] --> src/data/data_handler.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | pub async fn update(id: String, turtle: Turtle) -> Result<(), mongodb::error::Error> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_turtle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/data/data_handler.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn delete(id: String) -> Result<(), mongodb::error::Error> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> src/routes/delete.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | .then(|ok| future::ready(String::from("OK"))) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonData` is never constructed [INFO] [stdout] --> src/routes/create.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct JsonData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.29s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Serializer` [INFO] [stderr] --> src/models/turtle.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize, Serializer}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `models::turtle::Turtle` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use models::turtle::Turtle; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Client`, `Document`, and `doc` [INFO] [stderr] --> src/main.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | bson::{doc, Document}, [INFO] [stderr] | ^^^ ^^^^^^^^ [INFO] [stderr] 8 | Client, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/data/data_handler.rs:20:19 [INFO] [stderr] | [INFO] [stderr] 20 | pub async fn read(id: String) -> Result { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/data/data_handler.rs:25:21 [INFO] [stderr] | [INFO] [stderr] 25 | pub async fn update(id: String, turtle: Turtle) -> Result<(), mongodb::error::Error> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `turtle` [INFO] [stderr] --> src/data/data_handler.rs:25:33 [INFO] [stderr] | [INFO] [stderr] 25 | pub async fn update(id: String, turtle: Turtle) -> Result<(), mongodb::error::Error> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_turtle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/data/data_handler.rs:29:21 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn delete(id: String) -> Result<(), mongodb::error::Error> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ok` [INFO] [stderr] --> src/routes/delete.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | .then(|ok| future::ready(String::from("OK"))) [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stderr] [INFO] [stderr] warning: struct `JsonData` is never constructed [INFO] [stderr] --> src/routes/create.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | struct JsonData { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `rust-api-test` (bin "rust-api-test" test) generated 9 warnings (run `cargo fix --bin "rust-api-test" -p rust-api-test --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/rust-api-test/c93b8d29d02880b6/out/rust_api_test-c93b8d29d02880b6) [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" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db", kill_on_drop: false }` [INFO] [stdout] b52a7be1e3fed362da4f13a14401608af6ae8fdf0fdbb8d914c3bb7e2a3801db