[INFO] cloning repository https://github.com/vikorzel/be-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vikorzel/be-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvikorzel%2Fbe-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvikorzel%2Fbe-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de83ca3195a347570efafb3db2e8e04b5f26c903 [INFO] testing vikorzel/be-server against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvikorzel%2Fbe-server" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vikorzel/be-server [INFO] finished tweaking git repo https://github.com/vikorzel/be-server [INFO] tweaked toml for git repo https://github.com/vikorzel/be-server written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vikorzel/be-server on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vikorzel/be-server 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rumqttc v0.24.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a5dac67a210e86b1d4ebbb679b014302f5a1d76ee3a5940234248c03d11e938 [INFO] running `Command { std: "docker" "start" "-a" "9a5dac67a210e86b1d4ebbb679b014302f5a1d76ee3a5940234248c03d11e938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a5dac67a210e86b1d4ebbb679b014302f5a1d76ee3a5940234248c03d11e938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a5dac67a210e86b1d4ebbb679b014302f5a1d76ee3a5940234248c03d11e938", kill_on_drop: false }` [INFO] [stdout] 9a5dac67a210e86b1d4ebbb679b014302f5a1d76ee3a5940234248c03d11e938 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 844e079f2a33d26fef23cb54a75171494853c2c9e61a55838cddc0dc6545b2fd [INFO] running `Command { std: "docker" "start" "-a" "844e079f2a33d26fef23cb54a75171494853c2c9e61a55838cddc0dc6545b2fd", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling value-bag v1.8.1 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling zerocopy v0.7.34 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling concurrent-queue v2.4.0 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling event-listener v5.2.0 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling async-task v4.7.0 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.0 [INFO] [stderr] Compiling piper v0.2.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling async-channel v2.2.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling waker-fn v1.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling async-executor v1.8.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rustls-pki-types v1.4.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling blocking v1.5.1 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling polling v3.6.0 [INFO] [stderr] Compiling async-io v2.3.2 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling rustls v0.22.3 [INFO] [stderr] Compiling paho-mqtt-sys v0.9.0 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling rustls-pemfile v2.1.1 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling async-trait v0.1.79 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling zeroize v1.7.0 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling anstream v0.6.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling rustls-webpki v0.102.2 [INFO] [stderr] Compiling postgres-protocol v0.6.6 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling strsim v0.11.0 [INFO] [stderr] Compiling colored v2.1.0 [INFO] [stderr] Compiling postgres-types v0.2.6 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling clap_builder v4.5.0 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling rustls-native-certs v0.7.0 [INFO] [stderr] Compiling clap_derive v4.5.0 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.12 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling base64 v0.22.0 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling chrono v0.4.37 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.4 [INFO] [stderr] Compiling tokio-postgres v0.7.10 [INFO] [stderr] Compiling simple_logger v4.3.3 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling ctrlc v3.4.4 [INFO] [stderr] Compiling either v1.12.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling rumqttc v0.24.0 [INFO] [stderr] Compiling clap v4.5.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling paho-mqtt v0.12.3 [INFO] [stderr] Compiling hyper v1.2.0 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.3 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling be-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/device.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, mem, usize}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/device.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stdout] 78 + let device_id = informer_id * 100 + (i as u32) + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query` [INFO] [stdout] --> src/sqlconnector.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{postgres::PgPoolOptions, query}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/datacache.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | .filter(|(k, v)| v.last_update.elapsed().unwrap().as_secs() >= self.experity_time) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/datacache.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|(k, v)| k.clone()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `temperature` and `humidity` are never read [INFO] [stdout] --> src/device.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DeviceConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 6 | temperature: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | humidity: f32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheElement` is never constructed [INFO] [stdout] --> src/datacache.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct CacheElement { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Datacache` is never constructed [INFO] [stdout] --> src/datacache.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Datacache { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/datacache.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Datacache { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(external_channel: Box) -> Datacache { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_capacity(&mut self, capacity: usize) -> &mut Datacache { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn set_experity_time(&mut self, experity_time: u64) -> &mut Datacache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn has_capacity(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn cleanup(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn set_config(&mut self, device: &mut dyn Device) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::device::Device` [INFO] [stdout] --> src/metrics.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::device::Device; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::device` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `be_server::device::HardDevice` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use be_server::device::HardDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "844e079f2a33d26fef23cb54a75171494853c2c9e61a55838cddc0dc6545b2fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "844e079f2a33d26fef23cb54a75171494853c2c9e61a55838cddc0dc6545b2fd", kill_on_drop: false }` [INFO] [stdout] 844e079f2a33d26fef23cb54a75171494853c2c9e61a55838cddc0dc6545b2fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e509e0eaa7ea62c27ea756362832ea071279e4191622f4893cf6a24d930e342a [INFO] running `Command { std: "docker" "start" "-a" "e509e0eaa7ea62c27ea756362832ea071279e4191622f4893cf6a24d930e342a", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/device.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, mem, usize}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/device.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stdout] 78 + let device_id = informer_id * 100 + (i as u32) + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query` [INFO] [stdout] --> src/sqlconnector.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{postgres::PgPoolOptions, query}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/datacache.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | .filter(|(k, v)| v.last_update.elapsed().unwrap().as_secs() >= self.experity_time) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/datacache.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|(k, v)| k.clone()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `temperature` and `humidity` are never read [INFO] [stdout] --> src/device.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DeviceConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 6 | temperature: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | humidity: f32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacheElement` is never constructed [INFO] [stdout] --> src/datacache.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct CacheElement { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Datacache` is never constructed [INFO] [stdout] --> src/datacache.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Datacache { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling be-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/datacache.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Datacache { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(external_channel: Box) -> Datacache { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_capacity(&mut self, capacity: usize) -> &mut Datacache { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn set_experity_time(&mut self, experity_time: u64) -> &mut Datacache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn has_capacity(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn cleanup(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn set_config(&mut self, device: &mut dyn Device) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::device::Device` [INFO] [stdout] --> src/metrics.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::device::Device; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::device` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `be_server::device::HardDevice` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use be_server::device::HardDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::device::Device` [INFO] [stdout] --> src/metrics.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::device::Device; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Device` [INFO] [stdout] --> src/metrics.rs:42:37 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::device::{HardDevice, Device}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::device` [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::device; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `be_server::device::HardDevice` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use be_server::device::HardDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mem` [INFO] [stdout] --> src/device.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, mem, usize}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/device.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stdout] 78 + let device_id = informer_id * 100 + (i as u32) + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `query` [INFO] [stdout] --> src/sqlconnector.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{postgres::PgPoolOptions, query}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::TryFutureExt` [INFO] [stdout] --> src/datacache.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | use futures::TryFutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/datacache.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 92 | use std::{borrow::BorrowMut, collections::HashMap, sync::{Arc, Mutex}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/datacache.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | .filter(|(k, v)| v.last_update.elapsed().unwrap().as_secs() >= self.experity_time) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/datacache.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | .map(|(k, v)| k.clone()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `temperature` and `humidity` are never read [INFO] [stdout] --> src/device.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DeviceConfig { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 6 | temperature: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 7 | humidity: f32 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.94s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e509e0eaa7ea62c27ea756362832ea071279e4191622f4893cf6a24d930e342a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e509e0eaa7ea62c27ea756362832ea071279e4191622f4893cf6a24d930e342a", kill_on_drop: false }` [INFO] [stdout] e509e0eaa7ea62c27ea756362832ea071279e4191622f4893cf6a24d930e342a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0a8ce39d8c7f58cb2b4e7218f96bb6ed11baefa3421106ccdcbbde63a35e3740 [INFO] running `Command { std: "docker" "start" "-a" "0a8ce39d8c7f58cb2b4e7218f96bb6ed11baefa3421106ccdcbbde63a35e3740", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `mem` [INFO] [stderr] --> src/device.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{error::Error, mem, usize}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/device.rs:78:29 [INFO] [stderr] | [INFO] [stderr] 78 | let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 78 - let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stderr] 78 + let device_id = informer_id * 100 + (i as u32) + 1; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `query` [INFO] [stderr] --> src/sqlconnector.rs:3:37 [INFO] [stderr] | [INFO] [stderr] 3 | use sqlx::{postgres::PgPoolOptions, query}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `k` [INFO] [stderr] --> src/datacache.rs:50:23 [INFO] [stderr] | [INFO] [stderr] 50 | .filter(|(k, v)| v.last_update.elapsed().unwrap().as_secs() >= self.experity_time) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/datacache.rs:51:23 [INFO] [stderr] | [INFO] [stderr] 51 | .map(|(k, v)| k.clone()) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: fields `temperature` and `humidity` are never read [INFO] [stderr] --> src/device.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct DeviceConfig { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 6 | temperature: f32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 7 | humidity: f32 [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `CacheElement` is never constructed [INFO] [stderr] --> src/datacache.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | struct CacheElement { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Datacache` is never constructed [INFO] [stderr] --> src/datacache.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct Datacache { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/datacache.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Datacache { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 19 | pub fn new(external_channel: Box) -> Datacache { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | pub fn set_capacity(&mut self, capacity: usize) -> &mut Datacache { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn set_experity_time(&mut self, experity_time: u64) -> &mut Datacache { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | fn has_capacity(&mut self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn get_size(&self) -> usize { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | fn cleanup(&mut self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | pub async fn set_config(&mut self, device: &mut dyn Device) -> Result<(), std::io::Error> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `futures::TryFutureExt` [INFO] [stderr] --> src/datacache.rs:91:9 [INFO] [stderr] | [INFO] [stderr] 91 | use futures::TryFutureExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `borrow::BorrowMut` [INFO] [stderr] --> src/datacache.rs:92:15 [INFO] [stderr] | [INFO] [stderr] 92 | use std::{borrow::BorrowMut, collections::HashMap, sync::{Arc, Mutex}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `be-server` (lib) generated 9 warnings (run `cargo fix --lib -p be-server` to apply 3 suggestions) [INFO] [stderr] warning: `be-server` (lib test) generated 8 warnings (6 duplicates) (run `cargo fix --lib -p be-server --tests` to apply 2 suggestions) [INFO] [stderr] warning: unused import: `crate::device::Device` [INFO] [stderr] --> src/metrics.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::device::Device; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::device` [INFO] [stderr] --> src/state.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::device; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `be_server::device::HardDevice` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use be_server::device::HardDevice; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Device` [INFO] [stderr] --> src/metrics.rs:42:37 [INFO] [stderr] | [INFO] [stderr] 42 | use crate::device::{HardDevice, Device}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `be-server` (bin "be-server") generated 3 warnings (run `cargo fix --bin "be-server"` to apply 3 suggestions) [INFO] [stderr] warning: `be-server` (bin "be-server" test) generated 4 warnings (3 duplicates) (run `cargo fix --bin "be-server" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/be_server-7b009c88d588e27a) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test device::tests::target_as_bytes ... ok [INFO] [stdout] test device::tests::set_config_from_mongo ... ok [INFO] [stdout] test device::tests::as_json ... ok [INFO] [stdout] test device::tests::test_double_init_big_buff_2 ... ok [INFO] [stdout] test device::tests::test_id_gen ... ok [INFO] [stdout] test device::tests::test_not_enough_data_for_headers ... ok [INFO] [stdout] test device::tests::test_single_init ... ok [INFO] [stdout] test device::tests::test_single_init_big_buff ... ok [INFO] [stdout] test service_server::tests::simple_check ... ok [INFO] [stdout] test device::tests::test_telemetry_calculation ... ok [INFO] [stdout] test sqlconnector::tests::connection_string ... ok [INFO] [stdout] test device::tests::test_not_full_package ... ok [INFO] [stdout] test datacache::tests::test_cleanup ... ok [INFO] [stdout] test datacache::tests::test_capacity ... ok [INFO] [stdout] test datacache::tests::test_get_data ... ok [INFO] [stdout] test service_server::tests::multi_thread_check ... ok [INFO] [stdout] test service_server::tests::handler_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/be_server-5d102ae7bd9f25b7) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test metrics::tests::test_sending ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] Running tests/device_test.rs (/opt/rustwide/target/debug/deps/device_test-1ec8c9575bc4a16e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests be_server [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/device.rs:78:29 [INFO] [stderr] | [INFO] [stderr] 78 | let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 78 - let device_id = (informer_id * 100 + (i as u32) + 1); [INFO] [stderr] 78 + let device_id = informer_id * 100 + (i as u32) + 1; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0a8ce39d8c7f58cb2b4e7218f96bb6ed11baefa3421106ccdcbbde63a35e3740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a8ce39d8c7f58cb2b4e7218f96bb6ed11baefa3421106ccdcbbde63a35e3740", kill_on_drop: false }` [INFO] [stdout] 0a8ce39d8c7f58cb2b4e7218f96bb6ed11baefa3421106ccdcbbde63a35e3740