[INFO] fetching crate jbod 1.0.2...
[INFO] checking jbod-1.0.2 against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3
[INFO] extracting crate jbod 1.0.2 into /workspace/builds/worker-7-tc1/source
[INFO] started tweaking crates.io crate jbod 1.0.2
[INFO] finished tweaking crates.io crate jbod 1.0.2
[INFO] tweaked toml for crates.io crate jbod 1.0.2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate jbod 1.0.2 on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate jbod 1.0.2 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded execute v0.2.10
[INFO] [stderr]   Downloaded execute-command-macro-impl v0.1.7
[INFO] [stderr]   Downloaded execute-command-macro v0.1.7
[INFO] [stderr]   Downloaded libflate_lz77 v1.1.0
[INFO] [stderr]   Downloaded libflate v1.2.0
[INFO] [stderr]   Downloaded subprocess v0.2.8
[INFO] [stderr]   Downloaded execute-command-tokens v0.1.5
[INFO] [stderr]   Downloaded prometheus v0.9.0
[INFO] [stderr]   Downloaded procfs v0.7.9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b8b41a945c03d7e631794ac79c6d2e79ab74a1ba265faae5cd317eb319b4dd36
[INFO] running `Command { std: "docker" "start" "-a" "b8b41a945c03d7e631794ac79c6d2e79ab74a1ba265faae5cd317eb319b4dd36", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b8b41a945c03d7e631794ac79c6d2e79ab74a1ba265faae5cd317eb319b4dd36", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b8b41a945c03d7e631794ac79c6d2e79ab74a1ba265faae5cd317eb319b4dd36", kill_on_drop: false }`
[INFO] [stdout] b8b41a945c03d7e631794ac79c6d2e79ab74a1ba265faae5cd317eb319b4dd36
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 09540e4a1932ff5525363df9ba2453dd3c26666094b2cedcf192c37d0a2ac247
[INFO] running `Command { std: "docker" "start" "-a" "09540e4a1932ff5525363df9ba2453dd3c26666094b2cedcf192c37d0a2ac247", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.121
[INFO] [stderr]    Compiling syn v1.0.90
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling log v0.4.16
[INFO] [stderr]    Compiling quote v1.0.17
[INFO] [stderr]    Compiling serde v1.0.136
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]    Compiling httparse v1.6.0
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]     Checking unicode-normalization v0.1.19
[INFO] [stderr]    Compiling indexmap v1.8.1
[INFO] [stderr]     Checking tracing-core v0.1.23
[INFO] [stderr]    Compiling pin-project-internal v0.4.29
[INFO] [stderr]     Checking tracing v0.1.32
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking libflate_lz77 v1.1.0
[INFO] [stderr]     Checking digest v0.10.3
[INFO] [stderr]     Checking sha-1 v0.9.8
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]    Compiling protobuf v2.27.1
[INFO] [stderr]    Compiling execute-command-tokens v0.1.5
[INFO] [stderr]    Compiling serde_json v1.0.79
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking libflate v1.2.0
[INFO] [stderr]     Checking buf_redux v0.8.4
[INFO] [stderr]     Checking mime_guess v2.0.4
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking net2 v0.2.37
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking mio v0.6.23
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking tempfile v3.3.0
[INFO] [stderr]     Checking dirs v1.0.5
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking socket2 v0.3.19
[INFO] [stderr]     Checking sha-1 v0.10.0
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking twoway v0.1.8
[INFO] [stderr]     Checking http-body v0.3.1
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]    Compiling prometheus v0.9.0
[INFO] [stderr]     Checking futures-io v0.3.21
[INFO] [stderr]     Checking headers v0.3.7
[INFO] [stderr]     Checking procfs v0.7.9
[INFO] [stderr]     Checking term v0.5.2
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking futures v0.3.21
[INFO] [stderr]     Checking yaml-rust v0.3.5
[INFO] [stderr]     Checking tungstenite v0.11.1
[INFO] [stderr]     Checking multipart v0.17.1
[INFO] [stderr]     Checking encode_unicode v0.3.6
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking nix v0.22.3
[INFO] [stderr]     Checking colored v2.0.0
[INFO] [stderr]     Checking subprocess v0.2.8
[INFO] [stderr]     Checking bstr v0.2.17
[INFO] [stderr]     Checking serde_urlencoded v0.6.1
[INFO] [stderr]     Checking csv v1.1.6
[INFO] [stderr]    Compiling tokio-macros v0.2.6
[INFO] [stderr]    Compiling pin-project-internal v1.0.10
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling execute-command-macro-impl v0.1.7
[INFO] [stderr]     Checking prettytable-rs v0.8.0
[INFO] [stderr]     Checking tokio v0.2.25
[INFO] [stderr]     Checking execute-command-macro v0.1.7
[INFO] [stderr]     Checking execute v0.2.10
[INFO] [stderr]     Checking pin-project v0.4.29
[INFO] [stderr]     Checking thiserror v1.0.30
[INFO] [stderr]     Checking pin-project v1.0.10
[INFO] [stderr]     Checking tracing-futures v0.2.5
[INFO] [stderr]     Checking tokio-util v0.3.1
[INFO] [stderr]     Checking tokio-tungstenite v0.11.0
[INFO] [stderr]     Checking h2 v0.2.7
[INFO] [stderr]     Checking hyper v0.13.10
[INFO] [stderr]     Checking warp v0.2.5
[INFO] [stderr]     Checking jbod v1.0.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[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: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HistogramOpts`, `HistogramVec`, `IntCounterVec`, and `IntCounter`
[INFO] [stdout]   --> src/prometheus.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     HistogramOpts, HistogramVec, IntCounter, IntCounterVec, IntGauge, IntGaugeVec, Opts, Registry,
[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 variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[INFO] [stdout]    |                                       ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `return` value
[INFO] [stdout]   --> src/prometheus.rs:91:11
[INFO] [stdout]    |
[INFO] [stdout] 91 |     return(enclosure.len() as i64)
[INFO] [stdout]    |           ^                      ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 91 -     return(enclosure.len() as i64)
[INFO] [stdout] 91 +     return enclosure.len() as i64
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[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: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_string_numeric` is never used
[INFO] [stdout]   --> src/utils/helper.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn is_string_numeric(s: String) -> bool {
[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/main.rs:264:5
[INFO] [stdout]     |
[INFO] [stdout] 264 | /     match matches.subcommand() {
[INFO] [stdout] 265 | |         ("list", Some(m)) => enclosure_overview(m),
[INFO] [stdout] 266 | |         ("led", Some(m)) => DiskShelf::jbod_led_switch(m),
[INFO] [stdout] 267 | |         ("prometheus", Some(m)) => fork_prometheus(m),
[INFO] [stdout] 268 | |         _ => Ok(help()),
[INFO] [stdout] 269 | |     };
[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] 264 |     let _ = match matches.subcommand() {
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HistogramOpts`, `HistogramVec`, `IntCounterVec`, and `IntCounter`
[INFO] [stdout]   --> src/prometheus.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 |     HistogramOpts, HistogramVec, IntCounter, IntCounterVec, IntGauge, IntGaugeVec, Opts, Registry,
[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 imports: `Read` and `Write`
[INFO] [stdout]   --> src/jbod/enclosure.rs:34:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[INFO] [stdout]    |                                       ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Stdio`
[INFO] [stdout]   --> src/jbod/enclosure.rs:35:33
[INFO] [stdout]    |
[INFO] [stdout] 35 |     use std::process::{Command, Stdio};
[INFO] [stdout]    |                                 ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `return` value
[INFO] [stdout]   --> src/prometheus.rs:91:11
[INFO] [stdout]    |
[INFO] [stdout] 91 |     return(enclosure.len() as i64)
[INFO] [stdout]    |           ^                      ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 91 -     return(enclosure.len() as i64)
[INFO] [stdout] 91 +     return enclosure.len() as i64
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `device_path`, `device_map`, `fw_revision`, `led_locate_path`, and `led_fault_path` are never read
[INFO] [stdout]   --> src/jbod/disks.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub struct Disk {
[INFO] [stdout]    |                ---- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 51 |         pub device_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 52 |         // Disk map, example: /dev/sdcz
[INFO] [stdout] 53 |         pub device_map: String,
[INFO] [stdout]    |             ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |         pub fw_revision: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 58 |         // Path to led control file
[INFO] [stdout] 59 |         pub led_locate_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 60 |         // Path to led control file
[INFO] [stdout] 61 |         pub led_fault_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Disk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_disk_led_locate` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:197:8
[INFO] [stdout]     |
[INFO] [stdout] 197 |     fn set_disk_led_locate(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_disk_led_fault` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:242:8
[INFO] [stdout]     |
[INFO] [stdout] 242 |     fn set_disk_led_fault(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jbod_led_switch` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:418:12
[INFO] [stdout]     |
[INFO] [stdout] 418 |     pub fn jbod_led_switch(options: &ArgMatches) -> Result<(), ()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `slot` and `comment` are never read
[INFO] [stdout]   --> src/jbod/enclosure.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub struct EnclosureFan {
[INFO] [stdout]    |                ------------ fields in this struct
[INFO] [stdout] 55 |         /// The slot number provided by the JBOD
[INFO] [stdout] 56 |         pub slot: String,
[INFO] [stdout]    |             ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |         pub comment: String,
[INFO] [stdout]    |             ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EnclosureFan` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_fan_table` is never used
[INFO] [stdout]   --> src/jbod/enclosure.rs:99:12
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn create_fan_table() -> Table {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `JBOD_EXPORTER` is never used
[INFO] [stdout]   --> src/utils/helper.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub const JBOD_EXPORTER: &str = "/usr/bin/prometheus-jbod-exporter";
[INFO] [stdout]    |               ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_binary_needed` is never used
[INFO] [stdout]   --> src/utils/helper.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn verify_binary_needed() {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_string_numeric` is never used
[INFO] [stdout]   --> src/utils/helper.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 |     pub fn is_string_numeric(s: String) -> bool {
[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/main.rs:264:5
[INFO] [stdout]     |
[INFO] [stdout] 264 | /     match matches.subcommand() {
[INFO] [stdout] 265 | |         ("list", Some(m)) => enclosure_overview(m),
[INFO] [stdout] 266 | |         ("led", Some(m)) => DiskShelf::jbod_led_switch(m),
[INFO] [stdout] 267 | |         ("prometheus", Some(m)) => fork_prometheus(m),
[INFO] [stdout] 268 | |         _ => Ok(help()),
[INFO] [stdout] 269 | |     };
[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] 264 |     let _ = match matches.subcommand() {
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/jbod/enclosure.rs:125:23
[INFO] [stdout]     |
[INFO] [stdout] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stdout]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `device_path`, `device_map`, `fw_revision`, `led_locate_path`, and `led_fault_path` are never read
[INFO] [stdout]   --> src/jbod/disks.rs:51:13
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub struct Disk {
[INFO] [stdout]    |                ---- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 51 |         pub device_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 52 |         // Disk map, example: /dev/sdcz
[INFO] [stdout] 53 |         pub device_map: String,
[INFO] [stdout]    |             ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |         pub fw_revision: String,
[INFO] [stdout]    |             ^^^^^^^^^^^
[INFO] [stdout] 58 |         // Path to led control file
[INFO] [stdout] 59 |         pub led_locate_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 60 |         // Path to led control file
[INFO] [stdout] 61 |         pub led_fault_path: String,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Disk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_disk_led_locate` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:197:8
[INFO] [stdout]     |
[INFO] [stdout] 197 |     fn set_disk_led_locate(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_disk_led_fault` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:242:8
[INFO] [stdout]     |
[INFO] [stdout] 242 |     fn set_disk_led_fault(disk: String, option: &str) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `jbod_led_switch` is never used
[INFO] [stdout]    --> src/jbod/disks.rs:418:12
[INFO] [stdout]     |
[INFO] [stdout] 418 |     pub fn jbod_led_switch(options: &ArgMatches) -> Result<(), ()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `slot` and `comment` are never read
[INFO] [stdout]   --> src/jbod/enclosure.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub struct EnclosureFan {
[INFO] [stdout]    |                ------------ fields in this struct
[INFO] [stdout] 55 |         /// The slot number provided by the JBOD
[INFO] [stdout] 56 |         pub slot: String,
[INFO] [stdout]    |             ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 67 |         pub comment: String,
[INFO] [stdout]    |             ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `EnclosureFan` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_fan_table` is never used
[INFO] [stdout]   --> src/jbod/enclosure.rs:99:12
[INFO] [stdout]    |
[INFO] [stdout] 99 |     pub fn create_fan_table() -> Table {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `JBOD_EXPORTER` is never used
[INFO] [stdout]   --> src/utils/helper.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub const JBOD_EXPORTER: &str = "/usr/bin/prometheus-jbod-exporter";
[INFO] [stdout]    |               ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_binary_needed` is never used
[INFO] [stdout]   --> src/utils/helper.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn verify_binary_needed() {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:204:69
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stdout]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/jbod/disks.rs:249:68
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stdout]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.00s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.17.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 20`
[INFO] running `Command { std: "docker" "inspect" "09540e4a1932ff5525363df9ba2453dd3c26666094b2cedcf192c37d0a2ac247", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "09540e4a1932ff5525363df9ba2453dd3c26666094b2cedcf192c37d0a2ac247", kill_on_drop: false }`
[INFO] [stdout] 09540e4a1932ff5525363df9ba2453dd3c26666094b2cedcf192c37d0a2ac247
