[INFO] cloning repository https://github.com/Strange21/Rust_DataStructure_Algo
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Strange21/Rust_DataStructure_Algo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrange21%2FRust_DataStructure_Algo", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrange21%2FRust_DataStructure_Algo'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3d93cc41b8c9ecb0927c7ea47b427fa5a1c6b4e2
[INFO] checking Strange21/Rust_DataStructure_Algo against try#fa4dd1f19bfeb3fd235dc7f1406c42404436bef5 for pr-145108-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStrange21%2FRust_DataStructure_Algo" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Strange21/Rust_DataStructure_Algo
[INFO] finished tweaking git repo https://github.com/Strange21/Rust_DataStructure_Algo
[INFO] tweaked toml for git repo https://github.com/Strange21/Rust_DataStructure_Algo written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Strange21/Rust_DataStructure_Algo on toolchain fa4dd1f19bfeb3fd235dc7f1406c42404436bef5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Strange21/Rust_DataStructure_Algo 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" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded clap v4.5.23
[INFO] [stderr]   Downloaded clap_builder v4.5.23
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 820e234094b0fe1cace727421cd0e8c0e96e2b9f14c66de3ad71b68a33787f0d
[INFO] running `Command { std: "docker" "start" "-a" "820e234094b0fe1cace727421cd0e8c0e96e2b9f14c66de3ad71b68a33787f0d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "820e234094b0fe1cace727421cd0e8c0e96e2b9f14c66de3ad71b68a33787f0d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "820e234094b0fe1cace727421cd0e8c0e96e2b9f14c66de3ad71b68a33787f0d", kill_on_drop: false }`
[INFO] [stdout] 820e234094b0fe1cace727421cd0e8c0e96e2b9f14c66de3ad71b68a33787f0d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ea3f734784c0f65e7252c561384c83f09a6b33f75dc4d110c0ece02811518d67
[INFO] running `Command { std: "docker" "start" "-a" "ea3f734784c0f65e7252c561384c83f09a6b33f75dc4d110c0ece02811518d67", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling serde v1.0.216
[INFO] [stderr]     Checking either v1.13.0
[INFO] [stderr]    Compiling libc v0.2.168
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]    Compiling serde_json v1.0.133
[INFO] [stderr]     Checking plotters-backend v0.3.7
[INFO] [stderr]     Checking clap_lex v0.7.4
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking itoa v1.0.14
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking half v2.4.1
[INFO] [stderr]     Checking anstyle v1.0.10
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking plotters-svg v0.3.7
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]     Checking walkdir v2.5.0
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]     Checking anes v0.1.6
[INFO] [stderr]     Checking oorandom v11.1.4
[INFO] [stderr]     Checking once_cell v1.20.2
[INFO] [stderr]     Checking rust_datastructure_algo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking clap_builder v4.5.23
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         while (left < right) {
[INFO] [stdout]    |               ^            ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 37 -         while (left < right) {
[INFO] [stdout] 37 +         while left < right  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:59:11
[INFO] [stdout]    |
[INFO] [stdout] 59 |     while (i < arr.len() -1){
[INFO] [stdout]    |           ^                ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 59 -     while (i < arr.len() -1){
[INFO] [stdout] 59 +     while i < arr.len() -1 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]    --> src/vector.rs:132:14
[INFO] [stdout]     |
[INFO] [stdout] 132 |     for i in (0..len-1){
[INFO] [stdout]     |              ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 132 -     for i in (0..len-1){
[INFO] [stdout] 132 +     for i in 0..len-1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:172:11
[INFO] [stdout]     |
[INFO] [stdout] 172 |     while (arr[left] < smallest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 172 -     while (arr[left] < smallest){
[INFO] [stdout] 172 +     while arr[left] < smallest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:177:11
[INFO] [stdout]     |
[INFO] [stdout] 177 |     while (arr[right] > largest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 177 -     while (arr[right] > largest){
[INFO] [stdout] 177 +     while arr[right] > largest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:206:14
[INFO] [stdout]     |
[INFO] [stdout] 206 |         while(!visited[node]){
[INFO] [stdout]     |              ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 206 -         while(!visited[node]){
[INFO] [stdout] 206 +         while !visited[node] {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/vector.rs:292:30
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let mut left = i + 1;;
[INFO] [stdout]     |                              ^ help: remove this semicolon
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:294:14
[INFO] [stdout]     |
[INFO] [stdout] 294 |         while(left < right){
[INFO] [stdout]     |              ^            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 294 -         while(left < right){
[INFO] [stdout] 294 +         while left < right {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `cmp::max`, `hash_set`, `i32::MIN`, and `result`
[INFO] [stdout]  --> src/fizzbuzz.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     cmp::max, collections::{hash_set, HashMap, HashSet}, i32::MIN, result
[INFO] [stdout]   |     ^^^^^^^^                ^^^^^^^^  ^^^^^^^  ^^^^^^^   ^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/vector.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let mut len = arr.capacity() - 1;
[INFO] [stdout]    |         ----^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `left` is never read
[INFO] [stdout]   --> src/vector.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 left += 1;
[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: value assigned to `right` is never read
[INFO] [stdout]   --> src/vector.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 right -= 1;
[INFO] [stdout]    |                 ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/vector.rs:116:9
[INFO] [stdout]     |
[INFO] [stdout] 116 |     let mut len = arr.len(); // get the lenght   
[INFO] [stdout]     |         ----^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `isOutOfOrder` should have a snake case name
[INFO] [stdout]    --> src/vector.rs:142:4
[INFO] [stdout]     |
[INFO] [stdout] 142 | fn isOutOfOrder(arr: &Vec<i32>, i: usize) -> bool{
[INFO] [stdout]     |    ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_out_of_order`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `cmp::max`, `hash_set`, `i32::MIN`, and `result`
[INFO] [stdout]  --> src/fizzbuzz.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     cmp::max, collections::{hash_set, HashMap, HashSet}, i32::MIN, result
[INFO] [stdout]   |     ^^^^^^^^                ^^^^^^^^  ^^^^^^^  ^^^^^^^   ^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         while (left < right) {
[INFO] [stdout]    |               ^            ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 37 -         while (left < right) {
[INFO] [stdout] 37 +         while left < right  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:59:11
[INFO] [stdout]    |
[INFO] [stdout] 59 |     while (i < arr.len() -1){
[INFO] [stdout]    |           ^                ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 59 -     while (i < arr.len() -1){
[INFO] [stdout] 59 +     while i < arr.len() -1 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]    --> src/vector.rs:132:14
[INFO] [stdout]     |
[INFO] [stdout] 132 |     for i in (0..len-1){
[INFO] [stdout]     |              ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 132 -     for i in (0..len-1){
[INFO] [stdout] 132 +     for i in 0..len-1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:172:11
[INFO] [stdout]     |
[INFO] [stdout] 172 |     while (arr[left] < smallest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 172 -     while (arr[left] < smallest){
[INFO] [stdout] 172 +     while arr[left] < smallest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:177:11
[INFO] [stdout]     |
[INFO] [stdout] 177 |     while (arr[right] > largest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 177 -     while (arr[right] > largest){
[INFO] [stdout] 177 +     while arr[right] > largest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:206:14
[INFO] [stdout]     |
[INFO] [stdout] 206 |         while(!visited[node]){
[INFO] [stdout]     |              ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 206 -         while(!visited[node]){
[INFO] [stdout] 206 +         while !visited[node] {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/vector.rs:292:30
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let mut left = i + 1;;
[INFO] [stdout]     |                              ^ help: remove this semicolon
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:294:14
[INFO] [stdout]     |
[INFO] [stdout] 294 |         while(left < right){
[INFO] [stdout]     |              ^            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 294 -         while(left < right){
[INFO] [stdout] 294 +         while left < right {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `max_subarray`
[INFO] [stdout]  --> src/main.rs:4:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rust_datastructure_algo::vector::{max_subarray, three_sum};
[INFO] [stdout]   |                                       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `array_product`, `longest_band`, `min_num_swap`, `mountain`, `pairs`, `rains`, `sub_array_sort`, and `triplet`
[INFO] [stdout]  --> src/main.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use vector::{array_product, longest_band, min_num_swap, mountain, pairs, rains, sub_array_sort, triplet};
[INFO] [stdout]   |              ^^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^  ^^^^^  ^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/vector.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let mut len = arr.capacity() - 1;
[INFO] [stdout]    |         ----^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `left` is never read
[INFO] [stdout]   --> src/vector.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 left += 1;
[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: value assigned to `right` is never read
[INFO] [stdout]   --> src/vector.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 right -= 1;
[INFO] [stdout]    |                 ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/vector.rs:116:9
[INFO] [stdout]     |
[INFO] [stdout] 116 |     let mut len = arr.len(); // get the lenght   
[INFO] [stdout]     |         ----^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `isOutOfOrder` should have a snake case name
[INFO] [stdout]    --> src/vector.rs:142:4
[INFO] [stdout]     |
[INFO] [stdout] 142 | fn isOutOfOrder(arr: &Vec<i32>, i: usize) -> bool{
[INFO] [stdout]     |    ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_out_of_order`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking ciborium-ll v0.2.2
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking crossbeam-deque v0.8.5
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]     Checking is-terminal v0.4.13
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]     Checking criterion-plot v0.5.0
[INFO] [stderr]     Checking clap v4.5.23
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]    Compiling serde_derive v1.0.216
[INFO] [stderr]     Checking ciborium v0.2.2
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]     Checking criterion v0.5.1
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         while (left < right) {
[INFO] [stdout]    |               ^            ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 37 -         while (left < right) {
[INFO] [stdout] 37 +         while left < right  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:59:11
[INFO] [stdout]    |
[INFO] [stdout] 59 |     while (i < arr.len() -1){
[INFO] [stdout]    |           ^                ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 59 -     while (i < arr.len() -1){
[INFO] [stdout] 59 +     while i < arr.len() -1 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]    --> src/vector.rs:132:14
[INFO] [stdout]     |
[INFO] [stdout] 132 |     for i in (0..len-1){
[INFO] [stdout]     |              ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 132 -     for i in (0..len-1){
[INFO] [stdout] 132 +     for i in 0..len-1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:172:11
[INFO] [stdout]     |
[INFO] [stdout] 172 |     while (arr[left] < smallest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 172 -     while (arr[left] < smallest){
[INFO] [stdout] 172 +     while arr[left] < smallest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:177:11
[INFO] [stdout]     |
[INFO] [stdout] 177 |     while (arr[right] > largest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 177 -     while (arr[right] > largest){
[INFO] [stdout] 177 +     while arr[right] > largest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:206:14
[INFO] [stdout]     |
[INFO] [stdout] 206 |         while(!visited[node]){
[INFO] [stdout]     |              ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 206 -         while(!visited[node]){
[INFO] [stdout] 206 +         while !visited[node] {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/vector.rs:292:30
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let mut left = i + 1;;
[INFO] [stdout]     |                              ^ help: remove this semicolon
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:294:14
[INFO] [stdout]     |
[INFO] [stdout] 294 |         while(left < right){
[INFO] [stdout]     |              ^            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 294 -         while(left < right){
[INFO] [stdout] 294 +         while left < right {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `cmp::max`, `hash_set`, `i32::MIN`, and `result`
[INFO] [stdout]  --> src/fizzbuzz.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     cmp::max, collections::{hash_set, HashMap, HashSet}, i32::MIN, result
[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: `triplet`
[INFO] [stdout]  --> benches/play_game.rs:4:67
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rust_datastructure_algo::vector::{longest_band, max_subarray, triplet}; // Replace with the correct module path
[INFO] [stdout]   |                                                                   ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, `cmp::max`, `hash_set`, `i32::MIN`, and `result`
[INFO] [stdout]  --> src/fizzbuzz.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     cmp::max, collections::{hash_set, HashMap, HashSet}, i32::MIN, result
[INFO] [stdout]   |     ^^^^^^^^                ^^^^^^^^  ^^^^^^^  ^^^^^^^   ^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         while (left < right) {
[INFO] [stdout]    |               ^            ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 37 -         while (left < right) {
[INFO] [stdout] 37 +         while left < right  {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]   --> src/vector.rs:59:11
[INFO] [stdout]    |
[INFO] [stdout] 59 |     while (i < arr.len() -1){
[INFO] [stdout]    |           ^                ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 59 -     while (i < arr.len() -1){
[INFO] [stdout] 59 +     while i < arr.len() -1 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression
[INFO] [stdout]    --> src/vector.rs:132:14
[INFO] [stdout]     |
[INFO] [stdout] 132 |     for i in (0..len-1){
[INFO] [stdout]     |              ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 132 -     for i in (0..len-1){
[INFO] [stdout] 132 +     for i in 0..len-1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:172:11
[INFO] [stdout]     |
[INFO] [stdout] 172 |     while (arr[left] < smallest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 172 -     while (arr[left] < smallest){
[INFO] [stdout] 172 +     while arr[left] < smallest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:177:11
[INFO] [stdout]     |
[INFO] [stdout] 177 |     while (arr[right] > largest){
[INFO] [stdout]     |           ^                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 177 -     while (arr[right] > largest){
[INFO] [stdout] 177 +     while arr[right] > largest {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:206:14
[INFO] [stdout]     |
[INFO] [stdout] 206 |         while(!visited[node]){
[INFO] [stdout]     |              ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 206 -         while(!visited[node]){
[INFO] [stdout] 206 +         while !visited[node] {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/vector.rs:292:30
[INFO] [stdout]     |
[INFO] [stdout] 292 |         let mut left = i + 1;;
[INFO] [stdout]     |                              ^ help: remove this semicolon
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/vector.rs:294:14
[INFO] [stdout]     |
[INFO] [stdout] 294 |         while(left < right){
[INFO] [stdout]     |              ^            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 294 -         while(left < right){
[INFO] [stdout] 294 +         while left < right {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `max_subarray`
[INFO] [stdout]  --> src/main.rs:4:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rust_datastructure_algo::vector::{max_subarray, three_sum};
[INFO] [stdout]   |                                       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `array_product`, `longest_band`, `min_num_swap`, `mountain`, `pairs`, `rains`, `sub_array_sort`, and `triplet`
[INFO] [stdout]  --> src/main.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | use vector::{array_product, longest_band, min_num_swap, mountain, pairs, rains, sub_array_sort, triplet};
[INFO] [stdout]   |              ^^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^  ^^^^^  ^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/vector.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let mut len = arr.capacity() - 1;
[INFO] [stdout]    |         ----^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/vector.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let mut len = arr.capacity() - 1;
[INFO] [stdout]    |         ----^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `left` is never read
[INFO] [stdout]   --> src/vector.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 left += 1;
[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: value assigned to `right` is never read
[INFO] [stdout]   --> src/vector.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 right -= 1;
[INFO] [stdout]    |                 ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `left` is never read
[INFO] [stdout]   --> src/vector.rs:41:17
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 left += 1;
[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: value assigned to `right` is never read
[INFO] [stdout]   --> src/vector.rs:42:17
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 right -= 1;
[INFO] [stdout]    |                 ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/vector.rs:116:9
[INFO] [stdout]     |
[INFO] [stdout] 116 |     let mut len = arr.len(); // get the lenght   
[INFO] [stdout]     |         ----^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/vector.rs:116:9
[INFO] [stdout]     |
[INFO] [stdout] 116 |     let mut len = arr.len(); // get the lenght   
[INFO] [stdout]     |         ----^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `isOutOfOrder` should have a snake case name
[INFO] [stdout]    --> src/vector.rs:142:4
[INFO] [stdout]     |
[INFO] [stdout] 142 | fn isOutOfOrder(arr: &Vec<i32>, i: usize) -> bool{
[INFO] [stdout]     |    ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_out_of_order`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `isOutOfOrder` should have a snake case name
[INFO] [stdout]    --> src/vector.rs:142:4
[INFO] [stdout]     |
[INFO] [stdout] 142 | fn isOutOfOrder(arr: &Vec<i32>, i: usize) -> bool{
[INFO] [stdout]     |    ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_out_of_order`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.60s
[INFO] running `Command { std: "docker" "inspect" "ea3f734784c0f65e7252c561384c83f09a6b33f75dc4d110c0ece02811518d67", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ea3f734784c0f65e7252c561384c83f09a6b33f75dc4d110c0ece02811518d67", kill_on_drop: false }`
[INFO] [stdout] ea3f734784c0f65e7252c561384c83f09a6b33f75dc4d110c0ece02811518d67
