[INFO] cloning repository https://github.com/iwansal64/gaia-sensor-logger [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iwansal64/gaia-sensor-logger" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwansal64%2Fgaia-sensor-logger", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwansal64%2Fgaia-sensor-logger'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76d4deddb48971aaaf02c26bf81fffc9120ef567 [INFO] linting iwansal64/gaia-sensor-logger against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiwansal64%2Fgaia-sensor-logger" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iwansal64/gaia-sensor-logger [INFO] finished tweaking git repo https://github.com/iwansal64/gaia-sensor-logger [INFO] tweaked toml for git repo https://github.com/iwansal64/gaia-sensor-logger written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iwansal64/gaia-sensor-logger 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/iwansal64/gaia-sensor-logger 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 mongocrypt v0.3.1 [INFO] [stderr] Downloaded mongodb-internal-macros v3.3.0 [INFO] [stderr] Downloaded mongocrypt-sys v0.1.4+1.12.0 [INFO] [stderr] Downloaded resolv-conf v0.7.5 [INFO] [stderr] Downloaded cc v1.2.41 [INFO] [stderr] Downloaded hickory-resolver v0.24.4 [INFO] [stderr] Downloaded rumqttc v0.25.0 [INFO] [stderr] Downloaded bson v3.0.0 [INFO] [stderr] Downloaded aws-lc-rs v1.14.1 [INFO] [stderr] Downloaded syn v2.0.107 [INFO] [stderr] Downloaded mongodb v3.3.0 [INFO] [stderr] Downloaded hickory-proto v0.24.4 [INFO] [stderr] Downloaded rustls v0.23.33 [INFO] [stderr] Downloaded aws-lc-sys v0.32.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 04b7ebef87bc7b4d86b9edc718f2428764ea56a8040687d00725fc260592d8d8 [INFO] running `Command { std: "docker" "start" "-a" "04b7ebef87bc7b4d86b9edc718f2428764ea56a8040687d00725fc260592d8d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04b7ebef87bc7b4d86b9edc718f2428764ea56a8040687d00725fc260592d8d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04b7ebef87bc7b4d86b9edc718f2428764ea56a8040687d00725fc260592d8d8", kill_on_drop: false }` [INFO] [stdout] 04b7ebef87bc7b4d86b9edc718f2428764ea56a8040687d00725fc260592d8d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e36be403ac5db10c6d703567199528d8fbf487b81faaeec43d58f831fb2ca687 [INFO] running `Command { std: "docker" "start" "-a" "e36be403ac5db10c6d703567199528d8fbf487b81faaeec43d58f831fb2ca687", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Checking deranged v0.5.4 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Compiling syn v2.0.107 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling cc v1.2.41 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling aws-lc-rs v1.14.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling rustls v0.23.33 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling aws-lc-sys v0.32.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking serde_bytes v0.11.19 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling mongocrypt-sys v0.1.4+1.12.0 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking rustc_version v0.4.1 [INFO] [stderr] Checking webpki-roots v1.0.3 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling serde_with_macros v3.15.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling typed-builder-macro v0.20.1 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Checking resolv-conf v0.7.5 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling mongodb-internal-macros v3.3.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Checking flume v0.11.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking serde_with v3.15.0 [INFO] [stderr] Checking rustls-native-certs v0.8.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking typed-builder v0.20.1 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking simdutf8 v0.1.5 [INFO] [stderr] Checking bson v2.15.0 [INFO] [stderr] Checking fixedbitset v0.5.7 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking bson v3.0.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking mongocrypt v0.3.1 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking hickory-resolver v0.24.4 [INFO] [stderr] Checking rustls-webpki v0.103.7 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rumqttc v0.25.0 [INFO] [stderr] Checking mongodb v3.3.0 [INFO] [stderr] Checking gaia-sensor-logger v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/constants/config.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | / let mut mqtt_topics: Vec = Vec::new(); [INFO] [stdout] 16 | | mqtt_topics.push(String::from("ec")); [INFO] [stdout] 17 | | mqtt_topics.push(String::from("tds")); [INFO] [stdout] 18 | | mqtt_topics.push(String::from("tempC")); [INFO] [stdout] 19 | | mqtt_topics.push(String::from("ph")); [INFO] [stdout] | |___________________________________________^ help: consider using the `vec![]` macro: `let mqtt_topics: Vec = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for cloning elements [INFO] [stdout] --> src/api/sensor.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | topics = constants::config::MQTT_SUBTOPICS.iter().map(|data| data.clone()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `cloned` method: `constants::config::MQTT_SUBTOPICS.iter().cloned()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/api/sensor.rs:62:118 [INFO] [stdout] | [INFO] [stdout] 62 | println!("[API] There's an error when trying to get sensor data from MongoDB. Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/constants/config.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | / let mut mqtt_topics: Vec = Vec::new(); [INFO] [stdout] 16 | | mqtt_topics.push(String::from("ec")); [INFO] [stdout] 17 | | mqtt_topics.push(String::from("tds")); [INFO] [stdout] 18 | | mqtt_topics.push(String::from("tempC")); [INFO] [stdout] 19 | | mqtt_topics.push(String::from("ph")); [INFO] [stdout] | |___________________________________________^ help: consider using the `vec![]` macro: `let mqtt_topics: Vec = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you are using an explicit closure for cloning elements [INFO] [stdout] --> src/api/sensor.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | topics = constants::config::MQTT_SUBTOPICS.iter().map(|data| data.clone()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `cloned` method: `constants::config::MQTT_SUBTOPICS.iter().cloned()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stdout] = note: `#[warn(clippy::map_clone)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/api/sensor.rs:62:118 [INFO] [stdout] | [INFO] [stdout] 62 | println!("[API] There's an error when trying to get sensor data from MongoDB. Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:24:102 [INFO] [stdout] | [INFO] [stdout] 24 | println!("[MongoDB] There's an error when trying to parse Client Options. Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:33:105 [INFO] [stdout] | [INFO] [stdout] 33 | println!("[MongoDB] There's an error when trying to get list of collections. Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | if devices_id.len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `devices_id.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: `to_string` applied to a type that implements `Display` in `print!` args [INFO] [stdout] --> src/main.rs:126:44 [INFO] [stdout] | [INFO] [stdout] 126 | print!("{}%\r", current_percent.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:140:64 [INFO] [stdout] | [INFO] [stdout] 140 | println!("[MQTT] Connection Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:192:36 [INFO] [stdout] | [INFO] [stdout] 192 | ... err.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:24:102 [INFO] [stdout] | [INFO] [stdout] 24 | println!("[MongoDB] There's an error when trying to parse Client Options. Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:33:105 [INFO] [stdout] | [INFO] [stdout] 33 | println!("[MongoDB] There's an error when trying to get list of collections. Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/main.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | if devices_id.len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `devices_id.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: `to_string` applied to a type that implements `Display` in `print!` args [INFO] [stdout] --> src/main.rs:126:44 [INFO] [stdout] | [INFO] [stdout] 126 | print!("{}%\r", current_percent.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:140:64 [INFO] [stdout] | [INFO] [stdout] 140 | println!("[MQTT] Connection Error: {}", err.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `println!` args [INFO] [stdout] --> src/main.rs:192:36 [INFO] [stdout] | [INFO] [stdout] 192 | ... err.to_string() [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 55s [INFO] running `Command { std: "docker" "inspect" "e36be403ac5db10c6d703567199528d8fbf487b81faaeec43d58f831fb2ca687", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e36be403ac5db10c6d703567199528d8fbf487b81faaeec43d58f831fb2ca687", kill_on_drop: false }` [INFO] [stdout] e36be403ac5db10c6d703567199528d8fbf487b81faaeec43d58f831fb2ca687