[INFO] cloning repository https://github.com/ColinEspinas/rust-auth-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ColinEspinas/rust-auth-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColinEspinas%2Frust-auth-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColinEspinas%2Frust-auth-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce3848c5223a84440dc4bf0ad4beeb00ccf8e0cf [INFO] building ColinEspinas/rust-auth-api against master#a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 for pr-93180 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FColinEspinas%2Frust-auth-api" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ColinEspinas/rust-auth-api on toolchain a7f375789bab1a4e4a291c963081a8ca7d2b6bd7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ColinEspinas/rust-auth-api [INFO] finished tweaking git repo https://github.com/ColinEspinas/rust-auth-api [INFO] tweaked toml for git repo https://github.com/ColinEspinas/rust-auth-api written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/ColinEspinas/rust-auth-api already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7f443a06a97068cf1a22212d86809a566ee79b2490320eff4ff9da2944c4c9e1 [INFO] running `Command { std: "docker" "start" "-a" "7f443a06a97068cf1a22212d86809a566ee79b2490320eff4ff9da2944c4c9e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f443a06a97068cf1a22212d86809a566ee79b2490320eff4ff9da2944c4c9e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f443a06a97068cf1a22212d86809a566ee79b2490320eff4ff9da2944c4c9e1", kill_on_drop: false }` [INFO] [stdout] 7f443a06a97068cf1a22212d86809a566ee79b2490320eff4ff9da2944c4c9e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 05b139626976a18f40f6b3e2ab2900b06e5962aa8950d0281d526d86bd4aae0e [INFO] running `Command { std: "docker" "start" "-a" "05b139626976a18f40f6b3e2ab2900b06e5962aa8950d0281d526d86bd4aae0e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling sval v1.0.0-alpha.5 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling signal-hook v0.3.9 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Compiling http-types v2.11.1 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling route-recognizer v0.2.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.7 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling tokio v1.8.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling simple-mutex v1.1.5 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling async-dup v1.2.2 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling byte-pool v0.2.3 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling universal-hash v0.4.0 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling pbkdf2 v0.7.5 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling darling_core v0.13.0 [INFO] [stderr] Compiling ctor v0.1.20 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling typed-builder v0.9.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.13.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling polling v2.1.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling os_info v3.0.6 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling darling v0.13.0 [INFO] [stderr] Compiling serde_with_macros v1.4.2 [INFO] [stderr] Compiling async-process v1.1.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling async-std v1.9.0 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_qs v0.7.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_with v1.9.4 [INFO] [stderr] Compiling trust-dns-proto v0.20.3 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling async-session v2.0.1 [INFO] [stderr] Compiling femme v2.1.1 [INFO] [stderr] Compiling bson v2.0.0-beta.2 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling trust-dns-resolver v0.20.3 [INFO] [stderr] Compiling async-h1 v2.3.2 [INFO] [stderr] Compiling async-sse v4.1.0 [INFO] [stderr] Compiling http-client v6.4.1 [INFO] [stderr] Compiling tide v0.16.0 [INFO] [stderr] Compiling async-std-resolver v0.20.3 [INFO] [stderr] Compiling mongodb v2.0.0-beta.2 [INFO] [stderr] Compiling rust-auth-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bson::Document` [INFO] [stdout] --> src/repositories/account.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::{Collection, Database, bson::Document}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dbs::mongo::Connection` [INFO] [stdout] --> src/repositories/account.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{dbs::mongo::Connection, models::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream::TryStreamExt` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{StreamExt, stream::TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | async fn get_accounts(mut req: Request) -> tide::Result> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/main.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Err(error) => print!("Cannot get accounts"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client` [INFO] [stdout] --> src/dbs/mongo.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | client: Client, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/dbs/mongo.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `client` [INFO] [stdout] --> src/dbs/mongo.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn client(&self) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/models/account.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/models/account.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/models/user.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(name: String, email: String, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mongo` [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn mongo(&self) -> &Connection { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 26s [INFO] running `Command { std: "docker" "inspect" "05b139626976a18f40f6b3e2ab2900b06e5962aa8950d0281d526d86bd4aae0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05b139626976a18f40f6b3e2ab2900b06e5962aa8950d0281d526d86bd4aae0e", kill_on_drop: false }` [INFO] [stdout] 05b139626976a18f40f6b3e2ab2900b06e5962aa8950d0281d526d86bd4aae0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+a7f375789bab1a4e4a291c963081a8ca7d2b6bd7" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4546cd224e3a24d3ed5af7ada5c74997b456ec026fd14d045340428be3df336 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f4546cd224e3a24d3ed5af7ada5c74997b456ec026fd14d045340428be3df336", kill_on_drop: false }` [INFO] [stderr] Compiling rust-auth-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bson::Document` [INFO] [stdout] --> src/repositories/account.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use mongodb::{Collection, Database, bson::Document}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dbs::mongo::Connection` [INFO] [stdout] --> src/repositories/account.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{dbs::mongo::Connection, models::Account}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream::TryStreamExt` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use futures::{StreamExt, stream::TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 61 | async fn get_accounts(mut req: Request) -> tide::Result> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/main.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Err(error) => print!("Cannot get accounts"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client` [INFO] [stdout] --> src/dbs/mongo.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | client: Client, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/dbs/mongo.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `client` [INFO] [stdout] --> src/dbs/mongo.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn client(&self) -> Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/models/account.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/models/account.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn get_id(&self) -> ObjectId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/models/user.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(name: String, email: String, password: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mongo` [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn mongo(&self) -> &Connection { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.67s [INFO] running `Command { std: "docker" "inspect" "f4546cd224e3a24d3ed5af7ada5c74997b456ec026fd14d045340428be3df336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4546cd224e3a24d3ed5af7ada5c74997b456ec026fd14d045340428be3df336", kill_on_drop: false }` [INFO] [stdout] f4546cd224e3a24d3ed5af7ada5c74997b456ec026fd14d045340428be3df336