[INFO] cloning repository https://github.com/418-Error/Rustaurant [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/418-Error/Rustaurant" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F418-Error%2FRustaurant", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F418-Error%2FRustaurant'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62cb3cba3e263cd0cca49cd99101006f20ea36c4 [INFO] linting 418-Error/Rustaurant against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F418-Error%2FRustaurant" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/418-Error/Rustaurant [INFO] finished tweaking git repo https://github.com/418-Error/Rustaurant [INFO] tweaked toml for git repo https://github.com/418-Error/Rustaurant written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/418-Error/Rustaurant on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/418-Error/Rustaurant 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-targets v0.52.5 [INFO] [stderr] Downloaded socket2 v0.5.6 [INFO] [stderr] Downloaded http-body-util v0.1.1 [INFO] [stderr] Downloaded log v0.4.21 [INFO] [stderr] Downloaded proc-macro2 v1.0.81 [INFO] [stderr] Downloaded fastrand v2.0.2 [INFO] [stderr] Downloaded thiserror-impl v1.0.59 [INFO] [stderr] Downloaded bitflags v2.5.0 [INFO] [stderr] Downloaded jwt v0.16.0 [INFO] [stderr] Downloaded rustversion v1.0.15 [INFO] [stderr] Downloaded tempfile v3.10.1 [INFO] [stderr] Downloaded ryu v1.0.17 [INFO] [stderr] Downloaded hyper-util v0.1.3 [INFO] [stderr] Downloaded base64 v0.22.0 [INFO] [stderr] Downloaded openssl-sys v0.9.102 [INFO] [stderr] Downloaded backtrace v0.3.71 [INFO] [stderr] Downloaded hyper v1.3.1 [INFO] [stderr] Downloaded bson v2.10.0 [INFO] [stderr] Downloaded serde_json v1.0.116 [INFO] [stderr] Downloaded security-framework v2.10.0 [INFO] [stderr] Downloaded serde v1.0.198 [INFO] [stderr] Downloaded cc v1.0.95 [INFO] [stderr] Downloaded syn v2.0.60 [INFO] [stderr] Downloaded miniz_oxide v0.7.2 [INFO] [stderr] Downloaded rustls v0.21.11 [INFO] [stderr] Downloaded openssl v0.10.64 [INFO] [stderr] Downloaded uuid v1.8.0 [INFO] [stderr] Downloaded serde_derive v1.0.198 [INFO] [stderr] Downloaded semver v1.0.22 [INFO] [stderr] Downloaded security-framework-sys v2.10.0 [INFO] [stderr] Downloaded getrandom v0.2.14 [INFO] [stderr] Downloaded async-trait v0.1.80 [INFO] [stderr] Downloaded thiserror v1.0.59 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.52.5 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.52.5 [INFO] [stderr] Downloaded windows_i686_gnullvm v0.52.5 [INFO] [stderr] Downloaded tokio v1.37.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.52.5 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.52.5 [INFO] [stderr] Downloaded csv v1.3.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.52.5 [INFO] [stderr] Downloaded windows_i686_gnu v0.52.5 [INFO] [stderr] Downloaded windows_i686_msvc v0.52.5 [INFO] [stderr] Downloaded mongodb v2.8.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6fe5319f01c4a8c72709fe5e3a67d868e8181284f5cb16a259c835dfd148a007 [INFO] running `Command { std: "docker" "start" "-a" "6fe5319f01c4a8c72709fe5e3a67d868e8181284f5cb16a259c835dfd148a007", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6fe5319f01c4a8c72709fe5e3a67d868e8181284f5cb16a259c835dfd148a007", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fe5319f01c4a8c72709fe5e3a67d868e8181284f5cb16a259c835dfd148a007", kill_on_drop: false }` [INFO] [stdout] 6fe5319f01c4a8c72709fe5e3a67d868e8181284f5cb16a259c835dfd148a007 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3c3fdd11f1f4d1fb14733932a01e6607e132c193c5f55df614afc4cd126aac3 [INFO] running `Command { std: "docker" "start" "-a" "d3c3fdd11f1f4d1fb14733932a01e6607e132c193c5f55df614afc4cd126aac3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling rustversion v1.0.15 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling rustls v0.21.11 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Checking finl_unicode v1.2.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking stringprep v0.1.4 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Checking salsa20 v0.10.2 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking trust-dns-proto v0.21.2 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking scrypt v0.11.0 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking trust-dns-resolver v0.21.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking bson v2.10.0 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking jwt v0.16.0 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking mongodb v2.8.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking rustaurant v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio; [INFO] [stdout] | ^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRestaurantPayload` is never constructed [INFO] [stdout] --> src/restaurants/controller.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct GetRestaurantPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRestaurantPayload` is never constructed [INFO] [stdout] --> src/restaurants/controller.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct GetRestaurantPayload { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiError` is never constructed [INFO] [stdout] --> src/api/errors.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ApiError{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiError` is never constructed [INFO] [stdout] --> src/api/errors.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ApiError{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/auth/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod auth; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/auth/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod auth; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] = note: `#[warn(clippy::module_inception)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/auth/controller.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | let token = create_jwt(&username.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: change this to: `username.as_str()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/auth/controller.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | let token = create_jwt(&username.as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: change this to: `username.as_str()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/auth/controller.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | return Ok(Json(response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 61 - return Ok(Json(response)); [INFO] [stdout] 61 + Ok(Json(response)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/auth/controller.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | return Ok(Json(response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 61 - return Ok(Json(response)); [INFO] [stdout] 61 + Ok(Json(response)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/db/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod db; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module has the same name as its containing module [INFO] [stdout] --> src/db/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod db; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/db/db.rs:55:71 [INFO] [stdout] | [INFO] [stdout] 55 | db_client.database("Rustaurant").collection::(&*i); [INFO] [stdout] | ^^^ help: try: `&i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/db/db.rs:55:71 [INFO] [stdout] | [INFO] [stdout] 55 | db_client.database("Rustaurant").collection::(&*i); [INFO] [stdout] | ^^^ help: try: `&i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | if !(collection_names.len() > 1){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(collection_names.len() <= 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | if !(collection_names.len() > 1){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(collection_names.len() <= 1)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/db/db.rs:116:71 [INFO] [stdout] | [INFO] [stdout] 116 | db_client.database("Rustaurant").collection::(&*i); [INFO] [stdout] | ^^^ help: try: `&i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/db/db.rs:116:71 [INFO] [stdout] | [INFO] [stdout] 116 | db_client.database("Rustaurant").collection::(&*i); [INFO] [stdout] | ^^^ help: try: `&i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:185:32 [INFO] [stdout] | [INFO] [stdout] 185 | ... if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:209:28 [INFO] [stdout] | [INFO] [stdout] 209 | if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:183:43 [INFO] [stdout] | [INFO] [stdout] 182 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 183 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:185:32 [INFO] [stdout] | [INFO] [stdout] 185 | ... if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:186:47 [INFO] [stdout] | [INFO] [stdout] 185 | ... if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 186 | ... let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:209:28 [INFO] [stdout] | [INFO] [stdout] 209 | if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:207:39 [INFO] [stdout] | [INFO] [stdout] 206 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 207 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:210:43 [INFO] [stdout] | [INFO] [stdout] 209 | if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 210 | let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:235:16 [INFO] [stdout] | [INFO] [stdout] 235 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:234:27 [INFO] [stdout] | [INFO] [stdout] 233 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 234 | let amenity = amenity.unwrap().as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:236:35 [INFO] [stdout] | [INFO] [stdout] 235 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 236 | collection_name = amenity.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:183:43 [INFO] [stdout] | [INFO] [stdout] 182 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 183 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:186:47 [INFO] [stdout] | [INFO] [stdout] 185 | ... if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 186 | ... let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:207:39 [INFO] [stdout] | [INFO] [stdout] 206 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 207 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:210:43 [INFO] [stdout] | [INFO] [stdout] 209 | if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 210 | let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:234:27 [INFO] [stdout] | [INFO] [stdout] 233 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 234 | let amenity = amenity.unwrap().as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:236:35 [INFO] [stdout] | [INFO] [stdout] 235 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 236 | collection_name = amenity.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/db/db.rs:173:27 [INFO] [stdout] | [INFO] [stdout] 173 | let is_good = match elem.len() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 174 | | 2 => true, [INFO] [stdout] 175 | | _ => false, [INFO] [stdout] 176 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 173 - let is_good = match elem.len() { [INFO] [stdout] 174 - 2 => true, [INFO] [stdout] 175 - _ => false, [INFO] [stdout] 176 - }; [INFO] [stdout] 173 + let is_good = matches!(elem.len(), 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/db/db.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | if concat.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!concat.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/db/db.rs:173:27 [INFO] [stdout] | [INFO] [stdout] 173 | let is_good = match elem.len() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 174 | | 2 => true, [INFO] [stdout] 175 | | _ => false, [INFO] [stdout] 176 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 173 - let is_good = match elem.len() { [INFO] [stdout] 174 - 2 => true, [INFO] [stdout] 175 - _ => false, [INFO] [stdout] 176 - }; [INFO] [stdout] 173 + let is_good = matches!(elem.len(), 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/db/db.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | if concat.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!concat.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:293:32 [INFO] [stdout] | [INFO] [stdout] 293 | ... if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:317:28 [INFO] [stdout] | [INFO] [stdout] 317 | if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 341 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:343:16 [INFO] [stdout] | [INFO] [stdout] 343 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:291:43 [INFO] [stdout] | [INFO] [stdout] 290 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 291 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:294:47 [INFO] [stdout] | [INFO] [stdout] 293 | ... if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 294 | ... let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:315:39 [INFO] [stdout] | [INFO] [stdout] 314 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 315 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:318:43 [INFO] [stdout] | [INFO] [stdout] 317 | if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 318 | let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:342:27 [INFO] [stdout] | [INFO] [stdout] 341 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 342 | let amenity = amenity.unwrap().as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:344:35 [INFO] [stdout] | [INFO] [stdout] 343 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 344 | collection_name = amenity.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:293:32 [INFO] [stdout] | [INFO] [stdout] 293 | ... if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:317:28 [INFO] [stdout] | [INFO] [stdout] 317 | if !new.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `new.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 341 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/db/db.rs:343:16 [INFO] [stdout] | [INFO] [stdout] 343 | if !amenity.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `amenity.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:291:43 [INFO] [stdout] | [INFO] [stdout] 290 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 291 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:294:47 [INFO] [stdout] | [INFO] [stdout] 293 | ... if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 294 | ... let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `last` after checking its variant with `is_some` [INFO] [stdout] --> src/db/db.rs:315:39 [INFO] [stdout] | [INFO] [stdout] 314 | if last.is_some() { [INFO] [stdout] | ----------------- help: try: `if let Some() = last` [INFO] [stdout] 315 | let ancient = last.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `new` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:318:43 [INFO] [stdout] | [INFO] [stdout] 317 | if !new.is_none() { [INFO] [stdout] | ------------- the check is happening here [INFO] [stdout] 318 | let mut new = new.unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:342:27 [INFO] [stdout] | [INFO] [stdout] 341 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 342 | let amenity = amenity.unwrap().as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `amenity` after checking its variant with `is_none` [INFO] [stdout] --> src/db/db.rs:344:35 [INFO] [stdout] | [INFO] [stdout] 343 | if !amenity.is_none() { [INFO] [stdout] | ----------------- the check is happening here [INFO] [stdout] 344 | collection_name = amenity.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/db/db.rs:281:27 [INFO] [stdout] | [INFO] [stdout] 281 | let is_good = match elem.len() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 282 | | 2 => true, [INFO] [stdout] 283 | | _ => false, [INFO] [stdout] 284 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 281 - let is_good = match elem.len() { [INFO] [stdout] 282 - 2 => true, [INFO] [stdout] 283 - _ => false, [INFO] [stdout] 284 - }; [INFO] [stdout] 281 + let is_good = matches!(elem.len(), 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/db/db.rs:286:20 [INFO] [stdout] | [INFO] [stdout] 286 | if concat.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!concat.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/db/db.rs:281:27 [INFO] [stdout] | [INFO] [stdout] 281 | let is_good = match elem.len() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 282 | | 2 => true, [INFO] [stdout] 283 | | _ => false, [INFO] [stdout] 284 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 281 - let is_good = match elem.len() { [INFO] [stdout] 282 - 2 => true, [INFO] [stdout] 283 - _ => false, [INFO] [stdout] 284 - }; [INFO] [stdout] 281 + let is_good = matches!(elem.len(), 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/db/db.rs:286:20 [INFO] [stdout] | [INFO] [stdout] 286 | if concat.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!concat.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | if !restaurant.osm_timestamp.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_timestamp.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | || !restaurant.osm_version.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_version.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | || !restaurant.osm_changeset.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_changeset.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | || !restaurant.osm_user.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_user.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | || !restaurant.osm_uid.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_uid.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | if !restaurant.osm_timestamp.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_timestamp.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | || !restaurant.osm_version.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_version.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | || !restaurant.osm_changeset.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_changeset.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | || !restaurant.osm_user.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_user.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/restaurants/controller.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | || !restaurant.osm_uid.is_none() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restaurant.osm_uid.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/restaurants/model.rs:519:18 [INFO] [stdout] | [INFO] [stdout] 519 | let id = self.id.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/restaurants/model.rs:531:20 [INFO] [stdout] | [INFO] [stdout] 531 | if restaurants.len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `restaurants.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `restaurants.get(0)` [INFO] [stdout] --> src/restaurants/model.rs:537:17 [INFO] [stdout] | [INFO] [stdout] 537 | restaurants.get(0).unwrap().clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `restaurants.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Option` which implements the `Copy` trait [INFO] [stdout] --> src/restaurants/model.rs:519:18 [INFO] [stdout] | [INFO] [stdout] 519 | let id = self.id.clone().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/restaurants/model.rs:531:20 [INFO] [stdout] | [INFO] [stdout] 531 | if restaurants.len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `restaurants.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `restaurants.get(0)` [INFO] [stdout] --> src/restaurants/model.rs:537:17 [INFO] [stdout] | [INFO] [stdout] 537 | restaurants.get(0).unwrap().clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `restaurants.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/restaurants/service.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | return user_restaurant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 69 - return user_restaurant; [INFO] [stdout] 69 + user_restaurant [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/restaurants/service.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | return user_restaurant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 69 - return user_restaurant; [INFO] [stdout] 69 + user_restaurant [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/users/service.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / pub async fn new( [INFO] [stdout] 12 | | username: String, [INFO] [stdout] 13 | | password: String, [INFO] [stdout] 14 | | ) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 22 | | User::new(username, hashed_password).await [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `new` usually return `Self` [INFO] [stdout] --> src/users/service.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | / pub async fn new( [INFO] [stdout] 12 | | username: String, [INFO] [stdout] 13 | | password: String, [INFO] [stdout] 14 | | ) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 22 | | User::new(username, hashed_password).await [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self [INFO] [stdout] = note: `#[warn(clippy::new_ret_no_self)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/restaurants/model.rs:452:27 [INFO] [stdout] | [INFO] [stdout] 452 | let collections = vec![ [INFO] [stdout] | ___________________________^ [INFO] [stdout] 453 | | "restaurant".to_string(), [INFO] [stdout] 454 | | "bar".to_string(), [INFO] [stdout] 455 | | "pub".to_string(), [INFO] [stdout] 456 | | "cafe".to_string(), [INFO] [stdout] 457 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 452 ~ let collections = ["restaurant".to_string(), [INFO] [stdout] 453 + "bar".to_string(), [INFO] [stdout] 454 + "pub".to_string(), [INFO] [stdout] 455 ~ "cafe".to_string()]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/restaurants/model.rs:452:27 [INFO] [stdout] | [INFO] [stdout] 452 | let collections = vec![ [INFO] [stdout] | ___________________________^ [INFO] [stdout] 453 | | "restaurant".to_string(), [INFO] [stdout] 454 | | "bar".to_string(), [INFO] [stdout] 455 | | "pub".to_string(), [INFO] [stdout] 456 | | "cafe".to_string(), [INFO] [stdout] 457 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 452 ~ let collections = ["restaurant".to_string(), [INFO] [stdout] 453 + "bar".to_string(), [INFO] [stdout] 454 + "pub".to_string(), [INFO] [stdout] 455 ~ "cafe".to_string()]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.32s [INFO] running `Command { std: "docker" "inspect" "d3c3fdd11f1f4d1fb14733932a01e6607e132c193c5f55df614afc4cd126aac3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3c3fdd11f1f4d1fb14733932a01e6607e132c193c5f55df614afc4cd126aac3", kill_on_drop: false }` [INFO] [stdout] d3c3fdd11f1f4d1fb14733932a01e6607e132c193c5f55df614afc4cd126aac3