[INFO] fetching crate jbod 1.0.2... [INFO] testing jbod-1.0.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate jbod 1.0.2 into /workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jbod 1.0.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded execute-command-macro v0.1.7 [INFO] [stderr] Downloaded execute-command-macro-impl v0.1.7 [INFO] [stderr] Downloaded execute v0.2.10 [INFO] [stderr] Downloaded multipart v0.17.1 [INFO] [stderr] Downloaded execute-command-tokens v0.1.5 [INFO] [stderr] Downloaded tokio-tungstenite v0.11.0 [INFO] [stderr] Downloaded procfs v0.7.9 [INFO] [stderr] Downloaded prometheus v0.9.0 [INFO] [stderr] Downloaded subprocess v0.2.8 [INFO] [stderr] Downloaded warp v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db84ac82d43a788b468cc07e6a82f3f58acef8f0cfb2b503484a918449826150 [INFO] running `Command { std: "docker" "start" "-a" "db84ac82d43a788b468cc07e6a82f3f58acef8f0cfb2b503484a918449826150", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db84ac82d43a788b468cc07e6a82f3f58acef8f0cfb2b503484a918449826150", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db84ac82d43a788b468cc07e6a82f3f58acef8f0cfb2b503484a918449826150", kill_on_drop: false }` [INFO] [stdout] db84ac82d43a788b468cc07e6a82f3f58acef8f0cfb2b503484a918449826150 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e1bc402d054030ab3d20c643af738d3489b6b6dbb1f0ba2932ebd0f13a5cada [INFO] running `Command { std: "docker" "start" "-a" "3e1bc402d054030ab3d20c643af738d3489b6b6dbb1f0ba2932ebd0f13a5cada", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling tracing-core v0.1.23 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling tracing v0.1.32 [INFO] [stderr] Compiling block-buffer v0.9.0 [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 input_buffer v0.3.1 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling execute-command-tokens v0.1.5 [INFO] [stderr] Compiling protobuf v2.27.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling libflate v1.2.0 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling prometheus v0.9.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling headers v0.3.7 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling encode_unicode v0.3.6 [INFO] [stderr] Compiling urlencoding v1.3.3 [INFO] [stderr] Compiling yaml-rust v0.3.5 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling procfs v0.7.9 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling subprocess v0.2.8 [INFO] [stderr] Compiling nix v0.22.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling multipart v0.17.1 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling csv v1.1.6 [INFO] [stderr] Compiling prettytable-rs v0.8.0 [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] Compiling execute-command-macro v0.1.7 [INFO] [stderr] Compiling execute v0.2.10 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling thiserror v1.0.30 [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 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: 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 32.53s [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 1` [INFO] running `Command { std: "docker" "inspect" "3e1bc402d054030ab3d20c643af738d3489b6b6dbb1f0ba2932ebd0f13a5cada", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e1bc402d054030ab3d20c643af738d3489b6b6dbb1f0ba2932ebd0f13a5cada", kill_on_drop: false }` [INFO] [stdout] 3e1bc402d054030ab3d20c643af738d3489b6b6dbb1f0ba2932ebd0f13a5cada [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] adc41fc03ea37867f6c0d1ea53654993b082726c8e42451e2203069fb3d4734d [INFO] running `Command { std: "docker" "start" "-a" "adc41fc03ea37867f6c0d1ea53654993b082726c8e42451e2203069fb3d4734d", kill_on_drop: false }` [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: 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 `test` profile [unoptimized + debuginfo] target(s) in 0.56s [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 1` [INFO] running `Command { std: "docker" "inspect" "adc41fc03ea37867f6c0d1ea53654993b082726c8e42451e2203069fb3d4734d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adc41fc03ea37867f6c0d1ea53654993b082726c8e42451e2203069fb3d4734d", kill_on_drop: false }` [INFO] [stdout] adc41fc03ea37867f6c0d1ea53654993b082726c8e42451e2203069fb3d4734d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6dcee9daf4c41c8da95995c14c37e0ec67fe148f22d408a29cf30d3564471ec9 [INFO] running `Command { std: "docker" "start" "-a" "6dcee9daf4c41c8da95995c14c37e0ec67fe148f22d408a29cf30d3564471ec9", 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" --tests` to apply 6 suggestions) [INFO] [stderr] warning: `jbod` (bin "jbod" test) generated 7 warnings (4 duplicates) (run `cargo fix --bin "jbod" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [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 1` [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" "6dcee9daf4c41c8da95995c14c37e0ec67fe148f22d408a29cf30d3564471ec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6dcee9daf4c41c8da95995c14c37e0ec67fe148f22d408a29cf30d3564471ec9", kill_on_drop: false }` [INFO] [stdout] 6dcee9daf4c41c8da95995c14c37e0ec67fe148f22d408a29cf30d3564471ec9