[INFO] fetching crate cvss_tools 0.3.0... [INFO] linting cvss_tools-0.3.0 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate cvss_tools 0.3.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate cvss_tools 0.3.0 [INFO] finished tweaking crates.io crate cvss_tools 0.3.0 [INFO] tweaked toml for crates.io crate cvss_tools 0.3.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cvss_tools 0.3.0 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 cvss_tools 0.3.0 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] Downloading crates ... [INFO] [stderr] Downloaded serde_json v1.0.114 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] b472e53b075600aa34f92441b3b865fae2ee7eac6e685ddad5027a155b5fd9b1 [INFO] running `Command { std: "docker" "start" "-a" "b472e53b075600aa34f92441b3b865fae2ee7eac6e685ddad5027a155b5fd9b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b472e53b075600aa34f92441b3b865fae2ee7eac6e685ddad5027a155b5fd9b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b472e53b075600aa34f92441b3b865fae2ee7eac6e685ddad5027a155b5fd9b1", kill_on_drop: false }` [INFO] [stdout] b472e53b075600aa34f92441b3b865fae2ee7eac6e685ddad5027a155b5fd9b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 91db495241bdf1e75ac29b35ede8c99d05c9ca72f9b318c462e94ab21c752cc3 [INFO] running `Command { std: "docker" "start" "-a" "91db495241bdf1e75ac29b35ede8c99d05c9ca72f9b318c462e94ab21c752cc3", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking cvss_tools v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [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: `std::io::BufReader` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `score_eq3eq6_next_lower_macro` is never read [INFO] [stdout] --> src/lib.rs:720:50 [INFO] [stdout] | [INFO] [stdout] 720 | let mut score_eq3eq6_next_lower_macro: f64 = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 207 | / if vector.contains_key(&metric_with_m) { [INFO] [stdout] 208 | | if vector[&metric_with_m] != "X" { [INFO] [stdout] 209 | | return match vector.get(&metric_with_m) { [INFO] [stdout] 210 | | Some(metric_value) => metric_value.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 214 | | } [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] 207 ~ if vector.contains_key(&metric_with_m) [INFO] [stdout] 208 ~ && vector[&metric_with_m] != "X" { [INFO] [stdout] 209 | return match vector.get(&metric_with_m) { [INFO] [stdout] ... [INFO] [stdout] 212 | }; [INFO] [stdout] 213 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | && !(av_value == "P") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `(av_value != "P")` [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] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | if !(msi_value == "S" || msa_value == "S") [INFO] [stdout] | ________^ [INFO] [stdout] 306 | | && !(sc_value == "H" || si_value == "H" || sa_value == "H") [INFO] [stdout] | |___________________________________________________________________^ help: try: `!(msi_value == "S" || msa_value == "S" || sc_value == "H" || si_value == "H" || sa_value == "H")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/lib.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 351 | return 0; [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] 351 - return 0; [INFO] [stdout] 351 + 0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:395:18 [INFO] [stdout] | [INFO] [stdout] 395 | (0 as u8, vec!["SC:H/SI:S/SA:S/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `0_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:396:18 [INFO] [stdout] | [INFO] [stdout] 396 | (1 as u8, vec!["SC:H/SI:H/SA:H/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `1_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:397:18 [INFO] [stdout] | [INFO] [stdout] 397 | (2 as u8, vec!["SC:L/SI:L/SA:L/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `2_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:403:18 [INFO] [stdout] | [INFO] [stdout] 403 | (0 as u8, vec!["E:A/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `0_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:404:18 [INFO] [stdout] | [INFO] [stdout] 404 | (1 as u8, vec!["E:P/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `1_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:405:18 [INFO] [stdout] | [INFO] [stdout] 405 | (2 as u8, vec!["E:U/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `2_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | 0 as u8, [INFO] [stdout] | ^^^^^^^ help: try: `0_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | 1 as u8, [INFO] [stdout] | ^^^^^^^ help: try: `1_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | 2 as u8, [INFO] [stdout] | ^^^^^^^ help: try: `2_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> src/lib.rs:957:5 [INFO] [stdout] | [INFO] [stdout] 957 | / if score < 0.0 { [INFO] [stdout] 958 | | score = 0.0; [INFO] [stdout] ... | [INFO] [stdout] 962 | | score = 10.0; [INFO] [stdout] 963 | | } [INFO] [stdout] | |_____^ help: replace with clamp: `score = score.clamp(0.0, 10.0);` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() [INFO] [stdout] = note: clamp returns NaN if the input is NaN [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/lib.rs:945:18 [INFO] [stdout] | [INFO] [stdout] 945 | value if value == 0.0 => 0.0, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] = note: `#[warn(clippy::redundant_guards)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 945 - value if value == 0.0 => 0.0, [INFO] [stdout] 945 + 0.0 => 0.0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/lib.rs:1055:18 [INFO] [stdout] | [INFO] [stdout] 1055 | value if value == 0.0 => 0.0, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1055 - value if value == 0.0 => 0.0, [INFO] [stdout] 1055 + 0.0 => 0.0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/lib.rs:1221:18 [INFO] [stdout] | [INFO] [stdout] 1221 | value if value == 0.0 => 0.0, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1221 - value if value == 0.0 => 0.0, [INFO] [stdout] 1221 + 0.0 => 0.0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `score_eq3eq6_next_lower_macro` is never read [INFO] [stdout] --> src/lib.rs:720:50 [INFO] [stdout] | [INFO] [stdout] 720 | let mut score_eq3eq6_next_lower_macro: f64 = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:567:33 [INFO] [stdout] | [INFO] [stdout] 567 | let eq_1_next_lower_macro = vec![ [INFO] [stdout] | _________________________________^ [INFO] [stdout] 568 | | macro_vector["eq_1"] + 1, [INFO] [stdout] 569 | | macro_vector["eq_2"], [INFO] [stdout] 570 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 573 | | macro_vector["eq_6"], [INFO] [stdout] 574 | | ] [INFO] [stdout] | |_____^ [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] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 567 ~ let eq_1_next_lower_macro = [macro_vector["eq_1"] + 1, [INFO] [stdout] 568 + macro_vector["eq_2"], [INFO] [stdout] 569 + macro_vector["eq_3"], [INFO] [stdout] 570 + macro_vector["eq_4"], [INFO] [stdout] 571 + macro_vector["eq_5"], [INFO] [stdout] 572 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:580:33 [INFO] [stdout] | [INFO] [stdout] 580 | let eq_2_next_lower_macro = vec![ [INFO] [stdout] | _________________________________^ [INFO] [stdout] 581 | | macro_vector["eq_1"], [INFO] [stdout] 582 | | macro_vector["eq_2"] + 1, [INFO] [stdout] 583 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 586 | | macro_vector["eq_6"], [INFO] [stdout] 587 | | ] [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 580 ~ let eq_2_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 581 + macro_vector["eq_2"] + 1, [INFO] [stdout] 582 + macro_vector["eq_3"], [INFO] [stdout] 583 + macro_vector["eq_4"], [INFO] [stdout] 584 + macro_vector["eq_5"], [INFO] [stdout] 585 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:601:35 [INFO] [stdout] | [INFO] [stdout] 601 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 602 | | macro_vector["eq_1"], [INFO] [stdout] 603 | | macro_vector["eq_2"], [INFO] [stdout] 604 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 607 | | macro_vector["eq_6"], [INFO] [stdout] 608 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 601 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 602 + macro_vector["eq_2"], [INFO] [stdout] 603 + macro_vector["eq_3"] + 1, [INFO] [stdout] 604 + macro_vector["eq_4"], [INFO] [stdout] 605 + macro_vector["eq_5"], [INFO] [stdout] 606 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:615:35 [INFO] [stdout] | [INFO] [stdout] 615 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 616 | | macro_vector["eq_1"], [INFO] [stdout] 617 | | macro_vector["eq_2"], [INFO] [stdout] 618 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 621 | | macro_vector["eq_6"], [INFO] [stdout] 622 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 615 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 616 + macro_vector["eq_2"], [INFO] [stdout] 617 + macro_vector["eq_3"] + 1, [INFO] [stdout] 618 + macro_vector["eq_4"], [INFO] [stdout] 619 + macro_vector["eq_5"], [INFO] [stdout] 620 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:629:35 [INFO] [stdout] | [INFO] [stdout] 629 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 630 | | macro_vector["eq_1"], [INFO] [stdout] 631 | | macro_vector["eq_2"], [INFO] [stdout] 632 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 635 | | macro_vector["eq_6"] + 1, [INFO] [stdout] 636 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 629 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 630 + macro_vector["eq_2"], [INFO] [stdout] 631 + macro_vector["eq_3"], [INFO] [stdout] 632 + macro_vector["eq_4"], [INFO] [stdout] 633 + macro_vector["eq_5"], [INFO] [stdout] 634 + macro_vector["eq_6"] + 1] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:644:40 [INFO] [stdout] | [INFO] [stdout] 644 | eq3eq6_next_lower_macro_left = vec![ [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 645 | | macro_vector["eq_1"], [INFO] [stdout] 646 | | macro_vector["eq_2"], [INFO] [stdout] 647 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 650 | | macro_vector["eq_6"] + 1, [INFO] [stdout] 651 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 644 ~ eq3eq6_next_lower_macro_left = [macro_vector["eq_1"], [INFO] [stdout] 645 + macro_vector["eq_2"], [INFO] [stdout] 646 + macro_vector["eq_3"], [INFO] [stdout] 647 + macro_vector["eq_4"], [INFO] [stdout] 648 + macro_vector["eq_5"], [INFO] [stdout] 649 + macro_vector["eq_6"] + 1] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:656:41 [INFO] [stdout] | [INFO] [stdout] 656 | eq3eq6_next_lower_macro_right = vec![ [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 657 | | macro_vector["eq_1"], [INFO] [stdout] 658 | | macro_vector["eq_2"], [INFO] [stdout] 659 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 662 | | macro_vector["eq_6"], [INFO] [stdout] 663 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 656 ~ eq3eq6_next_lower_macro_right = [macro_vector["eq_1"], [INFO] [stdout] 657 + macro_vector["eq_2"], [INFO] [stdout] 658 + macro_vector["eq_3"] + 1, [INFO] [stdout] 659 + macro_vector["eq_4"], [INFO] [stdout] 660 + macro_vector["eq_5"], [INFO] [stdout] 661 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:670:35 [INFO] [stdout] | [INFO] [stdout] 670 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 671 | | macro_vector["eq_1"], [INFO] [stdout] 672 | | macro_vector["eq_2"], [INFO] [stdout] 673 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 676 | | macro_vector["eq_6"] + 1, [INFO] [stdout] 677 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 670 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 671 + macro_vector["eq_2"], [INFO] [stdout] 672 + macro_vector["eq_3"] + 1, [INFO] [stdout] 673 + macro_vector["eq_4"], [INFO] [stdout] 674 + macro_vector["eq_5"], [INFO] [stdout] 675 + macro_vector["eq_6"] + 1] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:684:32 [INFO] [stdout] | [INFO] [stdout] 684 | let eq4_next_lower_macro = vec![ [INFO] [stdout] | ________________________________^ [INFO] [stdout] 685 | | macro_vector["eq_1"], [INFO] [stdout] 686 | | macro_vector["eq_2"], [INFO] [stdout] 687 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 690 | | macro_vector["eq_6"], [INFO] [stdout] 691 | | ] [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 684 ~ let eq4_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 685 + macro_vector["eq_2"], [INFO] [stdout] 686 + macro_vector["eq_3"], [INFO] [stdout] 687 + macro_vector["eq_4"] + 1, [INFO] [stdout] 688 + macro_vector["eq_5"], [INFO] [stdout] 689 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:697:32 [INFO] [stdout] | [INFO] [stdout] 697 | let eq5_next_lower_macro = vec![ [INFO] [stdout] | ________________________________^ [INFO] [stdout] 698 | | macro_vector["eq_1"], [INFO] [stdout] 699 | | macro_vector["eq_2"], [INFO] [stdout] 700 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 703 | | macro_vector["eq_6"], [INFO] [stdout] 704 | | ] [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 697 ~ let eq5_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 698 + macro_vector["eq_2"], [INFO] [stdout] 699 + macro_vector["eq_3"], [INFO] [stdout] 700 + macro_vector["eq_4"], [INFO] [stdout] 701 + macro_vector["eq_5"] + 1, [INFO] [stdout] 702 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 207 | / if vector.contains_key(&metric_with_m) { [INFO] [stdout] 208 | | if vector[&metric_with_m] != "X" { [INFO] [stdout] 209 | | return match vector.get(&metric_with_m) { [INFO] [stdout] 210 | | Some(metric_value) => metric_value.to_string(), [INFO] [stdout] ... | [INFO] [stdout] 214 | | } [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] 207 ~ if vector.contains_key(&metric_with_m) [INFO] [stdout] 208 ~ && vector[&metric_with_m] != "X" { [INFO] [stdout] 209 | return match vector.get(&metric_with_m) { [INFO] [stdout] ... [INFO] [stdout] 212 | }; [INFO] [stdout] 213 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | && !(av_value == "P") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `(av_value != "P")` [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] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:305:8 [INFO] [stdout] | [INFO] [stdout] 305 | if !(msi_value == "S" || msa_value == "S") [INFO] [stdout] | ________^ [INFO] [stdout] 306 | | && !(sc_value == "H" || si_value == "H" || sa_value == "H") [INFO] [stdout] | |___________________________________________________________________^ help: try: `!(msi_value == "S" || msa_value == "S" || sc_value == "H" || si_value == "H" || sa_value == "H")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/lib.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 351 | return 0; [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] 351 - return 0; [INFO] [stdout] 351 + 0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:395:18 [INFO] [stdout] | [INFO] [stdout] 395 | (0 as u8, vec!["SC:H/SI:S/SA:S/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `0_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:396:18 [INFO] [stdout] | [INFO] [stdout] 396 | (1 as u8, vec!["SC:H/SI:H/SA:H/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `1_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:397:18 [INFO] [stdout] | [INFO] [stdout] 397 | (2 as u8, vec!["SC:L/SI:L/SA:L/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `2_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:403:18 [INFO] [stdout] | [INFO] [stdout] 403 | (0 as u8, vec!["E:A/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `0_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:404:18 [INFO] [stdout] | [INFO] [stdout] 404 | (1 as u8, vec!["E:P/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `1_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:405:18 [INFO] [stdout] | [INFO] [stdout] 405 | (2 as u8, vec!["E:U/".to_string()]), [INFO] [stdout] | ^^^^^^^ help: try: `2_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | 0 as u8, [INFO] [stdout] | ^^^^^^^ help: try: `0_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:430:13 [INFO] [stdout] | [INFO] [stdout] 430 | 1 as u8, [INFO] [stdout] | ^^^^^^^ help: try: `1_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `u8` is unnecessary [INFO] [stdout] --> src/lib.rs:452:13 [INFO] [stdout] | [INFO] [stdout] 452 | 2 as u8, [INFO] [stdout] | ^^^^^^^ help: try: `2_u8` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> src/lib.rs:957:5 [INFO] [stdout] | [INFO] [stdout] 957 | / if score < 0.0 { [INFO] [stdout] 958 | | score = 0.0; [INFO] [stdout] ... | [INFO] [stdout] 962 | | score = 10.0; [INFO] [stdout] 963 | | } [INFO] [stdout] | |_____^ help: replace with clamp: `score = score.clamp(0.0, 10.0);` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() [INFO] [stdout] = note: clamp returns NaN if the input is NaN [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_base_score_v_2` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cvss_tools::calculate_base_score_v_2; [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: `cvss_tools::calculate_score_v_4` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cvss_tools::calculate_score_v_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_severity_v_2` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cvss_tools::calculate_severity_v_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_severity_v_4` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use cvss_tools::calculate_severity_v_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_temp_score_v_2` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use cvss_tools::calculate_temp_score_v_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_base_score_v_2` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cvss_tools::calculate_base_score_v_2; [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: `cvss_tools::calculate_score_v_4` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cvss_tools::calculate_score_v_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_severity_v_2` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cvss_tools::calculate_severity_v_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_severity_v_4` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use cvss_tools::calculate_severity_v_4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvss_tools::calculate_temp_score_v_2` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use cvss_tools::calculate_temp_score_v_2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/lib.rs:945:18 [INFO] [stdout] | [INFO] [stdout] 945 | value if value == 0.0 => 0.0, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] = note: `#[warn(clippy::redundant_guards)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 945 - value if value == 0.0 => 0.0, [INFO] [stdout] 945 + 0.0 => 0.0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/lib.rs:1055:18 [INFO] [stdout] | [INFO] [stdout] 1055 | value if value == 0.0 => 0.0, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1055 - value if value == 0.0 => 0.0, [INFO] [stdout] 1055 + 0.0 => 0.0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/lib.rs:1221:18 [INFO] [stdout] | [INFO] [stdout] 1221 | value if value == 0.0 => 0.0, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1221 - value if value == 0.0 => 0.0, [INFO] [stdout] 1221 + 0.0 => 0.0, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:567:33 [INFO] [stdout] | [INFO] [stdout] 567 | let eq_1_next_lower_macro = vec![ [INFO] [stdout] | _________________________________^ [INFO] [stdout] 568 | | macro_vector["eq_1"] + 1, [INFO] [stdout] 569 | | macro_vector["eq_2"], [INFO] [stdout] 570 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 573 | | macro_vector["eq_6"], [INFO] [stdout] 574 | | ] [INFO] [stdout] | |_____^ [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] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 567 ~ let eq_1_next_lower_macro = [macro_vector["eq_1"] + 1, [INFO] [stdout] 568 + macro_vector["eq_2"], [INFO] [stdout] 569 + macro_vector["eq_3"], [INFO] [stdout] 570 + macro_vector["eq_4"], [INFO] [stdout] 571 + macro_vector["eq_5"], [INFO] [stdout] 572 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:580:33 [INFO] [stdout] | [INFO] [stdout] 580 | let eq_2_next_lower_macro = vec![ [INFO] [stdout] | _________________________________^ [INFO] [stdout] 581 | | macro_vector["eq_1"], [INFO] [stdout] 582 | | macro_vector["eq_2"] + 1, [INFO] [stdout] 583 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 586 | | macro_vector["eq_6"], [INFO] [stdout] 587 | | ] [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 580 ~ let eq_2_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 581 + macro_vector["eq_2"] + 1, [INFO] [stdout] 582 + macro_vector["eq_3"], [INFO] [stdout] 583 + macro_vector["eq_4"], [INFO] [stdout] 584 + macro_vector["eq_5"], [INFO] [stdout] 585 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:601:35 [INFO] [stdout] | [INFO] [stdout] 601 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 602 | | macro_vector["eq_1"], [INFO] [stdout] 603 | | macro_vector["eq_2"], [INFO] [stdout] 604 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 607 | | macro_vector["eq_6"], [INFO] [stdout] 608 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 601 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 602 + macro_vector["eq_2"], [INFO] [stdout] 603 + macro_vector["eq_3"] + 1, [INFO] [stdout] 604 + macro_vector["eq_4"], [INFO] [stdout] 605 + macro_vector["eq_5"], [INFO] [stdout] 606 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:615:35 [INFO] [stdout] | [INFO] [stdout] 615 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 616 | | macro_vector["eq_1"], [INFO] [stdout] 617 | | macro_vector["eq_2"], [INFO] [stdout] 618 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 621 | | macro_vector["eq_6"], [INFO] [stdout] 622 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 615 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 616 + macro_vector["eq_2"], [INFO] [stdout] 617 + macro_vector["eq_3"] + 1, [INFO] [stdout] 618 + macro_vector["eq_4"], [INFO] [stdout] 619 + macro_vector["eq_5"], [INFO] [stdout] 620 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:629:35 [INFO] [stdout] | [INFO] [stdout] 629 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 630 | | macro_vector["eq_1"], [INFO] [stdout] 631 | | macro_vector["eq_2"], [INFO] [stdout] 632 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 635 | | macro_vector["eq_6"] + 1, [INFO] [stdout] 636 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 629 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 630 + macro_vector["eq_2"], [INFO] [stdout] 631 + macro_vector["eq_3"], [INFO] [stdout] 632 + macro_vector["eq_4"], [INFO] [stdout] 633 + macro_vector["eq_5"], [INFO] [stdout] 634 + macro_vector["eq_6"] + 1] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:644:40 [INFO] [stdout] | [INFO] [stdout] 644 | eq3eq6_next_lower_macro_left = vec![ [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 645 | | macro_vector["eq_1"], [INFO] [stdout] 646 | | macro_vector["eq_2"], [INFO] [stdout] 647 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 650 | | macro_vector["eq_6"] + 1, [INFO] [stdout] 651 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 644 ~ eq3eq6_next_lower_macro_left = [macro_vector["eq_1"], [INFO] [stdout] 645 + macro_vector["eq_2"], [INFO] [stdout] 646 + macro_vector["eq_3"], [INFO] [stdout] 647 + macro_vector["eq_4"], [INFO] [stdout] 648 + macro_vector["eq_5"], [INFO] [stdout] 649 + macro_vector["eq_6"] + 1] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:656:41 [INFO] [stdout] | [INFO] [stdout] 656 | eq3eq6_next_lower_macro_right = vec![ [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 657 | | macro_vector["eq_1"], [INFO] [stdout] 658 | | macro_vector["eq_2"], [INFO] [stdout] 659 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 662 | | macro_vector["eq_6"], [INFO] [stdout] 663 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 656 ~ eq3eq6_next_lower_macro_right = [macro_vector["eq_1"], [INFO] [stdout] 657 + macro_vector["eq_2"], [INFO] [stdout] 658 + macro_vector["eq_3"] + 1, [INFO] [stdout] 659 + macro_vector["eq_4"], [INFO] [stdout] 660 + macro_vector["eq_5"], [INFO] [stdout] 661 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:670:35 [INFO] [stdout] | [INFO] [stdout] 670 | eq3eq6_next_lower_macro = vec![ [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 671 | | macro_vector["eq_1"], [INFO] [stdout] 672 | | macro_vector["eq_2"], [INFO] [stdout] 673 | | macro_vector["eq_3"] + 1, [INFO] [stdout] ... | [INFO] [stdout] 676 | | macro_vector["eq_6"] + 1, [INFO] [stdout] 677 | | ] [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 670 ~ eq3eq6_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 671 + macro_vector["eq_2"], [INFO] [stdout] 672 + macro_vector["eq_3"] + 1, [INFO] [stdout] 673 + macro_vector["eq_4"], [INFO] [stdout] 674 + macro_vector["eq_5"], [INFO] [stdout] 675 + macro_vector["eq_6"] + 1] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:684:32 [INFO] [stdout] | [INFO] [stdout] 684 | let eq4_next_lower_macro = vec![ [INFO] [stdout] | ________________________________^ [INFO] [stdout] 685 | | macro_vector["eq_1"], [INFO] [stdout] 686 | | macro_vector["eq_2"], [INFO] [stdout] 687 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 690 | | macro_vector["eq_6"], [INFO] [stdout] 691 | | ] [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 684 ~ let eq4_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 685 + macro_vector["eq_2"], [INFO] [stdout] 686 + macro_vector["eq_3"], [INFO] [stdout] 687 + macro_vector["eq_4"] + 1, [INFO] [stdout] 688 + macro_vector["eq_5"], [INFO] [stdout] 689 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:697:32 [INFO] [stdout] | [INFO] [stdout] 697 | let eq5_next_lower_macro = vec![ [INFO] [stdout] | ________________________________^ [INFO] [stdout] 698 | | macro_vector["eq_1"], [INFO] [stdout] 699 | | macro_vector["eq_2"], [INFO] [stdout] 700 | | macro_vector["eq_3"], [INFO] [stdout] ... | [INFO] [stdout] 703 | | macro_vector["eq_6"], [INFO] [stdout] 704 | | ] [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 697 ~ let eq5_next_lower_macro = [macro_vector["eq_1"], [INFO] [stdout] 698 + macro_vector["eq_2"], [INFO] [stdout] 699 + macro_vector["eq_3"], [INFO] [stdout] 700 + macro_vector["eq_4"], [INFO] [stdout] 701 + macro_vector["eq_5"] + 1, [INFO] [stdout] 702 + macro_vector["eq_6"]] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:1312:22 [INFO] [stdout] | [INFO] [stdout] 1312 | for score in vec![0.0, 3.7, 3.9] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[0.0, 3.7, 3.9]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:1319:22 [INFO] [stdout] | [INFO] [stdout] 1319 | for score in vec![4.0, 5.0, 6.9] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[4.0, 5.0, 6.9]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/lib.rs:1326:22 [INFO] [stdout] | [INFO] [stdout] 1326 | for score in vec![7.0, 7.8, 10.0] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[7.0, 7.8, 10.0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.35s [INFO] running `Command { std: "docker" "inspect" "91db495241bdf1e75ac29b35ede8c99d05c9ca72f9b318c462e94ab21c752cc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91db495241bdf1e75ac29b35ede8c99d05c9ca72f9b318c462e94ab21c752cc3", kill_on_drop: false }` [INFO] [stdout] 91db495241bdf1e75ac29b35ede8c99d05c9ca72f9b318c462e94ab21c752cc3