[INFO] fetching crate plummerprimes 0.2.5... [INFO] linting plummerprimes-0.2.5 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate plummerprimes 0.2.5 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate plummerprimes 0.2.5 [INFO] finished tweaking crates.io crate plummerprimes 0.2.5 [INFO] tweaked toml for crates.io crate plummerprimes 0.2.5 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate plummerprimes 0.2.5 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate plummerprimes 0.2.5 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-macros v1.7.0 [INFO] [stderr] Downloaded unicode-xid v0.2.2 [INFO] [stderr] Downloaded hermit-abi v0.1.19 [INFO] [stderr] Downloaded thiserror v1.0.30 [INFO] [stderr] Downloaded quote v1.0.14 [INFO] [stderr] Downloaded itoa v1.0.1 [INFO] [stderr] Downloaded form_urlencoded v1.0.1 [INFO] [stderr] Downloaded bitflags v1.3.2 [INFO] [stderr] Downloaded atty v0.2.14 [INFO] [stderr] Downloaded tar v0.4.38 [INFO] [stderr] Downloaded matches v0.1.9 [INFO] [stderr] Downloaded thiserror-impl v1.0.30 [INFO] [stderr] Downloaded parking_lot_core v0.8.5 [INFO] [stderr] Downloaded futures-io v0.3.19 [INFO] [stderr] Downloaded tinyvec v1.5.1 [INFO] [stderr] Downloaded adler v1.0.2 [INFO] [stderr] Downloaded filetime v0.2.15 [INFO] [stderr] Downloaded fnv v1.0.7 [INFO] [stderr] Downloaded num-integer v0.1.44 [INFO] [stderr] Downloaded tower-service v0.3.1 [INFO] [stderr] Downloaded hyperlocal v0.8.0 [INFO] [stderr] Downloaded ctrlc v3.2.1 [INFO] [stderr] Downloaded crc32fast v1.3.0 [INFO] [stderr] Downloaded wasi v0.10.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded pin-project v0.4.29 [INFO] [stderr] Downloaded base64 v0.13.0 [INFO] [stderr] Downloaded unicode-normalization v0.1.19 [INFO] [stderr] Downloaded miniz_oxide v0.4.4 [INFO] [stderr] Downloaded chrono v0.4.19 [INFO] [stderr] Downloaded flate2 v1.0.22 [INFO] [stderr] Downloaded tracing v0.1.29 [INFO] [stderr] Downloaded idna v0.2.3 [INFO] [stderr] Downloaded regex-syntax v0.6.25 [INFO] [stderr] Downloaded http v0.2.5 [INFO] [stderr] Downloaded bstr v0.2.17 [INFO] [stderr] Downloaded hyper v0.14.16 [INFO] [stderr] Downloaded nix v0.23.1 [INFO] [stderr] Downloaded regex v1.5.4 [INFO] [stderr] Downloaded winapi v0.2.8 [INFO] [stderr] Downloaded clap v2.34.0 [INFO] [stderr] Downloaded socket2 v0.4.2 [INFO] [stderr] Downloaded time v0.1.44 [INFO] [stderr] Downloaded tokio v1.15.0 [INFO] [stderr] Downloaded bytes v0.5.6 [INFO] [stderr] Downloaded futures v0.3.19 [INFO] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded tracing-core v0.1.21 [INFO] [stderr] Downloaded pin-project v1.0.9 [INFO] [stderr] Downloaded url v2.2.2 [INFO] [stderr] Downloaded syn v1.0.84 [INFO] [stderr] Downloaded pin-project-internal v0.4.29 [INFO] [stderr] Downloaded httparse v1.5.1 [INFO] [stderr] Downloaded pin-project-internal v1.0.9 [INFO] [stderr] Downloaded unicode-bidi v0.3.7 [INFO] [stderr] Downloaded futures-util v0.3.19 [INFO] [stderr] Downloaded smbios-lib v0.8.0 [INFO] [stderr] Downloaded futures-executor v0.3.19 [INFO] [stderr] Downloaded want v0.3.0 [INFO] [stderr] Downloaded paste v1.0.6 [INFO] [stderr] Downloaded serde_json v1.0.73 [INFO] [stderr] Downloaded ntapi v0.3.6 [INFO] [stderr] Downloaded unicode-segmentation v1.8.0 [INFO] [stderr] Downloaded regex-automata v0.1.10 [INFO] [stderr] Downloaded csv v1.1.6 [INFO] [stderr] Downloaded mio v0.7.14 [INFO] [stderr] Downloaded docker-api v0.8.0 [INFO] [stderr] Downloaded serde v1.0.132 [INFO] [stderr] Downloaded aho-corasick v0.7.18 [INFO] [stderr] Downloaded unicode-linebreak v0.1.2 [INFO] [stderr] Downloaded memchr v2.4.1 [INFO] [stderr] Downloaded hex v0.4.3 [INFO] [stderr] Downloaded try-lock v0.2.3 [INFO] [stderr] Downloaded xattr v0.2.2 [INFO] [stderr] Downloaded cc v1.0.72 [INFO] [stderr] Downloaded getopts v0.2.21 [INFO] [stderr] Downloaded mach v0.3.2 [INFO] [stderr] Downloaded structopt v0.3.25 [INFO] [stderr] Downloaded winapi v0.3.9 [INFO] [stderr] Downloaded ryu v1.0.9 [INFO] [stderr] Downloaded serde_derive v1.0.132 [INFO] [stderr] Downloaded textwrap v0.14.2 [INFO] [stderr] Downloaded httpdate v1.0.2 [INFO] [stderr] Downloaded byteorder v1.4.3 [INFO] [stderr] Downloaded num-traits v0.2.14 [INFO] [stderr] Downloaded rmp-serde v0.15.5 [INFO] [stderr] Downloaded io-kit-sys v0.1.0 [INFO] [stderr] Downloaded strsim v0.8.0 [INFO] [stderr] Downloaded bytes v1.1.0 [INFO] [stderr] Downloaded log v0.4.14 [INFO] [stderr] Downloaded percent-encoding v2.1.0 [INFO] [stderr] Downloaded rmp v0.8.10 [INFO] [stderr] Downloaded core-foundation v0.6.4 [INFO] [stderr] Downloaded ansi_term v0.12.1 [INFO] [stderr] Downloaded textwrap v0.11.0 [INFO] [stderr] Downloaded proc-macro-error v1.0.4 [INFO] [stderr] Downloaded structopt-derive v0.4.18 [INFO] [stderr] Downloaded csv-core v0.1.10 [INFO] [stderr] Downloaded html-escape v0.2.9 [INFO] [stderr] Downloaded unicode-width v0.1.9 [INFO] [stderr] Downloaded miow v0.3.7 [INFO] [stderr] Downloaded once_cell v1.9.0 [INFO] [stderr] Downloaded parking_lot v0.11.2 [INFO] [stderr] Downloaded futures_codec v0.4.1 [INFO] [stderr] Downloaded http-body v0.4.4 [INFO] [stderr] Downloaded mime v0.3.16 [INFO] [stderr] Downloaded futures-channel v0.3.19 [INFO] [stderr] Downloaded futures-core v0.3.19 [INFO] [stderr] Downloaded futures-sink v0.3.19 [INFO] [stderr] Downloaded futures-task v0.3.19 [INFO] [stderr] Downloaded pin-utils v0.1.0 [INFO] [stderr] Downloaded slab v0.4.5 [INFO] [stderr] Downloaded ordered-float v2.8.0 [INFO] [stderr] Downloaded core-foundation-sys v0.6.2 [INFO] [stderr] Downloaded mach v0.2.3 [INFO] [stderr] Downloaded vec_map v0.8.2 [INFO] [stderr] Downloaded proc-macro-error-attr v1.0.4 [INFO] [stderr] Downloaded lazy_static v1.4.0 [INFO] [stderr] Downloaded termsize v0.1.6 [INFO] [stderr] Downloaded heck v0.3.3 [INFO] [stderr] Downloaded lock_api v0.4.5 [INFO] [stderr] Downloaded memoffset v0.6.5 [INFO] [stderr] Downloaded autocfg v1.0.1 [INFO] [stderr] Downloaded version_check v0.9.3 [INFO] [stderr] Downloaded itoa v0.4.8 [INFO] [stderr] Downloaded numtoa v0.1.0 [INFO] [stderr] Downloaded smallvec v1.7.0 [INFO] [stderr] Downloaded pin-project-lite v0.2.7 [INFO] [stderr] Downloaded futures-macro v0.3.19 [INFO] [stderr] Downloaded utf8-width v0.1.5 [INFO] [stderr] Downloaded table_output v0.1.0 [INFO] [stderr] Downloaded num_cpus v1.13.1 [INFO] [stderr] Downloaded cfg-if v1.0.0 [INFO] [stderr] Downloaded signal-hook-registry v1.4.0 [INFO] [stderr] Downloaded kernel32-sys v0.2.2 [INFO] [stderr] Downloaded termion v1.5.6 [INFO] [stderr] Downloaded scopeguard v1.1.0 [INFO] [stderr] Downloaded instant v0.1.12 [INFO] [stderr] Downloaded redox_syscall v0.2.10 [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded winapi-build v0.1.1 [INFO] [stderr] Downloaded redox_termios v0.1.2 [INFO] [stderr] Downloaded smawk v0.3.1 [INFO] [stderr] Downloaded tinyvec_macros v0.1.0 [INFO] [stderr] Downloaded winapi-i686-pc-windows-gnu v0.4.0 [INFO] [stderr] Downloaded winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 464265ed2753582c0341dc9858259036bb2b105c2a35066fac2179d9daa53720 [INFO] running `Command { std: "docker" "start" "-a" "464265ed2753582c0341dc9858259036bb2b105c2a35066fac2179d9daa53720", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "464265ed2753582c0341dc9858259036bb2b105c2a35066fac2179d9daa53720", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "464265ed2753582c0341dc9858259036bb2b105c2a35066fac2179d9daa53720", kill_on_drop: false }` [INFO] [stdout] 464265ed2753582c0341dc9858259036bb2b105c2a35066fac2179d9daa53720 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89d1860ce3667fec7e71f87aabb1c4f12cf9d0507942234259c0246e12999726 [INFO] running `Command { std: "docker" "start" "-a" "89d1860ce3667fec7e71f87aabb1c4f12cf9d0507942234259c0246e12999726", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.84 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.132 [INFO] [stderr] Compiling serde v1.0.132 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Checking futures-sink v0.3.19 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Checking futures-io v0.3.19 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling serde_json v1.0.73 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking tracing-core v0.1.21 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking http v0.2.5 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking tracing v0.1.29 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking utf8-width v0.1.5 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking xattr v0.2.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking filetime v0.2.15 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking rmp v0.8.10 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking tar v0.4.38 [INFO] [stderr] Checking termsize v0.1.6 [INFO] [stderr] Checking nix v0.23.1 [INFO] [stderr] Checking html-escape v0.2.9 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Compiling plummerprimes v0.2.5 (/opt/rustwide/workdir) [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Compiling unicode-linebreak v0.1.2 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling pin-project-internal v1.0.9 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking textwrap v0.14.2 [INFO] [stderr] Checking ctrlc v3.2.1 [INFO] [stderr] Checking tokio v1.15.0 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking pin-project v1.0.9 [INFO] [stderr] Checking pin-project v0.4.29 [INFO] [stderr] Checking futures-executor v0.3.19 [INFO] [stderr] Checking futures v0.3.19 [INFO] [stderr] Checking futures_codec v0.4.1 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking ordered-float v2.8.0 [INFO] [stderr] Checking rmp-serde v0.15.5 [INFO] [stderr] Checking hyper v0.14.16 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking smbios-lib v0.8.0 [INFO] [stderr] Checking table_output v0.1.0 [INFO] [stderr] Checking hyperlocal v0.8.0 [INFO] [stderr] Checking docker-api v0.8.0 [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:553:13 [INFO] [stdout] | [INFO] [stdout] 553 | manufacturer: manufacturer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `manufacturer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:554:13 [INFO] [stdout] | [INFO] [stdout] 554 | brand: brand, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `brand` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:555:13 [INFO] [stdout] | [INFO] [stdout] 555 | vendor: vendor, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `vendor` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:556:13 [INFO] [stdout] | [INFO] [stdout] 556 | family: family, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `family` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:557:13 [INFO] [stdout] | [INFO] [stdout] 557 | model: model, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:558:13 [INFO] [stdout] | [INFO] [stdout] 558 | stepping: stepping, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `stepping` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:559:13 [INFO] [stdout] | [INFO] [stdout] 559 | revision: revision, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `revision` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | voltage: voltage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `voltage` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | speed: speed, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `speed` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:566:13 [INFO] [stdout] | [INFO] [stdout] 566 | physical_cores: physical_cores, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `physical_cores` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:567:13 [INFO] [stdout] | [INFO] [stdout] 567 | processors: processors, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `processors` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:568:13 [INFO] [stdout] | [INFO] [stdout] 568 | socket: socket, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `socket` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:569:13 [INFO] [stdout] | [INFO] [stdout] 569 | flags: flags, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `flags` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:570:13 [INFO] [stdout] | [INFO] [stdout] 570 | virtualization: virtualization, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `virtualization` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | manufacturer: manufacturer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `manufacturer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | model: model, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | version: version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | sku: sku, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `sku` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:553:13 [INFO] [stdout] | [INFO] [stdout] 553 | manufacturer: manufacturer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `manufacturer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:554:13 [INFO] [stdout] | [INFO] [stdout] 554 | brand: brand, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `brand` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:555:13 [INFO] [stdout] | [INFO] [stdout] 555 | vendor: vendor, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `vendor` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:556:13 [INFO] [stdout] | [INFO] [stdout] 556 | family: family, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `family` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:557:13 [INFO] [stdout] | [INFO] [stdout] 557 | model: model, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:558:13 [INFO] [stdout] | [INFO] [stdout] 558 | stepping: stepping, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `stepping` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:559:13 [INFO] [stdout] | [INFO] [stdout] 559 | revision: revision, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `revision` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:560:13 [INFO] [stdout] | [INFO] [stdout] 560 | voltage: voltage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `voltage` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:561:13 [INFO] [stdout] | [INFO] [stdout] 561 | speed: speed, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `speed` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:566:13 [INFO] [stdout] | [INFO] [stdout] 566 | physical_cores: physical_cores, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `physical_cores` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:567:13 [INFO] [stdout] | [INFO] [stdout] 567 | processors: processors, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `processors` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:568:13 [INFO] [stdout] | [INFO] [stdout] 568 | socket: socket, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `socket` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:569:13 [INFO] [stdout] | [INFO] [stdout] 569 | flags: flags, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `flags` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:570:13 [INFO] [stdout] | [INFO] [stdout] 570 | virtualization: virtualization, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `virtualization` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/os.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | distro: distro, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `distro` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/os.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | release: release, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `release` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/os.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | arch: arch, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `arch` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | manufacturer: manufacturer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `manufacturer` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | model: model, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `model` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | version: version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/system.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | sku: sku, [INFO] [stdout] | ^^^^^^^^ help: replace it with: `sku` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/os.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | distro: distro, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `distro` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/os.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | release: release, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `release` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/os.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | arch: arch, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `arch` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/mod.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | version: version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/mod.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | metadata: metadata, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `metadata` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/mod.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | machine: machine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `machine` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | extra: extra, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `extra` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/mod.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | version: version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/mod.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | metadata: metadata, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `metadata` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/systeminformation/mod.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | machine: machine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `machine` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | extra: extra, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `extra` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | extra: extra, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `extra` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | duration: duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `duration` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | passes: passes, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `passes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | threads: threads, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `threads` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | tags: tags, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `tags` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:157:13 [INFO] [stdout] | [INFO] [stdout] 157 | extra: extra, [INFO] [stdout] | ^^^^^^^^^^^^ help: replace it with: `extra` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:391:9 [INFO] [stdout] | [INFO] [stdout] 391 | extra_data: extra_data, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `extra_data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 394 | broken_solutions: broken_solutions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `broken_solutions` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | duration: duration, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `duration` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | passes: passes, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `passes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | threads: threads, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `threads` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | tags: tags, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `tags` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:391:9 [INFO] [stdout] | [INFO] [stdout] 391 | extra_data: extra_data, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `extra_data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 394 | broken_solutions: broken_solutions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `broken_solutions` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/systeminformation/cpu.rs:427:23 [INFO] [stdout] | [INFO] [stdout] 427 | revision: match val.revision { [INFO] [stdout] | _______________________^ [INFO] [stdout] 428 | | Some(x) => x, [INFO] [stdout] 429 | | None => String::new(), [INFO] [stdout] 430 | | }, [INFO] [stdout] | |_____________^ help: replace it with: `val.revision.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/systeminformation/cpu.rs:431:22 [INFO] [stdout] | [INFO] [stdout] 431 | voltage: match val.voltage { [INFO] [stdout] | ______________________^ [INFO] [stdout] 432 | | Some(x) => x, [INFO] [stdout] 433 | | None => String::new(), [INFO] [stdout] 434 | | }, [INFO] [stdout] | |_____________^ help: replace it with: `val.voltage.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/systeminformation/cpu.rs:442:21 [INFO] [stdout] | [INFO] [stdout] 442 | socket: match val.socket { [INFO] [stdout] | _____________________^ [INFO] [stdout] 443 | | Some(x) => x, [INFO] [stdout] 444 | | None => String::new(), [INFO] [stdout] 445 | | }, [INFO] [stdout] | |_____________^ help: replace it with: `val.socket.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/systeminformation/cpu.rs:427:23 [INFO] [stdout] | [INFO] [stdout] 427 | revision: match val.revision { [INFO] [stdout] | _______________________^ [INFO] [stdout] 428 | | Some(x) => x, [INFO] [stdout] 429 | | None => String::new(), [INFO] [stdout] 430 | | }, [INFO] [stdout] | |_____________^ help: replace it with: `val.revision.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/systeminformation/cpu.rs:468:17 [INFO] [stdout] | [INFO] [stdout] 468 | / if let smbioslib::ProcessorVoltage::CurrentVolts(volts) = voltage_info { [INFO] [stdout] 469 | | voltage = Some(volts.to_string()); [INFO] [stdout] 470 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/systeminformation/cpu.rs:467:25 [INFO] [stdout] | [INFO] [stdout] 467 | if let Some(voltage_info) = base_info[0].voltage() { [INFO] [stdout] | ^^^^^^^^^^^^ replace this binding [INFO] [stdout] 468 | if let smbioslib::ProcessorVoltage::CurrentVolts(volts) = voltage_info { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/systeminformation/cpu.rs:431:22 [INFO] [stdout] | [INFO] [stdout] 431 | voltage: match val.voltage { [INFO] [stdout] | ______________________^ [INFO] [stdout] 432 | | Some(x) => x, [INFO] [stdout] 433 | | None => String::new(), [INFO] [stdout] 434 | | }, [INFO] [stdout] | |_____________^ help: replace it with: `val.voltage.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/systeminformation/cpu.rs:442:21 [INFO] [stdout] | [INFO] [stdout] 442 | socket: match val.socket { [INFO] [stdout] | _____________________^ [INFO] [stdout] 443 | | Some(x) => x, [INFO] [stdout] 444 | | None => String::new(), [INFO] [stdout] 445 | | }, [INFO] [stdout] | |_____________^ help: replace it with: `val.socket.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/systeminformation/cpu.rs:468:17 [INFO] [stdout] | [INFO] [stdout] 468 | / if let smbioslib::ProcessorVoltage::CurrentVolts(volts) = voltage_info { [INFO] [stdout] 469 | | voltage = Some(volts.to_string()); [INFO] [stdout] 470 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/systeminformation/cpu.rs:467:25 [INFO] [stdout] | [INFO] [stdout] 467 | if let Some(voltage_info) = base_info[0].voltage() { [INFO] [stdout] | ^^^^^^^^^^^^ replace this binding [INFO] [stdout] 468 | if let smbioslib::ProcessorVoltage::CurrentVolts(volts) = voltage_info { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:540:9 [INFO] [stdout] | [INFO] [stdout] 540 | let physical_cores: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `physical_cores` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 540 ~ [INFO] [stdout] 541 ~ let physical_cores: Option = if cpu_hashmap.contains_key("cpu cores") { [INFO] [stdout] 542 ~ Some(cpu_hashmap.get("cpu cores").unwrap().parse::().unwrap()) [INFO] [stdout] 543 | } else { [INFO] [stdout] 544 ~ None [INFO] [stdout] 545 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | let processors: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `processors` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 546 ~ [INFO] [stdout] 547 ~ let processors: Option = if cpu_hashmap.contains_key("physical id") { [INFO] [stdout] 548 ~ Some(Self::count_physical_ids(cpu_hashmap_vec)) [INFO] [stdout] 549 | } else { [INFO] [stdout] 550 ~ None [INFO] [stdout] 551 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:540:9 [INFO] [stdout] | [INFO] [stdout] 540 | let physical_cores: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `physical_cores` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 540 ~ [INFO] [stdout] 541 ~ let physical_cores: Option = if cpu_hashmap.contains_key("cpu cores") { [INFO] [stdout] 542 ~ Some(cpu_hashmap.get("cpu cores").unwrap().parse::().unwrap()) [INFO] [stdout] 543 | } else { [INFO] [stdout] 544 ~ None [INFO] [stdout] 545 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | let processors: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `processors` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 546 ~ [INFO] [stdout] 547 ~ let processors: Option = if cpu_hashmap.contains_key("physical id") { [INFO] [stdout] 548 ~ Some(Self::count_physical_ids(cpu_hashmap_vec)) [INFO] [stdout] 549 | } else { [INFO] [stdout] 550 ~ None [INFO] [stdout] 551 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:626:53 [INFO] [stdout] | [INFO] [stdout] 626 | let index_type = fs::read_to_string(&index_path.join("type")).unwrap().trim().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("type")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:627:54 [INFO] [stdout] | [INFO] [stdout] 627 | let index_level = fs::read_to_string(&index_path.join("level")).unwrap().trim().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("level")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:628:51 [INFO] [stdout] | [INFO] [stdout] 628 | let index_id = fs::read_to_string(&index_path.join("id")).unwrap().trim().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("id")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:629:53 [INFO] [stdout] | [INFO] [stdout] 629 | ... let index_size = fs::read_to_string(&index_path.join("size")).unwrap().trim().split_once("K").unwrap().0.parse::().unw... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("size")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:652:29 [INFO] [stdout] | [INFO] [stdout] 652 | ... let key: String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `key` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 652 ~ [INFO] [stdout] 653 ~ let key: String = if index_level == 2 { [INFO] [stdout] 654 ~ "l2".to_string() [INFO] [stdout] 655 | } else { [INFO] [stdout] 656 ~ "l3".to_string() [INFO] [stdout] 657 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:626:53 [INFO] [stdout] | [INFO] [stdout] 626 | let index_type = fs::read_to_string(&index_path.join("type")).unwrap().trim().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("type")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:627:54 [INFO] [stdout] | [INFO] [stdout] 627 | let index_level = fs::read_to_string(&index_path.join("level")).unwrap().trim().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("level")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:628:51 [INFO] [stdout] | [INFO] [stdout] 628 | let index_id = fs::read_to_string(&index_path.join("id")).unwrap().trim().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("id")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/systeminformation/cpu.rs:629:53 [INFO] [stdout] | [INFO] [stdout] 629 | ... let index_size = fs::read_to_string(&index_path.join("size")).unwrap().trim().split_once("K").unwrap().0.parse::().unw... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `index_path.join("size")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/systeminformation/cpu.rs:652:29 [INFO] [stdout] | [INFO] [stdout] 652 | ... let key: String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `key` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 652 ~ [INFO] [stdout] 653 ~ let key: String = if index_level == 2 { [INFO] [stdout] 654 ~ "l2".to_string() [INFO] [stdout] 655 | } else { [INFO] [stdout] 656 ~ "l3".to_string() [INFO] [stdout] 657 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `base_info.get(0)` [INFO] [stdout] --> src/systeminformation/system.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let info = base_info.get(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `base_info.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: accessing first element with `base_info.get(0)` [INFO] [stdout] --> src/systeminformation/system.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | let info = base_info.get(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `base_info.first()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first [INFO] [stdout] = note: `#[warn(clippy::get_first)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or` to construct default value [INFO] [stdout] --> src/systeminformation/os.rs:33:67 [INFO] [stdout] | [INFO] [stdout] 33 | output.push_str(fs::read_to_string("/usr/lib/os-release").unwrap_or(String::new()).as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `val` after checking its variant with `is_some` [INFO] [stdout] --> src/systeminformation/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | if val.is_some() { [INFO] [stdout] | ---------------- help: try: `if let Some() = val` [INFO] [stdout] 9 | return val.unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `unwrap_or` to construct default value [INFO] [stdout] --> src/systeminformation/os.rs:33:67 [INFO] [stdout] | [INFO] [stdout] 33 | output.push_str(fs::read_to_string("/usr/lib/os-release").unwrap_or(String::new()).as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/systeminformation/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | return val.unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 9 - return val.unwrap().to_string(); [INFO] [stdout] 9 + val.unwrap().to_string() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/systeminformation/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | return String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 11 - return String::new(); [INFO] [stdout] 11 + String::new() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `val` after checking its variant with `is_some` [INFO] [stdout] --> src/systeminformation/mod.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 17 | if val.is_some() { [INFO] [stdout] | ---------------- help: try: `if let Some() = val` [INFO] [stdout] 18 | output = Some(val.unwrap().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `val` after checking its variant with `is_some` [INFO] [stdout] --> src/systeminformation/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | if val.is_some() { [INFO] [stdout] | ---------------- help: try: `if let Some() = val` [INFO] [stdout] 9 | return val.unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/systeminformation/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | return val.unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 9 - return val.unwrap().to_string(); [INFO] [stdout] 9 + val.unwrap().to_string() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/systeminformation/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | return String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 11 - return String::new(); [INFO] [stdout] 11 + String::new() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `val` after checking its variant with `is_some` [INFO] [stdout] --> src/systeminformation/mod.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 17 | if val.is_some() { [INFO] [stdout] | ---------------- help: try: `if let Some() = val` [INFO] [stdout] 18 | output = Some(val.unwrap().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_none` [INFO] [stdout] --> src/lib.rs:199:55 [INFO] [stdout] | [INFO] [stdout] 196 | if res.is_none() { [INFO] [stdout] | ---------------- help: try: `if let Some() = res` [INFO] [stdout] ... [INFO] [stdout] 199 | tags.insert(tag_name.to_string(), res.unwrap().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `res` after checking its variant with `is_none` [INFO] [stdout] --> src/lib.rs:199:55 [INFO] [stdout] | [INFO] [stdout] 196 | if res.is_none() { [INFO] [stdout] | ---------------- help: try: `if let Some() = res` [INFO] [stdout] ... [INFO] [stdout] 199 | tags.insert(tag_name.to_string(), res.unwrap().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | / ... if fs::read_dir(solution_path.clone()).unwrap().filter(|x| x.as_ref().unwrap().file_name().into_string().unwrap().starts_wi... [INFO] [stdout] 298 | | ... if !solution_path.clone().join(arch_file).exists() { [INFO] [stdout] 299 | | ... eprintln!("Skipping {} because of unsupported architecture", name.clone()); [INFO] [stdout] 300 | | ... continue; [INFO] [stdout] 301 | | ... } [INFO] [stdout] 302 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 297 ~ if fs::read_dir(solution_path.clone()).unwrap().filter(|x| x.as_ref().unwrap().file_name().into_string().unwrap().starts_with("arch-")).count() > 0 [INFO] [stdout] 298 ~ && !solution_path.clone().join(arch_file).exists() { [INFO] [stdout] 299 | eprintln!("Skipping {} because of unsupported architecture", name.clone()); [INFO] [stdout] 300 | continue; [INFO] [stdout] 301 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/lib.rs:318:20 [INFO] [stdout] | [INFO] [stdout] 318 | if indiv_sols.clone().len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `indiv_sols.clone().is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/lib.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | let val: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `val` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 363 ~ [INFO] [stdout] 364 ~ let val: Option = if benchmark.output.extra.contains_key(&key) { [INFO] [stdout] 365 ~ Some(benchmark.output.extra.get(&key).unwrap().to_string()) [INFO] [stdout] 366 | } else { [INFO] [stdout] 367 ~ None [INFO] [stdout] 368 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/lib.rs:374:17 [INFO] [stdout] | [INFO] [stdout] 374 | let val: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `val` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 374 ~ [INFO] [stdout] 375 ~ let val: Option = if benchmark.output.extra.contains_key(&key) { [INFO] [stdout] 376 ~ Some(benchmark.output.extra.get(&key).unwrap().to_string()) [INFO] [stdout] 377 | } else { [INFO] [stdout] 378 ~ None [INFO] [stdout] 379 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | / ... if fs::read_dir(solution_path.clone()).unwrap().filter(|x| x.as_ref().unwrap().file_name().into_string().unwrap().starts_wi... [INFO] [stdout] 298 | | ... if !solution_path.clone().join(arch_file).exists() { [INFO] [stdout] 299 | | ... eprintln!("Skipping {} because of unsupported architecture", name.clone()); [INFO] [stdout] 300 | | ... continue; [INFO] [stdout] 301 | | ... } [INFO] [stdout] 302 | | ... } [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 297 ~ if fs::read_dir(solution_path.clone()).unwrap().filter(|x| x.as_ref().unwrap().file_name().into_string().unwrap().starts_with("arch-")).count() > 0 [INFO] [stdout] 298 ~ && !solution_path.clone().join(arch_file).exists() { [INFO] [stdout] 299 | eprintln!("Skipping {} because of unsupported architecture", name.clone()); [INFO] [stdout] 300 | continue; [INFO] [stdout] 301 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:415:11 [INFO] [stdout] | [INFO] [stdout] 415 | while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 415 - while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] 415 + while !(split.0 == "" && !split.1.contains("\n")) { [INFO] [stdout] | [INFO] [stdout] 415 - while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] 415 + while split.0 != "" || split.1.contains("\n") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/lib.rs:415:11 [INFO] [stdout] | [INFO] [stdout] 415 | while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!split.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/lib.rs:415:29 [INFO] [stdout] | [INFO] [stdout] 415 | while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `split.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/lib.rs:417:38 [INFO] [stdout] | [INFO] [stdout] 417 | if split.1.contains("\n") && split.0 == "" { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `split.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/lib.rs:318:20 [INFO] [stdout] | [INFO] [stdout] 318 | if indiv_sols.clone().len() == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `indiv_sols.clone().is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/lib.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | let val: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `val` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 363 ~ [INFO] [stdout] 364 ~ let val: Option = if benchmark.output.extra.contains_key(&key) { [INFO] [stdout] 365 ~ Some(benchmark.output.extra.get(&key).unwrap().to_string()) [INFO] [stdout] 366 | } else { [INFO] [stdout] 367 ~ None [INFO] [stdout] 368 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/lib.rs:374:17 [INFO] [stdout] | [INFO] [stdout] 374 | let val: Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `val` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 374 ~ [INFO] [stdout] 375 ~ let val: Option = if benchmark.output.extra.contains_key(&key) { [INFO] [stdout] 376 ~ Some(benchmark.output.extra.get(&key).unwrap().to_string()) [INFO] [stdout] 377 | } else { [INFO] [stdout] 378 ~ None [INFO] [stdout] 379 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:415:11 [INFO] [stdout] | [INFO] [stdout] 415 | while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 415 - while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] 415 + while !(split.0 == "" && !split.1.contains("\n")) { [INFO] [stdout] | [INFO] [stdout] 415 - while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] 415 + while split.0 != "" || split.1.contains("\n") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/lib.rs:415:11 [INFO] [stdout] | [INFO] [stdout] 415 | while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!split.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] = note: `#[warn(clippy::comparison_to_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/lib.rs:415:29 [INFO] [stdout] | [INFO] [stdout] 415 | while split.0 != "" || (split.0 == "" && split.1.contains("\n")) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `split.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison to empty slice [INFO] [stdout] --> src/lib.rs:417:38 [INFO] [stdout] | [INFO] [stdout] 417 | if split.1.contains("\n") && split.0 == "" { [INFO] [stdout] | ^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `split.0.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_to_empty [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/lib.rs:561:8 [INFO] [stdout] | [INFO] [stdout] 561 | if save_output.single.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!save_output.single.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/lib.rs:565:8 [INFO] [stdout] | [INFO] [stdout] 565 | if save_output.multi.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!save_output.multi.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/systeminformation/system.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | r#virtual: vec!["virtualbox", "kvm", "virtual machine", "bochs"].contains(&model_str) || model_str.starts_with("vmware")... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `["virtualbox", "kvm", "virtual machine", "bochs"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/lib.rs:561:8 [INFO] [stdout] | [INFO] [stdout] 561 | if save_output.single.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!save_output.single.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> src/lib.rs:565:8 [INFO] [stdout] | [INFO] [stdout] 565 | if save_output.multi.len() > 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!save_output.multi.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/systeminformation/system.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | r#virtual: vec!["virtualbox", "kvm", "virtual machine", "bochs"].contains(&model_str) || model_str.starts_with("vmware")... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `["virtualbox", "kvm", "virtual machine", "bochs"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.00s [INFO] running `Command { std: "docker" "inspect" "89d1860ce3667fec7e71f87aabb1c4f12cf9d0507942234259c0246e12999726", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89d1860ce3667fec7e71f87aabb1c4f12cf9d0507942234259c0246e12999726", kill_on_drop: false }` [INFO] [stdout] 89d1860ce3667fec7e71f87aabb1c4f12cf9d0507942234259c0246e12999726