[INFO] cloning repository https://github.com/Camerooooon/unpoweroutter
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Camerooooon/unpoweroutter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCamerooooon%2Funpoweroutter", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCamerooooon%2Funpoweroutter'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dd06b45224afc703795f1134d3969881ac505eef
[INFO] building Camerooooon/unpoweroutter against try#334963c956d25708feab489a3816ae63f639355d for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCamerooooon%2Funpoweroutter" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Camerooooon/unpoweroutter on toolchain 334963c956d25708feab489a3816ae63f639355d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Camerooooon/unpoweroutter
[INFO] finished tweaking git repo https://github.com/Camerooooon/unpoweroutter
[INFO] tweaked toml for git repo https://github.com/Camerooooon/unpoweroutter written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/Camerooooon/unpoweroutter 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b6adf65cdec557b1f404c091ededd563fe5eb40debde5f288ab9da085c350c17
[INFO] running `Command { std: "docker" "start" "-a" "b6adf65cdec557b1f404c091ededd563fe5eb40debde5f288ab9da085c350c17", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b6adf65cdec557b1f404c091ededd563fe5eb40debde5f288ab9da085c350c17", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b6adf65cdec557b1f404c091ededd563fe5eb40debde5f288ab9da085c350c17", kill_on_drop: false }`
[INFO] [stdout] b6adf65cdec557b1f404c091ededd563fe5eb40debde5f288ab9da085c350c17
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 995067df5136ba7a3d318a6ca5dd073579648ec7e130770f6004c9f02cd6cedb
[INFO] running `Command { std: "docker" "start" "-a" "995067df5136ba7a3d318a6ca5dd073579648ec7e130770f6004c9f02cd6cedb", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.28
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.74
[INFO] [stderr]    Compiling serde_derive v1.0.126
[INFO] [stderr]    Compiling serde v1.0.126
[INFO] [stderr]    Compiling futures-core v0.3.16
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling memchr v2.4.0
[INFO] [stderr]    Compiling libc v0.2.98
[INFO] [stderr]    Compiling proc-macro-hack v0.5.19
[INFO] [stderr]    Compiling futures-task v0.3.16
[INFO] [stderr]    Compiling proc-macro-nested v0.1.7
[INFO] [stderr]    Compiling futures-io v0.3.16
[INFO] [stderr]    Compiling futures-channel v0.3.16
[INFO] [stderr]    Compiling pin-project-lite v0.2.7
[INFO] [stderr]    Compiling slab v0.4.3
[INFO] [stderr]    Compiling futures-sink v0.3.16
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling waker-fn v1.1.0
[INFO] [stderr]    Compiling cache-padded v1.1.1
[INFO] [stderr]    Compiling parking v2.0.0
[INFO] [stderr]    Compiling nix v0.17.0
[INFO] [stderr]    Compiling fastrand v1.5.0
[INFO] [stderr]    Compiling once_cell v1.8.0
[INFO] [stderr]    Compiling concurrent-queue v1.2.2
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling static_assertions v1.1.0
[INFO] [stderr]    Compiling void v1.0.2
[INFO] [stderr]    Compiling scoped-tls v1.0.0
[INFO] [stderr]    Compiling system_shutdown v3.0.0
[INFO] [stderr]    Compiling futures-macro v0.3.16
[INFO] [stderr]    Compiling futures-util v0.3.16
[INFO] [stderr]    Compiling futures-lite v1.12.0
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling socket2 v0.4.0
[INFO] [stderr]    Compiling polling v2.1.0
[INFO] [stderr]    Compiling async-io v1.6.0
[INFO] [stderr]    Compiling nb-connect v1.2.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.26
[INFO] [stderr]    Compiling enumflags2_derive v0.6.4
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling serde_repr v0.1.7
[INFO] [stderr]    Compiling thiserror v1.0.26
[INFO] [stderr]    Compiling futures-executor v0.3.16
[INFO] [stderr]    Compiling futures v0.3.16
[INFO] [stderr]    Compiling toml v0.5.8
[INFO] [stderr]    Compiling enumflags2 v0.6.4
[INFO] [stderr]    Compiling proc-macro-crate v1.0.0
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling zbus_macros v1.9.1
[INFO] [stderr]    Compiling zvariant_derive v2.7.0
[INFO] [stderr]    Compiling zvariant v2.7.0
[INFO] [stderr]    Compiling zbus v1.9.1
[INFO] [stderr]    Compiling notify-rust v4.5.2
[INFO] [stderr]    Compiling unpoweroutter v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `BufRead`
[INFO] [stdout]  --> src/main.rs:6:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{stdin, BufRead, Read};
[INFO] [stdout]   |                      ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process::Command`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::process::Command;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SHUTTING_DOWN` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 |     SHUTTING_DOWN,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ShuttingDown`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression
[INFO] [stdout]    --> src/main.rs:133:26
[INFO] [stdout]     |
[INFO] [stdout] 133 |             .icon({match (seconds_to_shutdown % 2 == 0) {
[INFO] [stdout]     |                          ^                            ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 133 -             .icon({match (seconds_to_shutdown % 2 == 0) {
[INFO] [stdout] 133 +             .icon({match seconds_to_shutdown % 2 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:141:12
[INFO] [stdout]     |
[INFO] [stdout] 141 |         if (i <= 0) {
[INFO] [stdout]     |            ^      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 141 -         if (i <= 0) {
[INFO] [stdout] 141 +         if i <= 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rxx`
[INFO] [stdout]   --> src/main.rs:31:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let (txx, rxx) = mpsc::channel(); // Default initialisation
[INFO] [stdout]    |               ^^^ help: if this is intentional, prefix it with an underscore: `_rxx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:36:16
[INFO] [stdout]    |
[INFO] [stdout] 36 |             Ok(mut p) => {
[INFO] [stdout]    |                ----^
[INFO] [stdout]    |                |
[INFO] [stdout]    |                help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |                     Ok(mut on_ac) => {
[INFO] [stdout]    |                        ----^^^^^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]    --> src/main.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut line = String::new();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `stdin`
[INFO] [stdout]    --> src/main.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |     let stdin = stdin();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:159:9
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut line = String::new();
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:43:33
[INFO] [stdout]    |
[INFO] [stdout] 43 | / ...                   Notification::new()
[INFO] [stdout] 44 | | ...                       .summary("Computer is now on battery power")
[INFO] [stdout] 45 | | ...                       .appname("Battery")
[INFO] [stdout] 46 | | ...                       .urgency(Urgency::Normal)
[INFO] [stdout] 47 | | ...                       .timeout(6900)
[INFO] [stdout] 48 | | ...                       .show();
[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)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 43 |                                 let _ = Notification::new()
[INFO] [stdout]    |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:53:29
[INFO] [stdout]    |
[INFO] [stdout] 53 | / ...                   Notification::new()
[INFO] [stdout] 54 | | ...                       .summary("Battery Management")
[INFO] [stdout] 55 | | ...                       .body("Warning battery charge is critical!")
[INFO] [stdout] 56 | | ...                       .appname("Battery")
[INFO] [stdout] 57 | | ...                       .urgency(Urgency::Critical)
[INFO] [stdout] 58 | | ...                       .show();
[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] 53 |                             let _ = Notification::new()
[INFO] [stdout]    |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:63:29
[INFO] [stdout]    |
[INFO] [stdout] 63 | / ...                   Notification::new()
[INFO] [stdout] 64 | | ...                       .summary("Battery Management")
[INFO] [stdout] 65 | | ...                       .body("Warning battery charge is low!")
[INFO] [stdout] 66 | | ...                       .appname("Battery")
[INFO] [stdout] 67 | | ...                       .urgency(Urgency::Critical)
[INFO] [stdout] 68 | | ...                       .timeout(9000)
[INFO] [stdout] 69 | | ...                       .show();
[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] 63 |                             let _ = Notification::new()
[INFO] [stdout]    |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:87:33
[INFO] [stdout]    |
[INFO] [stdout] 87 | ...                   tx.send(());
[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] 87 |                                 let _ = tx.send(());
[INFO] [stdout]    |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:92:33
[INFO] [stdout]    |
[INFO] [stdout] 92 | / ...                   Notification::new()
[INFO] [stdout] 93 | | ...                       .summary("Computer is now on AC power")
[INFO] [stdout] 94 | | ...                       .appname("Battery")
[INFO] [stdout] 95 | | ...                       .urgency(Urgency::Normal)
[INFO] [stdout] 96 | | ...                       .timeout(6900)
[INFO] [stdout] 97 | | ...                       .show();
[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] 92 |                                 let _ = Notification::new()
[INFO] [stdout]    |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:124:9
[INFO] [stdout]     |
[INFO] [stdout] 124 | /         Notification::new()
[INFO] [stdout] 125 | |             .summary("Battery Management")
[INFO] [stdout] 126 | |             .body(&format!(
[INFO] [stdout] 127 | |                 "Shutdown imminent in {} seconds to prevent damage to battery",
[INFO] [stdout] ...   |
[INFO] [stdout] 138 | |             .timeout(1008)
[INFO] [stdout] 139 | |             .show();
[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] 124 |         let _ = Notification::new()
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.49s
[INFO] running `Command { std: "docker" "inspect" "995067df5136ba7a3d318a6ca5dd073579648ec7e130770f6004c9f02cd6cedb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "995067df5136ba7a3d318a6ca5dd073579648ec7e130770f6004c9f02cd6cedb", kill_on_drop: false }`
[INFO] [stdout] 995067df5136ba7a3d318a6ca5dd073579648ec7e130770f6004c9f02cd6cedb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3aa5f26d14e2c93f57270cac71d2f07f7e081bc8c6efa0c7b49632393c0b8d65
[INFO] running `Command { std: "docker" "start" "-a" "3aa5f26d14e2c93f57270cac71d2f07f7e081bc8c6efa0c7b49632393c0b8d65", kill_on_drop: false }`
[INFO] [stderr]    Compiling unpoweroutter v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `BufRead`
[INFO] [stdout]  --> src/main.rs:6:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io::{stdin, BufRead, Read};
[INFO] [stdout]   |                      ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process::Command`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::process::Command;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SHUTTING_DOWN` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 |     SHUTTING_DOWN,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ShuttingDown`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression
[INFO] [stdout]    --> src/main.rs:133:26
[INFO] [stdout]     |
[INFO] [stdout] 133 |             .icon({match (seconds_to_shutdown % 2 == 0) {
[INFO] [stdout]     |                          ^                            ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 133 -             .icon({match (seconds_to_shutdown % 2 == 0) {
[INFO] [stdout] 133 +             .icon({match seconds_to_shutdown % 2 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:141:12
[INFO] [stdout]     |
[INFO] [stdout] 141 |         if (i <= 0) {
[INFO] [stdout]     |            ^      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 141 -         if (i <= 0) {
[INFO] [stdout] 141 +         if i <= 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rxx`
[INFO] [stdout]   --> src/main.rs:31:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let (txx, rxx) = mpsc::channel(); // Default initialisation
[INFO] [stdout]    |               ^^^ help: if this is intentional, prefix it with an underscore: `_rxx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:36:16
[INFO] [stdout]    |
[INFO] [stdout] 36 |             Ok(mut p) => {
[INFO] [stdout]    |                ----^
[INFO] [stdout]    |                |
[INFO] [stdout]    |                help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:38:24
[INFO] [stdout]    |
[INFO] [stdout] 38 |                     Ok(mut on_ac) => {
[INFO] [stdout]    |                        ----^^^^^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `line`
[INFO] [stdout]    --> src/main.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut line = String::new();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_line`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `stdin`
[INFO] [stdout]    --> src/main.rs:160:9
[INFO] [stdout]     |
[INFO] [stdout] 160 |     let stdin = stdin();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_stdin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:159:9
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut line = String::new();
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:43:33
[INFO] [stdout]    |
[INFO] [stdout] 43 | / ...                   Notification::new()
[INFO] [stdout] 44 | | ...                       .summary("Computer is now on battery power")
[INFO] [stdout] 45 | | ...                       .appname("Battery")
[INFO] [stdout] 46 | | ...                       .urgency(Urgency::Normal)
[INFO] [stdout] 47 | | ...                       .timeout(6900)
[INFO] [stdout] 48 | | ...                       .show();
[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)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 43 |                                 let _ = Notification::new()
[INFO] [stdout]    |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:53:29
[INFO] [stdout]    |
[INFO] [stdout] 53 | / ...                   Notification::new()
[INFO] [stdout] 54 | | ...                       .summary("Battery Management")
[INFO] [stdout] 55 | | ...                       .body("Warning battery charge is critical!")
[INFO] [stdout] 56 | | ...                       .appname("Battery")
[INFO] [stdout] 57 | | ...                       .urgency(Urgency::Critical)
[INFO] [stdout] 58 | | ...                       .show();
[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] 53 |                             let _ = Notification::new()
[INFO] [stdout]    |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:63:29
[INFO] [stdout]    |
[INFO] [stdout] 63 | / ...                   Notification::new()
[INFO] [stdout] 64 | | ...                       .summary("Battery Management")
[INFO] [stdout] 65 | | ...                       .body("Warning battery charge is low!")
[INFO] [stdout] 66 | | ...                       .appname("Battery")
[INFO] [stdout] 67 | | ...                       .urgency(Urgency::Critical)
[INFO] [stdout] 68 | | ...                       .timeout(9000)
[INFO] [stdout] 69 | | ...                       .show();
[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] 63 |                             let _ = Notification::new()
[INFO] [stdout]    |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:87:33
[INFO] [stdout]    |
[INFO] [stdout] 87 | ...                   tx.send(());
[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] 87 |                                 let _ = tx.send(());
[INFO] [stdout]    |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:92:33
[INFO] [stdout]    |
[INFO] [stdout] 92 | / ...                   Notification::new()
[INFO] [stdout] 93 | | ...                       .summary("Computer is now on AC power")
[INFO] [stdout] 94 | | ...                       .appname("Battery")
[INFO] [stdout] 95 | | ...                       .urgency(Urgency::Normal)
[INFO] [stdout] 96 | | ...                       .timeout(6900)
[INFO] [stdout] 97 | | ...                       .show();
[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] 92 |                                 let _ = Notification::new()
[INFO] [stdout]    |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:124:9
[INFO] [stdout]     |
[INFO] [stdout] 124 | /         Notification::new()
[INFO] [stdout] 125 | |             .summary("Battery Management")
[INFO] [stdout] 126 | |             .body(&format!(
[INFO] [stdout] 127 | |                 "Shutdown imminent in {} seconds to prevent damage to battery",
[INFO] [stdout] ...   |
[INFO] [stdout] 138 | |             .timeout(1008)
[INFO] [stdout] 139 | |             .show();
[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] 124 |         let _ = Notification::new()
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s
[INFO] running `Command { std: "docker" "inspect" "3aa5f26d14e2c93f57270cac71d2f07f7e081bc8c6efa0c7b49632393c0b8d65", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3aa5f26d14e2c93f57270cac71d2f07f7e081bc8c6efa0c7b49632393c0b8d65", kill_on_drop: false }`
[INFO] [stdout] 3aa5f26d14e2c93f57270cac71d2f07f7e081bc8c6efa0c7b49632393c0b8d65
