[INFO] cloning repository https://github.com/vmasdani/twiot-gateway [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vmasdani/twiot-gateway" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvmasdani%2Ftwiot-gateway", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvmasdani%2Ftwiot-gateway'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24199b5cffeb3ed4f8daca9a2becdb63e33beb38 [INFO] testing vmasdani/twiot-gateway against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvmasdani%2Ftwiot-gateway" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vmasdani/twiot-gateway on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vmasdani/twiot-gateway [INFO] finished tweaking git repo https://github.com/vmasdani/twiot-gateway [INFO] tweaked toml for git repo https://github.com/vmasdani/twiot-gateway written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/vmasdani/twiot-gateway already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 318d441c01c22bc7532e98b75d42bc2fd31c85d5346a017c4d42eb83b76898c3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "318d441c01c22bc7532e98b75d42bc2fd31c85d5346a017c4d42eb83b76898c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "318d441c01c22bc7532e98b75d42bc2fd31c85d5346a017c4d42eb83b76898c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "318d441c01c22bc7532e98b75d42bc2fd31c85d5346a017c4d42eb83b76898c3", kill_on_drop: false }` [INFO] [stdout] 318d441c01c22bc7532e98b75d42bc2fd31c85d5346a017c4d42eb83b76898c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 18042f65275f0507b0cf937acfadc81c959aa699aa0c5593dd37b9c0fd78b20a [INFO] running `Command { std: "docker" "start" "-a" "18042f65275f0507b0cf937acfadc81c959aa699aa0c5593dd37b9c0fd78b20a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling futures-core v0.3.7 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling futures-sink v0.3.7 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling futures-io v0.3.7 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling tinyvec v0.3.4 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling object v0.21.1 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.20 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Compiling weezl v0.1.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling bitflags v0.3.3 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling ssd1306 v0.3.1 [INFO] [stderr] Compiling checked_int_cast v1.0.0 [INFO] [stderr] Compiling pollster v0.2.0 [INFO] [stderr] Compiling bytemuck v1.4.1 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling machine-ip v0.2.1 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling instant v0.1.8 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling futures-channel v0.3.7 [INFO] [stderr] Compiling futures-task v0.3.7 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling mqtt4bytes v0.3.0 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Compiling cookie v0.14.2 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.1 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling tinyvec v1.0.1 [INFO] [stderr] Compiling qrcode v0.8.0 [INFO] [stderr] Compiling gif v0.11.1 [INFO] [stderr] Compiling libsqlite3-sys v0.18.0 [INFO] [stderr] Compiling embedded-hal v0.2.4 [INFO] [stderr] Compiling async-channel v1.5.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling signal-hook-registry v1.2.1 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling embedded-graphics v0.6.2 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling nix v0.6.0 [INFO] [stderr] Compiling aho-corasick v0.7.14 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling backtrace v0.3.53 [INFO] [stderr] Compiling flate2 v1.0.18 [INFO] [stderr] Compiling crossbeam-epoch v0.9.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling regex v1.4.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling sha-1 v0.9.1 [INFO] [stderr] Compiling gpio-cdev v0.2.0 [INFO] [stderr] Compiling sysfs_gpio v0.5.4 [INFO] [stderr] Compiling i2cdev v0.4.4 [INFO] [stderr] Compiling wifiscanner v0.5.1 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling spidev v0.3.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling rustls v0.18.1 [INFO] [stderr] Compiling linux-embedded-hal v0.2.2 [INFO] [stderr] Compiling wifi-rs v0.2.0 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling tiff v0.6.0 [INFO] [stderr] Compiling image v0.23.11 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.7 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling thiserror v1.0.21 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling pin-project v1.0.1 [INFO] [stderr] Compiling futures-util v0.3.7 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling diesel v1.4.5 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.14.1 [INFO] [stderr] Compiling rumqttc v0.2.0 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures-executor v0.3.7 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures v0.3.7 [INFO] [stderr] Compiling trust-dns-proto v0.19.5 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling actix-router v0.2.5 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.5 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling actix-http v2.1.0 [INFO] [stderr] Compiling awc v2.0.1 [INFO] [stderr] Compiling migrations_internals v1.4.1 [INFO] [stderr] Compiling actix-web v3.2.0 [INFO] [stderr] Compiling migrations_macros v1.4.2 [INFO] [stderr] Compiling diesel_migrations v1.4.0 [INFO] [stderr] Compiling twiot-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `id` [INFO] [stdout] --> src/handler.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | use crate::schema::watering_times::dsl::{id, watering_times}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::result::Error` [INFO] [stdout] --> src/db.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | use diesel::result::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` in tuple element 2 that must be used [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / tokio::join!( [INFO] [stdout] 35 | | ip_check::run_loop(), [INFO] [stdout] 36 | | mqtt::listen(conn_arc, client_arc, &mut eventloop), [INFO] [stdout] 37 | | serve::run_actix() [INFO] [stdout] 38 | | ); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | / client [INFO] [stdout] 24 | | .publish( [INFO] [stdout] 25 | | "schedules/res", [INFO] [stdout] 26 | | rumqttc::QoS::AtLeastOnce, [INFO] [stdout] ... | [INFO] [stdout] 29 | | ) [INFO] [stdout] 30 | | .await; [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | / diesel::replace_into(schedules) [INFO] [stdout] 50 | | .values(&schedule) [INFO] [stdout] 51 | | .execute(&*conn); [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idBody` should have a snake case name [INFO] [stdout] --> src/handler.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let idBody = serde_json::from_str::(payload.as_str()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `id_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idBody` should have a snake case name [INFO] [stdout] --> src/handler.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | Ok(idBody) => { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `id_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | diesel::delete(schedules.filter(id.eq(idBody.id))).execute(&*conn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | / client [INFO] [stdout] 94 | | .publish( [INFO] [stdout] 95 | | "watering_time/res", [INFO] [stdout] 96 | | rumqttc::QoS::AtLeastOnce, [INFO] [stdout] ... | [INFO] [stdout] 99 | | ) [INFO] [stdout] 100 | | .await; [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/db.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | / diesel::insert_into(watering_times) [INFO] [stdout] 36 | | .values(&new_watering_time) [INFO] [stdout] 37 | | .execute(connection); [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/db.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | diesel::insert_into(schedules).values(&new_schedule).execute(connection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/db.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | diesel::replace_into(device_types).values(&new_device_type).execute(connection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 02s [INFO] running `Command { std: "docker" "inspect" "18042f65275f0507b0cf937acfadc81c959aa699aa0c5593dd37b9c0fd78b20a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18042f65275f0507b0cf937acfadc81c959aa699aa0c5593dd37b9c0fd78b20a", kill_on_drop: false }` [INFO] [stdout] 18042f65275f0507b0cf937acfadc81c959aa699aa0c5593dd37b9c0fd78b20a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 741f491fcbdd3406bac9c2bd2887c1ff0fac072990412705efc50bfa9b45e12c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "741f491fcbdd3406bac9c2bd2887c1ff0fac072990412705efc50bfa9b45e12c", kill_on_drop: false }` [INFO] [stderr] Compiling twiot-gateway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `id` [INFO] [stdout] --> src/handler.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | use crate::schema::watering_times::dsl::{id, watering_times}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/router.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::result::Error` [INFO] [stdout] --> src/db.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | use diesel::result::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` in tuple element 2 that must be used [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / tokio::join!( [INFO] [stdout] 35 | | ip_check::run_loop(), [INFO] [stdout] 36 | | mqtt::listen(conn_arc, client_arc, &mut eventloop), [INFO] [stdout] 37 | | serve::run_actix() [INFO] [stdout] 38 | | ); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | / client [INFO] [stdout] 24 | | .publish( [INFO] [stdout] 25 | | "schedules/res", [INFO] [stdout] 26 | | rumqttc::QoS::AtLeastOnce, [INFO] [stdout] ... | [INFO] [stdout] 29 | | ) [INFO] [stdout] 30 | | .await; [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | / diesel::replace_into(schedules) [INFO] [stdout] 50 | | .values(&schedule) [INFO] [stdout] 51 | | .execute(&*conn); [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idBody` should have a snake case name [INFO] [stdout] --> src/handler.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let idBody = serde_json::from_str::(payload.as_str()); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `id_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `idBody` should have a snake case name [INFO] [stdout] --> src/handler.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | Ok(idBody) => { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `id_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | diesel::delete(schedules.filter(id.eq(idBody.id))).execute(&*conn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/handler.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | / client [INFO] [stdout] 94 | | .publish( [INFO] [stdout] 95 | | "watering_time/res", [INFO] [stdout] 96 | | rumqttc::QoS::AtLeastOnce, [INFO] [stdout] ... | [INFO] [stdout] 99 | | ) [INFO] [stdout] 100 | | .await; [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/db.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | / diesel::insert_into(watering_times) [INFO] [stdout] 36 | | .values(&new_watering_time) [INFO] [stdout] 37 | | .execute(connection); [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/db.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | diesel::insert_into(schedules).values(&new_schedule).execute(connection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/db.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | diesel::replace_into(device_types).values(&new_device_type).execute(connection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.07s [INFO] running `Command { std: "docker" "inspect" "741f491fcbdd3406bac9c2bd2887c1ff0fac072990412705efc50bfa9b45e12c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "741f491fcbdd3406bac9c2bd2887c1ff0fac072990412705efc50bfa9b45e12c", kill_on_drop: false }` [INFO] [stdout] 741f491fcbdd3406bac9c2bd2887c1ff0fac072990412705efc50bfa9b45e12c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 64b2ec5f0e7c38e999c3e9bc12d917f049066cbd370fcd6f6c32f61e5d35ddf0 [INFO] running `Command { std: "docker" "start" "-a" "64b2ec5f0e7c38e999c3e9bc12d917f049066cbd370fcd6f6c32f61e5d35ddf0", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `id` [INFO] [stderr] --> src/handler.rs:81:46 [INFO] [stderr] | [INFO] [stderr] 81 | use crate::schema::watering_times::dsl::{id, watering_times}; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/router.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::result::Error` [INFO] [stderr] --> src/db.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | use diesel::result::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` in tuple element 2 that must be used [INFO] [stderr] --> src/main.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | / tokio::join!( [INFO] [stderr] 35 | | ip_check::run_loop(), [INFO] [stderr] 36 | | mqtt::listen(conn_arc, client_arc, &mut eventloop), [INFO] [stderr] 37 | | serve::run_actix() [INFO] [stderr] 38 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/handler.rs:23:17 [INFO] [stderr] | [INFO] [stderr] 23 | / client [INFO] [stderr] 24 | | .publish( [INFO] [stderr] 25 | | "schedules/res", [INFO] [stderr] 26 | | rumqttc::QoS::AtLeastOnce, [INFO] [stderr] ... | [INFO] [stderr] 29 | | ) [INFO] [stderr] 30 | | .await; [INFO] [stderr] | |___________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/handler.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | / diesel::replace_into(schedules) [INFO] [stderr] 50 | | .values(&schedule) [INFO] [stderr] 51 | | .execute(&*conn); [INFO] [stderr] | |_____________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: variable `idBody` should have a snake case name [INFO] [stderr] --> src/handler.rs:57:9 [INFO] [stderr] | [INFO] [stderr] 57 | let idBody = serde_json::from_str::(payload.as_str()); [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `id_body` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `idBody` should have a snake case name [INFO] [stderr] --> src/handler.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 60 | Ok(idBody) => { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `id_body` [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/handler.rs:65:13 [INFO] [stderr] | [INFO] [stderr] 65 | diesel::delete(schedules.filter(id.eq(idBody.id))).execute(&*conn); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/handler.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | / client [INFO] [stderr] 94 | | .publish( [INFO] [stderr] 95 | | "watering_time/res", [INFO] [stderr] 96 | | rumqttc::QoS::AtLeastOnce, [INFO] [stderr] ... | [INFO] [stderr] 99 | | ) [INFO] [stderr] 100 | | .await; [INFO] [stderr] | |_______________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/db.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | / diesel::insert_into(watering_times) [INFO] [stderr] 36 | | .values(&new_watering_time) [INFO] [stderr] 37 | | .execute(connection); [INFO] [stderr] | |_____________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/db.rs:59:13 [INFO] [stderr] | [INFO] [stderr] 59 | diesel::insert_into(schedules).values(&new_schedule).execute(connection); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/db.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | diesel::replace_into(device_types).values(&new_device_type).execute(connection); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: 13 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.50s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/twiot_gateway-0f2b09f7918ef8e9 [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "64b2ec5f0e7c38e999c3e9bc12d917f049066cbd370fcd6f6c32f61e5d35ddf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64b2ec5f0e7c38e999c3e9bc12d917f049066cbd370fcd6f6c32f61e5d35ddf0", kill_on_drop: false }` [INFO] [stdout] 64b2ec5f0e7c38e999c3e9bc12d917f049066cbd370fcd6f6c32f61e5d35ddf0