[INFO] cloning repository https://github.com/HOI-Devices/InfaredMotionDetector
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HOI-Devices/InfaredMotionDetector" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHOI-Devices%2FInfaredMotionDetector", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHOI-Devices%2FInfaredMotionDetector'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 54dab1424a91e2249016156d8a6b076c9e27dbb3
[INFO] checking HOI-Devices/InfaredMotionDetector against 011c518242557d21690f7936b5812318dc2fec47 for pr-159877
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHOI-Devices%2FInfaredMotionDetector" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/HOI-Devices/InfaredMotionDetector
[INFO] finished tweaking git repo https://github.com/HOI-Devices/InfaredMotionDetector
[INFO] tweaked toml for git repo https://github.com/HOI-Devices/InfaredMotionDetector written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/HOI-Devices/InfaredMotionDetector on toolchain 011c518242557d21690f7936b5812318dc2fec47
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+011c518242557d21690f7936b5812318dc2fec47" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/HOI-Devices/InfaredMotionDetector 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" "+011c518242557d21690f7936b5812318dc2fec47" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `InfaredMotionDetector` (manifest) generated 1 warning
[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 security-framework v2.3.1
[INFO] [stderr]   Downloaded security-framework-sys v2.3.0
[INFO] [stderr]   Downloaded tungstenite v0.13.0
[INFO] [stderr]   Downloaded serde_json v0.9.10
[INFO] [stderr]   Downloaded input_buffer v0.4.0
[INFO] [stderr]   Downloaded gpio v0.4.1
[INFO] [stderr]   Downloaded openssl-sys v0.9.65
[INFO] [stderr]   Downloaded serde v0.9.15
[INFO] [stderr]   Downloaded openssl v0.10.35
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1fa6594d87c8fa7b311925a7a77a16f539833322d9dfba4ce891f211db2f90b1" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751
[INFO] running `Command { std: "docker" "start" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751" "/opt/rustwide/cargo-home/bin/cargo" "+011c518242557d21690f7936b5812318dc2fec47" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751" "/opt/rustwide/cargo-home/bin/cargo" "+011c518242557d21690f7936b5812318dc2fec47" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `InfaredMotionDetector` (manifest) generated 1 warning
[INFO] [stderr]    Compiling libc v0.2.98
[INFO] [stderr]    Compiling cc v1.0.68
[INFO] [stderr]    Compiling syn v1.0.73
[INFO] [stderr]    Compiling openssl v0.10.35
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]     Checking unicode-bidi v0.3.5
[INFO] [stderr]    Compiling httparse v1.4.1
[INFO] [stderr]     Checking unicode-normalization v0.1.19
[INFO] [stderr]    Compiling native-tls v0.2.7
[INFO] [stderr]     Checking openssl-probe v0.1.4
[INFO] [stderr]     Checking input_buffer v0.4.0
[INFO] [stderr]     Checking http v0.2.4
[INFO] [stderr]     Checking sha-1 v0.9.6
[INFO] [stderr]     Checking num-traits v0.1.43
[INFO] [stderr]     Checking dtoa v0.4.8
[INFO] [stderr]     Checking itoa v0.3.4
[INFO] [stderr]     Checking serde v0.9.15
[INFO] [stderr]     Checking gpio v0.4.1
[INFO] [stderr]    Compiling openssl-sys v0.9.65
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]     Checking rand v0.8.4
[INFO] [stderr]     Checking serde_json v0.9.10
[INFO] [stderr]    Compiling thiserror-impl v1.0.26
[INFO] [stderr]     Checking thiserror v1.0.26
[INFO] [stderr]     Checking tungstenite v0.13.0
[INFO] [stderr]     Checking InfaredMotionDetector v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]  --> src/client.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]   |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/client.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/client.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/client.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/client.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GpioOut`
[INFO] [stdout]  --> src/gpio_handler.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | use gpio::{GpioIn, GpioOut,GpioValue};
[INFO] [stdout]   |                    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `client::Client`
[INFO] [stdout]  --> src/gpio_handler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use client::Client;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/gpio_handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]  --> src/gpio_handler.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]   |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: denote infinite loops with `loop { ... }`
[INFO] [stdout]   --> src/gpio_handler.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         while true{
[INFO] [stdout]    |         ^^^^^^^^^^ help: use `loop`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(while_true)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::sleep`
[INFO] [stdout]   --> src/tests.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::thread::sleep;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/tests.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message` and `WebSocket`
[INFO] [stdout]   --> src/tests.rs:13:28
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tungstenite::{connect, Message,WebSocket};
[INFO] [stdout]    |                            ^^^^^^^ ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tungstenite::client::AutoStream`
[INFO] [stdout]   --> src/tests.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tungstenite::client::AutoStream;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]   --> src/tests.rs:16:24
[INFO] [stdout]    |
[INFO] [stdout] 16 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]    |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> src/tests.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]   --> src/tests.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use serde_json::Value;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]   --> src/tests.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use std::fs;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]   --> src/tests.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::thread;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]   --> src/main.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]    |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::sleep`
[INFO] [stdout]   --> src/main.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::thread::sleep;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: denote infinite loops with `loop { ... }`
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     while true{
[INFO] [stdout]    |     ^^^^^^^^^^ help: use `loop`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]  --> src/client.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]   |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/client.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::Value`
[INFO] [stdout]  --> src/client.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use serde_json::Value;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/client.rs:123:30
[INFO] [stdout]     |
[INFO] [stdout] 123 |             let (mut socket, response) = attempt.unwrap();
[INFO] [stdout]     |                              ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `number_of_times_sensed`
[INFO] [stdout]    --> src/client.rs:217:24
[INFO] [stdout]     |
[INFO] [stdout] 217 |     fn alert(&mut self,number_of_times_sensed:&Arc<Mutex<i8>>,motion_last_sensed:&Arc<Mutex<DateTime<Utc>>>)->String{
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number_of_times_sensed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `motion_last_sensed`
[INFO] [stdout]    --> src/client.rs:217:63
[INFO] [stdout]     |
[INFO] [stdout] 217 |     fn alert(&mut self,number_of_times_sensed:&Arc<Mutex<i8>>,motion_last_sensed:&Arc<Mutex<DateTime<Utc>>>)->String{
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_motion_last_sensed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]   --> src/tests.rs:34:26
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let (mut socket, response) =connect(Url::parse(&url).unwrap()).unwrap();
[INFO] [stdout]    |                          ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]   --> src/tests.rs:48:26
[INFO] [stdout]    |
[INFO] [stdout] 48 |         let (mut socket, response) =connect(Url::parse(&url).unwrap()).unwrap();
[INFO] [stdout]    |                          ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut gpio_handler = GpioHandler::new(pin);
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let mut running = Arc::new(Mutex::new(true));
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `log_disconnection_info` and `log_no_config` are never used
[INFO] [stdout]   --> src/console_logger.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl ConsoleLogger{
[INFO] [stdout]    | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn log_disconnection_info(&mut self){
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn log_no_config(&mut self){
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/client.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/client.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GpioOut`
[INFO] [stdout]  --> src/gpio_handler.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | use gpio::{GpioIn, GpioOut,GpioValue};
[INFO] [stdout]   |                    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `client::Client`
[INFO] [stdout]  --> src/gpio_handler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use client::Client;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread`
[INFO] [stdout]  --> src/gpio_handler.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::thread;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]  --> src/gpio_handler.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]   |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: denote infinite loops with `loop { ... }`
[INFO] [stdout]   --> src/gpio_handler.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         while true{
[INFO] [stdout]    |         ^^^^^^^^^^ help: use `loop`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(while_true)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NaiveDateTime` and `TimeZone`
[INFO] [stdout]   --> src/main.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 | use chrono::{DateTime, TimeZone, NaiveDateTime, Utc};
[INFO] [stdout]    |                        ^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::sleep`
[INFO] [stdout]   --> src/main.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::thread::sleep;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: denote infinite loops with `loop { ... }`
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     while true{
[INFO] [stdout]    |     ^^^^^^^^^^ help: use `loop`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 | /             socket.write_message(
[INFO] [stdout] 160 | |                 Message::Text(
[INFO] [stdout] 161 | |                     self.formatted_basic_data(&times_sensed_data,&last_time_data)));
[INFO] [stdout]     | |___________________________________________________________________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let _ = socket.write_message(
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client.rs:202:13
[INFO] [stdout]     |
[INFO] [stdout] 202 |             socket.write_message(Message::Text(self.alert(number_of_times_sensed,motion_last_sensed)));
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 202 |             let _ = socket.write_message(Message::Text(self.alert(number_of_times_sensed,motion_last_sensed)));
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client.rs:205:13
[INFO] [stdout]     |
[INFO] [stdout] 205 |             socket.write_message(Message::Text(self.no_alert()));
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let _ = socket.write_message(Message::Text(self.no_alert()));
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `response`
[INFO] [stdout]    --> src/client.rs:123:30
[INFO] [stdout]     |
[INFO] [stdout] 123 |             let (mut socket, response) = attempt.unwrap();
[INFO] [stdout]     |                              ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `number_of_times_sensed`
[INFO] [stdout]    --> src/client.rs:217:24
[INFO] [stdout]     |
[INFO] [stdout] 217 |     fn alert(&mut self,number_of_times_sensed:&Arc<Mutex<i8>>,motion_last_sensed:&Arc<Mutex<DateTime<Utc>>>)->String{
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number_of_times_sensed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `motion_last_sensed`
[INFO] [stdout]    --> src/client.rs:217:63
[INFO] [stdout]     |
[INFO] [stdout] 217 |     fn alert(&mut self,number_of_times_sensed:&Arc<Mutex<i8>>,motion_last_sensed:&Arc<Mutex<DateTime<Utc>>>)->String{
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_motion_last_sensed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut gpio_handler = GpioHandler::new(pin);
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let mut running = Arc::new(Mutex::new(true));
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `log_disconnection_info` and `log_no_config` are never used
[INFO] [stdout]   --> src/console_logger.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl ConsoleLogger{
[INFO] [stdout]    | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 28 |     pub fn log_disconnection_info(&mut self){
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn log_no_config(&mut self){
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 | /             socket.write_message(
[INFO] [stdout] 160 | |                 Message::Text(
[INFO] [stdout] 161 | |                     self.formatted_basic_data(&times_sensed_data,&last_time_data)));
[INFO] [stdout]     | |___________________________________________________________________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let _ = socket.write_message(
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client.rs:202:13
[INFO] [stdout]     |
[INFO] [stdout] 202 |             socket.write_message(Message::Text(self.alert(number_of_times_sensed,motion_last_sensed)));
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 202 |             let _ = socket.write_message(Message::Text(self.alert(number_of_times_sensed,motion_last_sensed)));
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client.rs:205:13
[INFO] [stdout]     |
[INFO] [stdout] 205 |             socket.write_message(Message::Text(self.no_alert()));
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let _ = socket.write_message(Message::Text(self.no_alert()));
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.70s
[INFO] running `Command { std: "docker" "inspect" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751", kill_on_drop: false }`
[INFO] [stdout] 4a9421999930d22edaf8e4a647161a22a4d29a42e2328f0675e79cbffbfee751
