[INFO] fetching crate jbod 1.0.2...
[INFO] testing jbod-1.0.2 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] extracting crate jbod 1.0.2 into /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate jbod 1.0.2 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pin-project-internal v1.0.10
[INFO] [stderr]   Downloaded urlencoding v1.3.3
[INFO] [stderr]   Downloaded multipart v0.17.1
[INFO] [stderr]   Downloaded execute-command-macro-impl v0.1.7
[INFO] [stderr]   Downloaded pin-project-internal v0.4.29
[INFO] [stderr]   Downloaded libflate v1.2.0
[INFO] [stderr]   Downloaded crossbeam-utils v0.8.8
[INFO] [stderr]   Downloaded rle-decode-fast v1.0.3
[INFO] [stderr]   Downloaded procfs v0.7.9
[INFO] [stderr]   Downloaded headers v0.3.7
[INFO] [stderr]   Downloaded warp v0.2.5
[INFO] [stderr]   Downloaded prometheus v0.9.0
[INFO] [stderr]   Downloaded subprocess v0.2.8
[INFO] [stderr]   Downloaded tungstenite v0.11.1
[INFO] [stderr]   Downloaded pin-project v0.4.29
[INFO] [stderr]   Downloaded tokio-tungstenite v0.11.0
[INFO] [stderr]   Downloaded sha-1 v0.10.0
[INFO] [stderr]   Downloaded execute-command-macro v0.1.7
[INFO] [stderr]   Downloaded execute-command-tokens v0.1.5
[INFO] [stderr]   Downloaded execute v0.2.10
[INFO] [stderr]   Downloaded libflate_lz77 v1.1.0
[INFO] [stderr]   Downloaded pin-project v1.0.10
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 234b7ce506c68601e30ff4fe03fb9a03f01061f5f7b811f53c67fa30a9753caa
[INFO] running `Command { std: "docker" "start" "-a" "234b7ce506c68601e30ff4fe03fb9a03f01061f5f7b811f53c67fa30a9753caa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "234b7ce506c68601e30ff4fe03fb9a03f01061f5f7b811f53c67fa30a9753caa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "234b7ce506c68601e30ff4fe03fb9a03f01061f5f7b811f53c67fa30a9753caa", kill_on_drop: false }`
[INFO] [stdout] 234b7ce506c68601e30ff4fe03fb9a03f01061f5f7b811f53c67fa30a9753caa
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc5910c2596b4282f8368d2d60b7bb56602e89f3044c06f42d6377b97524a4d1
[INFO] running `Command { std: "docker" "start" "-a" "cc5910c2596b4282f8368d2d60b7bb56602e89f3044c06f42d6377b97524a4d1", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.121
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.90
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling typenum v1.15.0
[INFO] [stderr]    Compiling generic-array v0.14.5
[INFO] [stderr]    Compiling log v0.4.16
[INFO] [stderr]    Compiling bytes v0.5.6
[INFO] [stderr]    Compiling slab v0.4.5
[INFO] [stderr]    Compiling bytes v1.1.0
[INFO] [stderr]    Compiling serde v1.0.136
[INFO] [stderr]    Compiling pin-project-lite v0.2.8
[INFO] [stderr]    Compiling tinyvec v1.5.1
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]    Compiling quote v1.0.17
[INFO] [stderr]    Compiling matches v0.1.9
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling http v0.2.6
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling httparse v1.6.0
[INFO] [stderr]    Compiling cpufeatures v0.2.2
[INFO] [stderr]    Compiling pin-project-lite v0.1.12
[INFO] [stderr]    Compiling percent-encoding v2.1.0
[INFO] [stderr]    Compiling unicode-bidi v0.3.7
[INFO] [stderr]    Compiling form_urlencoded v1.0.1
[INFO] [stderr]    Compiling iovec v0.1.4
[INFO] [stderr]    Compiling net2 v0.2.37
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling unicode-normalization v0.1.19
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling mio v0.6.23
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling indexmap v1.8.1
[INFO] [stderr]    Compiling tracing-core v0.1.23
[INFO] [stderr]    Compiling pin-project-internal v0.4.29
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling url v2.2.2
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]    Compiling tracing v0.1.32
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling block-buffer v0.10.2
[INFO] [stderr]    Compiling crypto-common v0.1.3
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling mime v0.3.16
[INFO] [stderr]    Compiling rle-decode-fast v1.0.3
[INFO] [stderr]    Compiling libflate_lz77 v1.1.0
[INFO] [stderr]    Compiling sha-1 v0.9.8
[INFO] [stderr]    Compiling digest v0.10.3
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling input_buffer v0.3.1
[INFO] [stderr]    Compiling memoffset v0.6.5
[INFO] [stderr]    Compiling protobuf v2.27.1
[INFO] [stderr]    Compiling base64 v0.12.3
[INFO] [stderr]    Compiling serde_json v1.0.79
[INFO] [stderr]    Compiling execute-command-tokens v0.1.5
[INFO] [stderr]    Compiling try-lock v0.2.3
[INFO] [stderr]    Compiling fastrand v1.7.0
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling remove_dir_all v0.5.3
[INFO] [stderr]    Compiling tungstenite v0.11.1
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling tempfile v3.3.0
[INFO] [stderr]    Compiling libflate v1.2.0
[INFO] [stderr]    Compiling buf_redux v0.8.4
[INFO] [stderr]    Compiling sha-1 v0.10.0
[INFO] [stderr]    Compiling bstr v0.2.17
[INFO] [stderr]    Compiling headers-core v0.2.0
[INFO] [stderr]    Compiling http-body v0.3.1
[INFO] [stderr]    Compiling socket2 v0.3.19
[INFO] [stderr]    Compiling dirs v1.0.5
[INFO] [stderr]    Compiling tokio-macros v0.2.6
[INFO] [stderr]    Compiling pin-project-internal v1.0.10
[INFO] [stderr]    Compiling execute-command-macro-impl v0.1.7
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling twoway v0.1.8
[INFO] [stderr]    Compiling tokio v0.2.25
[INFO] [stderr]    Compiling csv-core v0.1.10
[INFO] [stderr]    Compiling base64 v0.13.0
[INFO] [stderr]    Compiling tower-service v0.3.1
[INFO] [stderr]    Compiling futures-io v0.3.21
[INFO] [stderr]    Compiling dtoa v0.4.8
[INFO] [stderr]    Compiling httpdate v1.0.2
[INFO] [stderr]    Compiling prometheus v0.9.0
[INFO] [stderr]    Compiling httpdate v0.3.2
[INFO] [stderr]    Compiling serde_urlencoded v0.6.1
[INFO] [stderr]    Compiling headers v0.3.7
[INFO] [stderr]    Compiling csv v1.1.6
[INFO] [stderr]    Compiling futures v0.3.21
[INFO] [stderr]    Compiling pin-project v1.0.10
[INFO] [stderr]    Compiling procfs v0.7.9
[INFO] [stderr]    Compiling multipart v0.17.1
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling execute-command-macro v0.1.7
[INFO] [stderr]    Compiling term v0.5.2
[INFO] [stderr]    Compiling thiserror v1.0.30
[INFO] [stderr]    Compiling pin-project v0.4.29
[INFO] [stderr]    Compiling urlencoding v1.3.3
[INFO] [stderr]    Compiling yaml-rust v0.3.5
[INFO] [stderr]    Compiling scoped-tls v1.0.0
[INFO] [stderr]    Compiling encode_unicode v0.3.6
[INFO] [stderr]    Compiling nix v0.22.3
[INFO] [stderr]    Compiling execute v0.2.10
[INFO] [stderr]    Compiling colored v2.0.0
[INFO] [stderr]    Compiling prettytable-rs v0.8.0
[INFO] [stderr]    Compiling clap v2.34.0
[INFO] [stderr]    Compiling tokio-util v0.3.1
[INFO] [stderr]    Compiling tokio-tungstenite v0.11.0
[INFO] [stderr]    Compiling h2 v0.2.7
[INFO] [stderr]    Compiling subprocess v0.2.8
[INFO] [stderr]    Compiling hyper v0.13.10
[INFO] [stderr]    Compiling warp v0.2.5
[INFO] [stderr]    Compiling 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 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: 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: 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: 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 1m 42s
[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 3`
[INFO] running `Command { std: "docker" "inspect" "cc5910c2596b4282f8368d2d60b7bb56602e89f3044c06f42d6377b97524a4d1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc5910c2596b4282f8368d2d60b7bb56602e89f3044c06f42d6377b97524a4d1", kill_on_drop: false }`
[INFO] [stdout] cc5910c2596b4282f8368d2d60b7bb56602e89f3044c06f42d6377b97524a4d1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4dcf9737ab9283c08182ab8e72c064eeef5712547f09092b759614b7c8959646
[INFO] running `Command { std: "docker" "start" "-a" "4dcf9737ab9283c08182ab8e72c064eeef5712547f09092b759614b7c8959646", kill_on_drop: false }`
[INFO] [stderr]    Compiling jbod v1.0.2 (/opt/rustwide/workdir)
[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 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 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: 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: 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] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.05s
[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 3`
[INFO] running `Command { std: "docker" "inspect" "4dcf9737ab9283c08182ab8e72c064eeef5712547f09092b759614b7c8959646", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4dcf9737ab9283c08182ab8e72c064eeef5712547f09092b759614b7c8959646", kill_on_drop: false }`
[INFO] [stdout] 4dcf9737ab9283c08182ab8e72c064eeef5712547f09092b759614b7c8959646
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] b531d1723b503fe7ccbf9a00a4b1ca6688ed605f1fd9347f12c7b60f47f9a53b
[INFO] running `Command { std: "docker" "start" "-a" "b531d1723b503fe7ccbf9a00a4b1ca6688ed605f1fd9347f12c7b60f47f9a53b", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `HistogramOpts`, `HistogramVec`, `IntCounterVec`, and `IntCounter`
[INFO] [stderr]   --> src/prometheus.rs:40:5
[INFO] [stderr]    |
[INFO] [stderr] 40 |     HistogramOpts, HistogramVec, IntCounter, IntCounterVec, IntGauge, IntGaugeVec, Opts, Registry,
[INFO] [stderr]    |     ^^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Read` and `Write`
[INFO] [stderr]   --> src/jbod/enclosure.rs:34:39
[INFO] [stderr]    |
[INFO] [stderr] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[INFO] [stderr]    |                                       ^^^^  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Stdio`
[INFO] [stderr]   --> src/jbod/enclosure.rs:35:33
[INFO] [stderr]    |
[INFO] [stderr] 35 |     use std::process::{Command, Stdio};
[INFO] [stderr]    |                                 ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `return` value
[INFO] [stderr]   --> src/prometheus.rs:91:11
[INFO] [stderr]    |
[INFO] [stderr] 91 |     return(enclosure.len() as i64)
[INFO] [stderr]    |           ^                      ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 91 -     return(enclosure.len() as i64)
[INFO] [stderr] 91 +     return enclosure.len() as i64
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `f`
[INFO] [stderr]    --> src/jbod/enclosure.rs:125:23
[INFO] [stderr]     |
[INFO] [stderr] 125 |         fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stderr]     |                       ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `device_path`, `device_map`, `fw_revision`, `led_locate_path`, and `led_fault_path` are never read
[INFO] [stderr]   --> src/jbod/disks.rs:51:13
[INFO] [stderr]    |
[INFO] [stderr] 45 |     pub struct Disk {
[INFO] [stderr]    |                ---- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 51 |         pub device_path: String,
[INFO] [stderr]    |             ^^^^^^^^^^^
[INFO] [stderr] 52 |         // Disk map, example: /dev/sdcz
[INFO] [stderr] 53 |         pub device_map: String,
[INFO] [stderr]    |             ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 |         pub fw_revision: String,
[INFO] [stderr]    |             ^^^^^^^^^^^
[INFO] [stderr] 58 |         // Path to led control file
[INFO] [stderr] 59 |         pub led_locate_path: String,
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^
[INFO] [stderr] 60 |         // Path to led control file
[INFO] [stderr] 61 |         pub led_fault_path: String,
[INFO] [stderr]    |             ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Disk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `set_disk_led_locate` is never used
[INFO] [stderr]    --> src/jbod/disks.rs:197:8
[INFO] [stderr]     |
[INFO] [stderr] 197 |     fn set_disk_led_locate(disk: String, option: &str) {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `set_disk_led_fault` is never used
[INFO] [stderr]    --> src/jbod/disks.rs:242:8
[INFO] [stderr]     |
[INFO] [stderr] 242 |     fn set_disk_led_fault(disk: String, option: &str) {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `jbod_led_switch` is never used
[INFO] [stderr]    --> src/jbod/disks.rs:418:12
[INFO] [stderr]     |
[INFO] [stderr] 418 |     pub fn jbod_led_switch(options: &ArgMatches) -> Result<(), ()> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `slot` and `comment` are never read
[INFO] [stderr]   --> src/jbod/enclosure.rs:56:13
[INFO] [stderr]    |
[INFO] [stderr] 54 |     pub struct EnclosureFan {
[INFO] [stderr]    |                ------------ fields in this struct
[INFO] [stderr] 55 |         /// The slot number provided by the JBOD
[INFO] [stderr] 56 |         pub slot: String,
[INFO] [stderr]    |             ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 67 |         pub comment: String,
[INFO] [stderr]    |             ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `EnclosureFan` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: function `create_fan_table` is never used
[INFO] [stderr]   --> src/jbod/enclosure.rs:99:12
[INFO] [stderr]    |
[INFO] [stderr] 99 |     pub fn create_fan_table() -> Table {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `JBOD_EXPORTER` is never used
[INFO] [stderr]   --> src/utils/helper.rs:43:15
[INFO] [stderr]    |
[INFO] [stderr] 43 |     pub const JBOD_EXPORTER: &str = "/usr/bin/prometheus-jbod-exporter";
[INFO] [stderr]    |               ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `verify_binary_needed` is never used
[INFO] [stderr]   --> src/utils/helper.rs:58:12
[INFO] [stderr]    |
[INFO] [stderr] 58 |     pub fn verify_binary_needed() {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stderr]    --> src/jbod/disks.rs:204:69
[INFO] [stderr]     |
[INFO] [stderr] 204 |                     fs::write(&found_disk[0].led_locate_path, option.clone())
[INFO] [stderr]     |                                                                     ^^^^^^^^ help: remove this redundant call
[INFO] [stderr]     |
[INFO] [stderr]     = 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] [stderr]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stderr]    --> src/jbod/disks.rs:249:68
[INFO] [stderr]     |
[INFO] [stderr] 249 |                     fs::write(&found_disk[0].led_fault_path, option.clone())
[INFO] [stderr]     |                                                                    ^^^^^^^^ help: remove this redundant call
[INFO] [stderr]     |
[INFO] [stderr]     = 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] [stderr] 
[INFO] [stderr] warning: unused imports: `Read` and `Write`
[INFO] [stderr]   --> src/jbod/enclosure.rs:34:39
[INFO] [stderr]    |
[INFO] [stderr] 34 |     use std::io::{BufRead, BufReader, Read, Write};
[INFO] [stderr]    |                                       ^^^^  ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `is_string_numeric` is never used
[INFO] [stderr]   --> src/utils/helper.rs:93:12
[INFO] [stderr]    |
[INFO] [stderr] 93 |     pub fn is_string_numeric(s: String) -> bool {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]    --> src/main.rs:264:5
[INFO] [stderr]     |
[INFO] [stderr] 264 | /     match matches.subcommand() {
[INFO] [stderr] 265 | |         ("list", Some(m)) => enclosure_overview(m),
[INFO] [stderr] 266 | |         ("led", Some(m)) => DiskShelf::jbod_led_switch(m),
[INFO] [stderr] 267 | |         ("prometheus", Some(m)) => fork_prometheus(m),
[INFO] [stderr] 268 | |         _ => Ok(help()),
[INFO] [stderr] 269 | |     };
[INFO] [stderr]     | |_____^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]     |
[INFO] [stderr] 264 |     let _ = match matches.subcommand() {
[INFO] [stderr]     |     +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `jbod` (bin "prometheus-jbod-exporter" test) generated 15 warnings (run `cargo fix --bin "prometheus-jbod-exporter" -p jbod --tests` to apply 7 suggestions)
[INFO] [stderr] warning: `jbod` (bin "jbod" test) generated 7 warnings (4 duplicates) (run `cargo fix --bin "jbod" -p jbod --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s
[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 3`
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/jbod-4cac26f97ac29857)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/prometheus.rs (/opt/rustwide/target/debug/deps/prometheus_jbod_exporter-60aa9d379ecdedae)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "b531d1723b503fe7ccbf9a00a4b1ca6688ed605f1fd9347f12c7b60f47f9a53b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b531d1723b503fe7ccbf9a00a4b1ca6688ed605f1fd9347f12c7b60f47f9a53b", kill_on_drop: false }`
[INFO] [stdout] b531d1723b503fe7ccbf9a00a4b1ca6688ed605f1fd9347f12c7b60f47f9a53b
