[INFO] cloning repository https://github.com/kyunghyunHan/-Algorithm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kyunghyunHan/-Algorithm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkyunghyunHan%2F-Algorithm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkyunghyunHan%2F-Algorithm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 45c95d95b0e90f30e84704ace279be8537524219 [INFO] checking kyunghyunHan/-Algorithm against try#15e8bc6907ab2b3623cb52acc726f4787458df64 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FkyunghyunHan%2F-Algorithm" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kyunghyunHan/-Algorithm on toolchain 15e8bc6907ab2b3623cb52acc726f4787458df64 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kyunghyunHan/-Algorithm [INFO] finished tweaking git repo https://github.com/kyunghyunHan/-Algorithm [INFO] tweaked toml for git repo https://github.com/kyunghyunHan/-Algorithm written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kyunghyunHan/-Algorithm 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" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd749e58630c86b0bc2fdc1660a6b907a6b597c71a076688cee37f9c0bd8f40c [INFO] running `Command { std: "docker" "start" "-a" "fd749e58630c86b0bc2fdc1660a6b907a6b597c71a076688cee37f9c0bd8f40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd749e58630c86b0bc2fdc1660a6b907a6b597c71a076688cee37f9c0bd8f40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd749e58630c86b0bc2fdc1660a6b907a6b597c71a076688cee37f9c0bd8f40c", kill_on_drop: false }` [INFO] [stdout] fd749e58630c86b0bc2fdc1660a6b907a6b597c71a076688cee37f9c0bd8f40c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f7a99125bf03647bf011facc3489080472a772d7881df7b02ba8038012bf754 [INFO] running `Command { std: "docker" "start" "-a" "6f7a99125bf03647bf011facc3489080472a772d7881df7b02ba8038012bf754", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking algorithm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `BufWriter`, `Write`, `stdin`, and `stdout` [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | io::{stdin, stdout, BufRead, BufReader, BufWriter, Write}, [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/conding_test/backjun/back1253.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | if (i != k && j != k) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if (i != k && j != k) { [INFO] [stdout] 28 + if i != k && j != k { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/conding_test/books/a10.rs:1:61 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/conding_test/books/a16.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/conding_test/books/a17.rs:1:61 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/algorithms/greedy/jump_game/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `BufWriter`, `Write`, `stdin`, and `stdout` [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | io::{stdin, stdout, BufRead, BufReader, BufWriter, Write}, [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/conding_test/backjun/back1253.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | if (i != k && j != k) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if (i != k && j != k) { [INFO] [stdout] 28 + if i != k && j != k { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/conding_test/books/a10.rs:1:61 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/conding_test/books/a16.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/conding_test/books/a17.rs:1:61 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, stdout, BufRead, BufReader, BufWriter, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_vertex` [INFO] [stdout] --> src/algorithms/graph/eulerian/path.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(&first_vertex) = self.vertices.first() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_vertex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ratio` [INFO] [stdout] --> src/algorithms/greedy/knapsack/mod.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | for (i, ratio) in items { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_capacity` is never read [INFO] [stdout] --> src/algorithms/greedy/knapsack/mod.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | remaining_capacity = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_vertex` [INFO] [stdout] --> src/algorithms/graph/eulerian/path.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(&first_vertex) = self.vertices.first() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_vertex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | for i in 1..=n {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ratio` [INFO] [stdout] --> src/algorithms/greedy/knapsack/mod.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | for (i, ratio) in items { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_capacity` is never read [INFO] [stdout] --> src/algorithms/greedy/knapsack/mod.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | remaining_capacity = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | for i in 0..=n - 1 {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | fn sort(arr: &mut Vec, n: usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let n = arr.len() - 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let k = *arr.iter().max().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut arr: Vec = vec![16, 14, 10, 8, 7, 9, 3, 2, 4, 1]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | for i in 1..=n {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | for i in 0..=n - 1 {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | fn sort(arr: &mut Vec, n: usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let n = arr.len() - 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let k = *arr.iter().max().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut arr: Vec = vec![16, 14, 10, 8, 7, 9, 3, 2, 4, 1]; [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/conding_test/backjun/back1253.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/backjun/back1253.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut find = v[k]; [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/conding_test/books/a01.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a02.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/backjun/back1253.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/backjun/back1253.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let mut find = v[k]; [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/conding_test/books/a01.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a03.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a02.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a04.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a05.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a03.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a04.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a06.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a05.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a07.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a06.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a07.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut reader = BufReader::new(stdin().lock()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/conding_test/books/a10.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut writer = BufWriter::new(stdout().lock()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/conding_test/books/a10.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let n = input.parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/conding_test/books/a10.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let a = input [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/conding_test/books/a10.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 0..d { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/conding_test/books/a10.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let l = iter.next().unwrap().parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/conding_test/books/a10.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let r = iter.next().unwrap().parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conding_test/books/a10.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut writer = BufWriter::new(stdout().lock()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/conding_test/books/a11.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut a = [0; 100009]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conding_test/books/a11.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a11.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut a = [0; 100009]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/conding_test/books/a17.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut writer = BufWriter::new(stdout().lock()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/conding_test/books/a17.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let n = input.parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/conding_test/books/a17.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let a = input [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/conding_test/books/a17.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let b = input [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/conding_test/books/a10.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut writer = BufWriter::new(stdout().lock()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/conding_test/books/a10.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let n = input.parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/conding_test/books/a10.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let a = input [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/conding_test/books/a10.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 0..d { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/conding_test/books/a10.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let l = iter.next().unwrap().parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/conding_test/books/a10.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let r = iter.next().unwrap().parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conding_test/books/a17.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut writer = BufWriter::new(stdout().lock()); [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/conding_test/books/a10.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut writer = BufWriter::new(stdout().lock()); [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/conding_test/books/b02.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/conding_test/books/a11.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut a = [0; 100009]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conding_test/books/a11.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/b03.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/a11.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut a = [0; 100009]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `total` is never read [INFO] [stdout] --> src/conding_test/coders_cup/higher_or_lower/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut total = 0; [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/conding_test/coders_cup/palindrome_checking/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut c = input.chars().collect::>(); [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/conding_test/coders_cup/palindrome_checking/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut rev = c.iter().rev().map(|x| *x).collect::>(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writer` [INFO] [stdout] --> src/conding_test/books/a17.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut writer = BufWriter::new(stdout().lock()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/conding_test/books/a17.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let n = input.parse::().unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/conding_test/books/a17.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let a = input [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/conding_test/books/a17.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let b = input [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conding_test/books/a17.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut writer = BufWriter::new(stdout().lock()); [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/conding_test/books/b02.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [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/conding_test/books/b03.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut reader = BufReader::new(stdin().lock()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `total` is never read [INFO] [stdout] --> src/conding_test/coders_cup/higher_or_lower/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut total = 0; [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/conding_test/coders_cup/palindrome_checking/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut c = input.chars().collect::>(); [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/conding_test/coders_cup/palindrome_checking/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut rev = c.iter().rev().map(|x| *x).collect::>(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capacity` [INFO] [stdout] --> src/data_structure/array/mod.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn with_capacity(capacity: usize) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structure/array/mod.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn at(&self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structure/array/mod.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn insert(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structure/array/mod.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn erase(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/data_structure/array/mod.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn value_n_from_end(&self, n: usize) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/data_structure/graph/breadth_first_search.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | for i in 0..10{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `capacity` [INFO] [stdout] --> src/data_structure/array/mod.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn with_capacity(capacity: usize) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_capacity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structure/array/mod.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn at(&self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structure/array/mod.rs:43:30 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn insert(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structure/array/mod.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn erase(&mut self, index: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/data_structure/array/mod.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn value_n_from_end(&self, n: usize) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/data_structure/graph/breadth_first_search.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | for i in 0..10{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/data_structure/queue/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut new_node = Node::new(x); [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/data_structure/queue/mod.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut new_node = Node::new(x); [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/data_structure/queue/mod.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | self.head.take().map(|mut head| { [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/data_structure/queue/mod.rs:59:31 [INFO] [stdout] | [INFO] [stdout] 59 | self.head.take().map(|mut head| { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_graph` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn make_graph(n: usize, m: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_unvisited_neighbors` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn count_unvisited_neighbors(pos: usize, graph: &Vec>, visited: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warnsdorff_path` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn warnsdorff_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_multiply` is never used [INFO] [stdout] --> src/algorithms/divide_and_conquer/matrix_multiply.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn matrix_multiply( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad_matrix` is never used [INFO] [stdout] --> src/algorithms/divide_and_conquer/matrix_multiply.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn pad_matrix(matrix: &Vec>, new_size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpad_matrix` is never used [INFO] [stdout] --> src/algorithms/divide_and_conquer/matrix_multiply.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn unpad_matrix(matrix: Vec>, original_size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci2` is never used [INFO] [stdout] --> src/algorithms/dynamic_programming/fibonacci.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn fibonacci2(n: u64, memo: &mut HashMap) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci3` is never used [INFO] [stdout] --> src/algorithms/dynamic_programming/fibonacci.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn fibonacci3(n: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_eulerian_path` is never used [INFO] [stdout] --> src/algorithms/graph/eulerian/cycle.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn find_eulerian_path(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn search() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn example() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort` is never used [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn sort(arr: &mut Vec, n: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parent` is never used [INFO] [stdout] --> src/algorithms/sort/heap/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parent(i: usize) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quick_sort` is never used [INFO] [stdout] --> src/algorithms/sort/quick/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn quick_sort(a: &mut [i32], n: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solution` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_1.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn solution(movie: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_1.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solution` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn solution(p: String, n: i32) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_2.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn distance(x: f64, y: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_size` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | fn vector_size(x: f64, y: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_fn` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn inner_fn(x: f64, y: f64, x1: f64, y1: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solution` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_5.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn solution(foods: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_5.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/backjun/back1253.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a04.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a05.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a06.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a07.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a08.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/conding_test/books/a11.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn search(x: i32, n: i32, a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a11.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/coders_cup/maxinum_score_from_removing_stones/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs` is never used [INFO] [stdout] --> src/data_structure/graph/breadth_first_search.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn bfs(){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/data_structure/graph/depth_first_tree.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn dfs(){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs_visit` is never used [INFO] [stdout] --> src/data_structure/graph/depth_first_tree.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn dfs_visit(){} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/data_structure/queue/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Queue { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> src/data_structure/red_black_tree.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn example(){} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `top` is never used [INFO] [stdout] --> src/data_structure/stack/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Stack { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn top() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ptr`, `capacity`, and `size` are never read [INFO] [stdout] --> src/data_structure/vector/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Vector { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 2 | ptr: *mut T, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_graph` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn make_graph(n: usize, m: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_unvisited_neighbors` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn count_unvisited_neighbors(pos: usize, graph: &Vec>, visited: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warnsdorff_path` is never used [INFO] [stdout] --> src/algorithms/backtracking/knights_tour/warnsdorffs_path.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn warnsdorff_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_multiply` is never used [INFO] [stdout] --> src/algorithms/divide_and_conquer/matrix_multiply.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn matrix_multiply( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad_matrix` is never used [INFO] [stdout] --> src/algorithms/divide_and_conquer/matrix_multiply.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn pad_matrix(matrix: &Vec>, new_size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpad_matrix` is never used [INFO] [stdout] --> src/algorithms/divide_and_conquer/matrix_multiply.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn unpad_matrix(matrix: Vec>, original_size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci2` is never used [INFO] [stdout] --> src/algorithms/dynamic_programming/fibonacci.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn fibonacci2(n: u64, memo: &mut HashMap) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fibonacci3` is never used [INFO] [stdout] --> src/algorithms/dynamic_programming/fibonacci.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn fibonacci3(n: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_eulerian_path` is never used [INFO] [stdout] --> src/algorithms/graph/eulerian/cycle.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn find_eulerian_path(){} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn search() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> src/algorithms/search/linear_search/mod.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn example() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort` is never used [INFO] [stdout] --> src/algorithms/sort/bucket/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn sort(arr: &mut Vec, n: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parent` is never used [INFO] [stdout] --> src/algorithms/sort/heap/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parent(i: usize) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quick_sort` is never used [INFO] [stdout] --> src/algorithms/sort/quick/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn quick_sort(a: &mut [i32], n: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solution` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_1.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn solution(movie: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_1.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solution` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn solution(p: String, n: i32) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_2.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn distance(x: f64, y: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_size` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | fn vector_size(x: f64, y: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_fn` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn inner_fn(x: f64, y: f64, x1: f64, y1: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_3.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solution` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_5.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn solution(foods: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/ahrab/ahrab_5.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/backjun/back1253.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a04.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a05.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a06.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a07.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a08.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/conding_test/books/a11.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn search(x: i32, n: i32, a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/books/a11.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/conding_test/coders_cup/maxinum_score_from_removing_stones/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs` is never used [INFO] [stdout] --> src/data_structure/graph/breadth_first_search.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn bfs(){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/data_structure/graph/depth_first_tree.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn dfs(){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs_visit` is never used [INFO] [stdout] --> src/data_structure/graph/depth_first_tree.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn dfs_visit(){} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `size` is never used [INFO] [stdout] --> src/data_structure/queue/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Queue { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> src/data_structure/red_black_tree.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn example(){} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `top` is never used [INFO] [stdout] --> src/data_structure/stack/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Stack { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | fn top() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ptr`, `capacity`, and `size` are never read [INFO] [stdout] --> src/data_structure/vector/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Vector { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 2 | ptr: *mut T, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | capacity: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | size: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `algorithms` and `data_structure` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use algorithm::{algorithms, conding_test, data_structure}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `algorithms` and `data_structure` [INFO] [stdout] --> src/main.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use algorithm::{algorithms, conding_test, data_structure}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.73s [INFO] running `Command { std: "docker" "inspect" "6f7a99125bf03647bf011facc3489080472a772d7881df7b02ba8038012bf754", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f7a99125bf03647bf011facc3489080472a772d7881df7b02ba8038012bf754", kill_on_drop: false }` [INFO] [stdout] 6f7a99125bf03647bf011facc3489080472a772d7881df7b02ba8038012bf754