[INFO] cloning repository https://github.com/r31oad3d/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/r31oad3d/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr31oad3d%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr31oad3d%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c3b59b2f801aae22bf093d27c88343466020392f [INFO] checking r31oad3d/leetcode against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr31oad3d%2Fleetcode" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/r31oad3d/leetcode on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/r31oad3d/leetcode [INFO] finished tweaking git repo https://github.com/r31oad3d/leetcode [INFO] tweaked toml for git repo https://github.com/r31oad3d/leetcode written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/r31oad3d/leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cd230fe24c2abb51d67d5bb7c7d062bf135e6bb40c27ed5a6fc83ebfff108ef0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cd230fe24c2abb51d67d5bb7c7d062bf135e6bb40c27ed5a6fc83ebfff108ef0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd230fe24c2abb51d67d5bb7c7d062bf135e6bb40c27ed5a6fc83ebfff108ef0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd230fe24c2abb51d67d5bb7c7d062bf135e6bb40c27ed5a6fc83ebfff108ef0", kill_on_drop: false }` [INFO] [stdout] cd230fe24c2abb51d67d5bb7c7d062bf135e6bb40c27ed5a6fc83ebfff108ef0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 702f3ac090f7383ced4c0b05795b32de1eba28d778c9d259c2f9b0de5e4e04af [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "702f3ac090f7383ced4c0b05795b32de1eba28d778c9d259c2f9b0de5e4e04af", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:138:32 [INFO] [stdout] | [INFO] [stdout] 138 | res_adverse *= (10 - num + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/solutions/middle/max_area.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | while (i < j) { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solutions::hard` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use solutions::hard; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solutions::middle` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solutions::middle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solutions::simple` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solutions::simple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:138:32 [INFO] [stdout] | [INFO] [stdout] 138 | res_adverse *= (10 - num + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/solutions/middle/max_area.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | while (i < j) { [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solutions::hard` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use solutions::hard; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solutions::middle` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solutions::middle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solutions::simple` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solutions::simple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_n_sized_num` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let max_n_sized_num = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_n_sized_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut tmp = num_at_position < num_at_previous_position; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `index` is never read [INFO] [stdout] --> src/solutions/middle/convert.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut index = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `add` is never read [INFO] [stdout] --> src/solutions/middle/convert.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut add = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_n_sized_num` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let max_n_sized_num = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_n_sized_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut tmp = num_at_position < num_at_previous_position; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/solutions/middle/frequency_sort.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | for (i, c) in s.chars().enumerate() { [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/solutions/middle/frequency_sort.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | for i in 0..item.1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remainder` is never read [INFO] [stdout] --> src/solutions/middle/int_to_roman.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut remainder: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solutions/middle/max_area.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | for (i, n) in height.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i_value` is never read [INFO] [stdout] --> src/solutions/middle/max_area.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | let (mut i, mut j, mut i_value, mut j_value): (usize, usize, i32, i32) = [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j_value` is never read [INFO] [stdout] --> src/solutions/middle/max_area.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 44 | let (mut i, mut j, mut i_value, mut j_value): (usize, usize, i32, i32) = [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let test = vec![ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i_tmp` is never read [INFO] [stdout] --> src/solutions/middle/three_sum.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut i_tmp, mut j_tmp, mut k_tmp) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j_tmp` is never read [INFO] [stdout] --> src/solutions/middle/three_sum.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut i_tmp, mut j_tmp, mut k_tmp) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k_tmp` is never read [INFO] [stdout] --> src/solutions/middle/three_sum.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut i_tmp, mut j_tmp, mut k_tmp) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solutions/middle/top_k_frequent.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, n) in res2.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `diff` is never read [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | diff = j - i; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `temp` is never read [INFO] [stdout] --> src/solutions/simple/find_repeat_number.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut temp = -1_i32; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/solutions/simple/first_uniq_char.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, v) in map.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut i: i64 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | 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: value assigned to `index` is never read [INFO] [stdout] --> src/solutions/middle/convert.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut index = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `add` is never read [INFO] [stdout] --> src/solutions/middle/convert.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut add = 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/solutions/hard/longest_valid_parentheses.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut v: Vec = s.chars().collect(); [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/solutions/middle/frequency_sort.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | for (i, c) in s.chars().enumerate() { [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/solutions/middle/frequency_sort.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | for i in 0..item.1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remainder` is never read [INFO] [stdout] --> src/solutions/middle/int_to_roman.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut remainder: usize = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:4:40 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solutions/middle/max_area.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | for (i, n) in height.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i_value` is never read [INFO] [stdout] --> src/solutions/middle/max_area.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | let (mut i, mut j, mut i_value, mut j_value): (usize, usize, i32, i32) = [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j_value` is never read [INFO] [stdout] --> src/solutions/middle/max_area.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 44 | let (mut i, mut j, mut i_value, mut j_value): (usize, usize, i32, i32) = [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let test = vec![ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i_tmp` is never read [INFO] [stdout] --> src/solutions/middle/three_sum.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut i_tmp, mut j_tmp, mut k_tmp) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j_tmp` is never read [INFO] [stdout] --> src/solutions/middle/three_sum.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut i_tmp, mut j_tmp, mut k_tmp) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k_tmp` is never read [INFO] [stdout] --> src/solutions/middle/three_sum.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut i_tmp, mut j_tmp, mut k_tmp) = (0, 0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solutions/middle/top_k_frequent.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, n) in res2.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `diff` is never read [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | diff = j - i; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `temp` is never read [INFO] [stdout] --> src/solutions/simple/find_repeat_number.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut temp = -1_i32; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/solutions/simple/first_uniq_char.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, v) in map.iter() { [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/solutions/hard/num_dup_digits_at_most_n.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut num_at_previous_position = 0; [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/solutions/hard/num_dup_digits_at_most_n.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut tmp = num_at_position < num_at_previous_position; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut i: i64 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | 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: variable does not need to be mutable [INFO] [stdout] --> src/solutions/hard/longest_valid_parentheses.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut v: Vec = s.chars().collect(); [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: variable does not need to be mutable [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | let mut num_at_previous_position = 0; [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/solutions/hard/num_dup_digits_at_most_n.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let mut tmp = num_at_position < num_at_previous_position; [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/solutions/middle/sort_colors.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | let mut middle_value = nums[middle]; [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/solutions/middle/subsets.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut temp_res = Solution::subsets(nums[1..].to_vec()); [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/solutions/middle/top_k_frequent.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut res2 = &res1[0..(k as usize)].to_vec(); [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/solutions/simple/backspace_compare.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut s = s; [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/solutions/simple/backspace_compare.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut t = t; [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/solutions/middle/sort_colors.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | let mut middle_value = nums[middle]; [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/solutions/simple/construct_rectangle.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut area_mut: f64 = area as f64; [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/solutions/simple/construct_rectangle.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut root: i32 = area_mut.sqrt().round() as i32; [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/solutions/simple/construct_rectangle.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut area_mut: f64 = area as f64; [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/solutions/middle/subsets.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut temp_res = Solution::subsets(nums[1..].to_vec()); [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/solutions/simple/delete_duplicates.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | mut head: Option>, [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/solutions/simple/is_palindrome.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let mut s = x.to_string(); [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/solutions/middle/top_k_frequent.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut res2 = &res1[0..(k as usize)].to_vec(); [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/solutions/simple/backspace_compare.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut s = s; [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/solutions/simple/backspace_compare.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut t = t; [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/solutions/simple/construct_rectangle.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut area_mut: f64 = area as f64; [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/solutions/simple/construct_rectangle.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut root: i32 = area_mut.sqrt().round() as i32; [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/solutions/simple/construct_rectangle.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut area_mut: f64 = area as f64; [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/solutions/simple/delete_duplicates.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | mut head: Option>, [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/solutions/simple/is_palindrome.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let mut s = x.to_string(); [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/solutions/simple/longest_common_prefix.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut strs: Vec<&[u8]> = strs.iter().map(|s| s.as_bytes()).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/solutions/simple/self_dividing_numbers.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | for mut num in left..=right { [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/solutions/simple/to_goat_latin.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut s = s; [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/solutions/simple/to_goat_latin.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vs: Vec<&str> = s.split(' ').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/solutions/simple/unique_occurrences.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut arr = arr; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/hard/longest_valid_parentheses.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_valid_parentheses` [INFO] [stdout] --> src/solutions/hard/longest_valid_parentheses.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_valid_parentheses(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/hard/maximum_gap.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `maximum_gap` [INFO] [stdout] --> src/solutions/hard/maximum_gap.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn maximum_gap(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/simple/longest_common_prefix.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut strs: Vec<&[u8]> = strs.iter().map(|s| s.as_bytes()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_dup_digits_at_most_n` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_dup_digits_at_most_n(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_VALUE_N` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | const MAX_VALUE_N: i32 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | for mut num in left..=right { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_sized_of` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn is_sized_of(mut i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut s = s; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `n_size_num_dup_at_most` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn n_size_num_dup_at_most(n: i32, i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_n_sized_num_starter_to_num_dup_at_most_adverse` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn from_n_sized_num_starter_to_num_dup_at_most_adverse( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut vs: Vec<&str> = s.split(' ').collect(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/add_two_numbers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/middle/add_two_numbers.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solutions/simple/unique_occurrences.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut arr = arr; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/solutions/middle/add_two_numbers.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/hard/longest_valid_parentheses.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/combination_sum.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_valid_parentheses` [INFO] [stdout] --> src/solutions/hard/longest_valid_parentheses.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_valid_parentheses(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combination_sum` [INFO] [stdout] --> src/solutions/middle/combination_sum.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn combination_sum(candidates: Vec, target: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_combination_sum` [INFO] [stdout] --> src/solutions/middle/combination_sum.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn sub_combination_sum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/hard/maximum_gap.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/combination_sum2.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `maximum_gap` [INFO] [stdout] --> src/solutions/hard/maximum_gap.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn maximum_gap(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combination_sum2` [INFO] [stdout] --> src/solutions/middle/combination_sum2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn combination_sum2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_combination_sum` [INFO] [stdout] --> src/solutions/middle/combination_sum2.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn sub_combination_sum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/convert.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_dup_digits_at_most_n` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_dup_digits_at_most_n(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `convert` [INFO] [stdout] --> src/solutions/middle/convert.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn convert(s: String, num_rows: i32) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_VALUE_N` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | const MAX_VALUE_N: i32 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_sized_of` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn is_sized_of(mut i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_diagonal_order` [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_diagonal_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/frequency_sort.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `n_size_num_dup_at_most` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn n_size_num_dup_at_most(n: i32, i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `frequency_sort` [INFO] [stdout] --> src/solutions/middle/frequency_sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn frequency_sort(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_n_sized_num_starter_to_num_dup_at_most_adverse` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn from_n_sized_num_starter_to_num_dup_at_most_adverse( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/hard/num_dup_digits_at_most_n.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_parenthesis` [INFO] [stdout] --> src/solutions/middle/generate_parenthesis.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/int_to_roman.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/add_two_numbers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `int_to_roman` [INFO] [stdout] --> src/solutions/middle/int_to_roman.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn int_to_roman(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/middle/add_two_numbers.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/integer_break.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/solutions/middle/add_two_numbers.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/combination_sum.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combination_sum` [INFO] [stdout] --> src/solutions/middle/combination_sum.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn combination_sum(candidates: Vec, target: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_combination_sum` [INFO] [stdout] --> src/solutions/middle/combination_sum.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn sub_combination_sum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/combination_sum2.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combination_sum2` [INFO] [stdout] --> src/solutions/middle/combination_sum2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn combination_sum2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `integer_break` [INFO] [stdout] --> src/solutions/middle/integer_break.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn integer_break(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_combination_sum` [INFO] [stdout] --> src/solutions/middle/combination_sum2.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn sub_combination_sum( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/convert.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `convert` [INFO] [stdout] --> src/solutions/middle/convert.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn convert(s: String, num_rows: i32) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_diagonal_order` [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_diagonal_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/frequency_sort.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `frequency_sort` [INFO] [stdout] --> src/solutions/middle/frequency_sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn frequency_sort(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/letter_case_permutation.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/generate_parenthesis.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_parenthesis` [INFO] [stdout] --> src/solutions/middle/generate_parenthesis.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/int_to_roman.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `letter_case_permutation` [INFO] [stdout] --> src/solutions/middle/letter_case_permutation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn letter_case_permutation(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `int_to_roman` [INFO] [stdout] --> src/solutions/middle/int_to_roman.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn int_to_roman(num: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/integer_break.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_` [INFO] [stdout] --> src/solutions/middle/letter_case_permutation.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn sub_(mut chars: Vec) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `integer_break` [INFO] [stdout] --> src/solutions/middle/integer_break.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn integer_break(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/letter_combinations.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/length_of_longest_substring.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `letter_combinations` [INFO] [stdout] --> src/solutions/middle/letter_combinations.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn letter_combinations(digits: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/letter_combinations.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `letter_combinations` [INFO] [stdout] --> src/solutions/middle/letter_combinations.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn letter_combinations(digits: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_combinations` [INFO] [stdout] --> src/solutions/middle/letter_combinations.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn sub_combinations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_combinations` [INFO] [stdout] --> src/solutions/middle/letter_combinations.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn sub_combinations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_area.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area` [INFO] [stdout] --> src/solutions/middle/max_area.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_area.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area_slow` [INFO] [stdout] --> src/solutions/middle/max_area.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn max_area_slow(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area` [INFO] [stdout] --> src/solutions/middle/max_area.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area_slow` [INFO] [stdout] --> src/solutions/middle/max_area.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn max_area_slow(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area_of_island` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area_of_island(mut grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area_of_island` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area_of_island(mut grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn dfs(i: i32, j: i32, grid: &mut Vec>) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn dfs(i: i32, j: i32, grid: &mut Vec>) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/max_area_of_island.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_product.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_product.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_product` [INFO] [stdout] --> src/solutions/middle/max_product.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_product(words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_product` [INFO] [stdout] --> src/solutions/middle/max_product.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_product(words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_width_ramp.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/max_width_ramp.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_width_ramp` [INFO] [stdout] --> src/solutions/middle/max_width_ramp.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_width_ramp(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_width_ramp` [INFO] [stdout] --> src/solutions/middle/max_width_ramp.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_width_ramp(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/my_atoi.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/my_atoi.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_atoi` [INFO] [stdout] --> src/solutions/middle/my_atoi.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn my_atoi(str: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_atoi` [INFO] [stdout] --> src/solutions/middle/my_atoi.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn my_atoi(str: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/permute.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/permute.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permute` [INFO] [stdout] --> src/solutions/middle/permute.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permute` [INFO] [stdout] --> src/solutions/middle/permute.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/range_bitwise_and.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `range_bitwise_and` [INFO] [stdout] --> src/solutions/middle/range_bitwise_and.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn range_bitwise_and(mut m: i32, mut n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/range_bitwise_and.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/sort_colors.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `range_bitwise_and` [INFO] [stdout] --> src/solutions/middle/range_bitwise_and.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn range_bitwise_and(mut m: i32, mut n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_colors` [INFO] [stdout] --> src/solutions/middle/sort_colors.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sort_colors(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/sort_colors.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/sort_colors.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_colors` [INFO] [stdout] --> src/solutions/middle/sort_colors.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sort_colors(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/subsets.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/sort_colors.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subsets` [INFO] [stdout] --> src/solutions/middle/subsets.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn subsets(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/subsets.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/subsets.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subsets` [INFO] [stdout] --> src/solutions/middle/subsets.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn subsets(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/subsets.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution1` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Solution1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn three_sum(mut nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution1` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Solution1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn three_sum(mut nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/top_k_frequent.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/middle/three_sum.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top_k_frequent` [INFO] [stdout] --> src/solutions/middle/top_k_frequent.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn top_k_frequent(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/middle/top_k_frequent.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MyQueue` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct MyQueue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top_k_frequent` [INFO] [stdout] --> src/solutions/middle/top_k_frequent.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn top_k_frequent(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MyQueue` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct MyQueue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn pop(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn peek(&mut self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn pop(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MyStack` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStack { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn peek(&mut self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn pop(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn top(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_binary.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_binary` [INFO] [stdout] --> src/solutions/simple/add_binary.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_digits.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_digits` [INFO] [stdout] --> src/solutions/simple/add_digits.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_digits(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_strings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_strings` [INFO] [stdout] --> src/solutions/simple/add_strings.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_strings(num1: String, num2: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_to_array_form.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_array_form` [INFO] [stdout] --> src/solutions/simple/add_to_array_form.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_to_array_form(mut a: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/backspace_compare.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backspace_compare` [INFO] [stdout] --> src/solutions/simple/backspace_compare.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn backspace_compare(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/can_win_nim.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_win_nim` [INFO] [stdout] --> src/solutions/simple/can_win_nim.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn can_win_nim(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_rectangle` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn construct_rectangle(area: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_rectangle_v2` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn construct_rectangle_v2(area: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/contains_duplicate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/solutions/simple/MyQueue.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_duplicate` [INFO] [stdout] --> src/solutions/simple/contains_duplicate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/contains_nearby_duplicate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_nearby_duplicate` [INFO] [stdout] --> src/solutions/simple/contains_nearby_duplicate.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn contains_nearby_duplicate(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/simple/delete_duplicates.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/delete_duplicates.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MyStack` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStack { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_duplicates` [INFO] [stdout] --> src/solutions/simple/delete_duplicates.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn delete_duplicates( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/exchange.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exchange` [INFO] [stdout] --> src/solutions/simple/exchange.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn exchange(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn push(&mut self, x: i32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_odd_number` [INFO] [stdout] --> src/solutions/simple/exchange.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn is_odd_number(num: &i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn pop(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/find_content_children.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn top(&mut self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_content_children` [INFO] [stdout] --> src/solutions/simple/find_content_children.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_content_children(mut g: Vec, mut s: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/solutions/simple/MyStack.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/find_max_consecutive_ones.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_binary.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_max_consecutive_ones` [INFO] [stdout] --> src/solutions/simple/find_max_consecutive_ones.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_max_consecutive_ones(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_binary` [INFO] [stdout] --> src/solutions/simple/add_binary.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_binary(a: String, b: String) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/find_repeat_number.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_digits.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_repeat_numberfind_repeat_number` [INFO] [stdout] --> src/solutions/simple/find_repeat_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_repeat_numberfind_repeat_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_digits` [INFO] [stdout] --> src/solutions/simple/add_digits.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_digits(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_strings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/first_uniq_char.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_strings` [INFO] [stdout] --> src/solutions/simple/add_strings.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_strings(num1: String, num2: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/add_to_array_form.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_array_form` [INFO] [stdout] --> src/solutions/simple/add_to_array_form.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add_to_array_form(mut a: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_uniq_char` [INFO] [stdout] --> src/solutions/simple/first_uniq_char.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn first_uniq_char(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/backspace_compare.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `backspace_compare` [INFO] [stdout] --> src/solutions/simple/backspace_compare.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn backspace_compare(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/generate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/can_win_nim.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_win_nim` [INFO] [stdout] --> src/solutions/simple/can_win_nim.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn can_win_nim(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate` [INFO] [stdout] --> src/solutions/simple/generate.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate(num_rows: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_rectangle` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn construct_rectangle(area: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub_generate` [INFO] [stdout] --> src/solutions/simple/generate.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn sub_generate(num_rows: i32, sub_res: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_rectangle_v2` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn construct_rectangle_v2(area: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/construct_rectangle.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/get_hint.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/contains_duplicate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_duplicate` [INFO] [stdout] --> src/solutions/simple/contains_duplicate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hint` [INFO] [stdout] --> src/solutions/simple/get_hint.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_hint(secret: String, guess: String) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/contains_nearby_duplicate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_nearby_duplicate` [INFO] [stdout] --> src/solutions/simple/contains_nearby_duplicate.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn contains_nearby_duplicate(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/hamming_distance.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solutions/simple/delete_duplicates.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/delete_duplicates.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/solutions/simple/hamming_distance.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hamming_distance(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_duplicates` [INFO] [stdout] --> src/solutions/simple/delete_duplicates.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn delete_duplicates( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/exchange.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_anagram.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exchange` [INFO] [stdout] --> src/solutions/simple/exchange.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn exchange(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_odd_number` [INFO] [stdout] --> src/solutions/simple/exchange.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn is_odd_number(num: &i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_anagram` [INFO] [stdout] --> src/solutions/simple/is_anagram.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_palindrome.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_palindrome` [INFO] [stdout] --> src/solutions/simple/is_palindrome.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/is_palindrome.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn test() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_perfect_square.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_perfect_square` [INFO] [stdout] --> src/solutions/simple/is_perfect_square.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_perfect_square(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_power_of_four.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_four` [INFO] [stdout] --> src/solutions/simple/is_power_of_four.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_four(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/is_power_of_four.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/find_content_children.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_content_children` [INFO] [stdout] --> src/solutions/simple/find_content_children.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_content_children(mut g: Vec, mut s: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_power_of_three.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/find_max_consecutive_ones.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_max_consecutive_ones` [INFO] [stdout] --> src/solutions/simple/find_max_consecutive_ones.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_max_consecutive_ones(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_three` [INFO] [stdout] --> src/solutions/simple/is_power_of_three.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_three(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/first_uniq_char.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first_uniq_char` [INFO] [stdout] --> src/solutions/simple/first_uniq_char.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn first_uniq_char(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_power_of_two.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/generate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate` [INFO] [stdout] --> src/solutions/simple/generate.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate(num_rows: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_two` [INFO] [stdout] --> src/solutions/simple/is_power_of_two.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_two(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub_generate` [INFO] [stdout] --> src/solutions/simple/generate.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn sub_generate(num_rows: i32, sub_res: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_valid.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/get_hint.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_hint` [INFO] [stdout] --> src/solutions/simple/get_hint.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_hint(secret: String, guess: String) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/solutions/simple/is_valid.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/hamming_distance.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/solutions/simple/hamming_distance.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hamming_distance(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/island_perimeter.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_anagram.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_anagram` [INFO] [stdout] --> src/solutions/simple/is_anagram.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `island_perimeter` [INFO] [stdout] --> src/solutions/simple/island_perimeter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn island_perimeter(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_palindrome.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_palindrome` [INFO] [stdout] --> src/solutions/simple/is_palindrome.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/last_stone_weight.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last_stone_weight` [INFO] [stdout] --> src/solutions/simple/last_stone_weight.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn last_stone_weight(stones: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/lemonade_change.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lemonade_change` [INFO] [stdout] --> src/solutions/simple/lemonade_change.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn lemonade_change(bills: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/is_palindrome.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn test() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/length_of_last_word.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_last_word` [INFO] [stdout] --> src/solutions/simple/length_of_last_word.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn length_of_last_word(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_perfect_square.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/longest_common_prefix.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_common_prefix` [INFO] [stdout] --> src/solutions/simple/longest_common_prefix.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_perfect_square` [INFO] [stdout] --> src/solutions/simple/is_perfect_square.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_perfect_square(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/majority_element.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element` [INFO] [stdout] --> src/solutions/simple/majority_element.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_power_of_four.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v1` [INFO] [stdout] --> src/solutions/simple/majority_element.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn majority_element_v1(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/max_profit.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_four` [INFO] [stdout] --> src/solutions/simple/is_power_of_four.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_four(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_profit` [INFO] [stdout] --> src/solutions/simple/max_profit.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/is_power_of_four.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/max_sub_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_sub_array` [INFO] [stdout] --> src/solutions/simple/max_sub_array.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_sub_array(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_power_of_three.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/min_moves.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_moves` [INFO] [stdout] --> src/solutions/simple/min_moves.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min_moves(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_three` [INFO] [stdout] --> src/solutions/simple/is_power_of_three.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_three(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_power_of_two.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_sqrt_v1` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn my_sqrt_v1(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_sqrt` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn my_sqrt(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/plus_one.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `plus_one` [INFO] [stdout] --> src/solutions/simple/plus_one.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn plus_one(digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/remove_duplicates.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_duplicates` [INFO] [stdout] --> src/solutions/simple/remove_duplicates.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/remove_element.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_element` [INFO] [stdout] --> src/solutions/simple/remove_element.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/repeated_n_times.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `repeated_n_times` [INFO] [stdout] --> src/solutions/simple/repeated_n_times.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn repeated_n_times(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/reverse.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse` [INFO] [stdout] --> src/solutions/simple/reverse.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/reverse_string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_string` [INFO] [stdout] --> src/solutions/simple/reverse_string.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_two` [INFO] [stdout] --> src/solutions/simple/is_power_of_two.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_two(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/roman_to_int.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `roman_to_int` [INFO] [stdout] --> src/solutions/simple/roman_to_int.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/is_valid.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `self_dividing_numbers` [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn self_dividing_numbers(left: i32, right: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid` [INFO] [stdout] --> src/solutions/simple/is_valid.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn is_valid(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/single_number.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/island_perimeter.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `single_number` [INFO] [stdout] --> src/solutions/simple/single_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn single_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/sorted_squares.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `island_perimeter` [INFO] [stdout] --> src/solutions/simple/island_perimeter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn island_perimeter(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sorted_squares` [INFO] [stdout] --> src/solutions/simple/sorted_squares.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sorted_squares(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/sorted_squares.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn test() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/str_str.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/last_stone_weight.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `str_str` [INFO] [stdout] --> src/solutions/simple/str_str.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last_stone_weight` [INFO] [stdout] --> src/solutions/simple/last_stone_weight.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn last_stone_weight(stones: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_goat_latin` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn to_goat_latin(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `word_transform_step1` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn word_transform_step1(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `word_transform_step2` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn word_transform_step2(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `word_transform_step3` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | fn word_transform_step3(s: &mut String, n: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/two_city_sched_cost.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_city_sched_cost` [INFO] [stdout] --> src/solutions/simple/two_city_sched_cost.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_city_sched_cost(costs: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/lemonade_change.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/two_sum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/solutions/simple/two_sum.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lemonade_change` [INFO] [stdout] --> src/solutions/simple/lemonade_change.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn lemonade_change(bills: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/two_sum.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn test() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/length_of_last_word.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/unique_occurrences.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_last_word` [INFO] [stdout] --> src/solutions/simple/length_of_last_word.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn length_of_last_word(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/longest_common_prefix.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_common_prefix` [INFO] [stdout] --> src/solutions/simple/longest_common_prefix.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/majority_element.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element` [INFO] [stdout] --> src/solutions/simple/majority_element.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v1` [INFO] [stdout] --> src/solutions/simple/majority_element.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn majority_element_v1(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/max_profit.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_profit` [INFO] [stdout] --> src/solutions/simple/max_profit.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/max_sub_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_sub_array` [INFO] [stdout] --> src/solutions/simple/max_sub_array.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_sub_array(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/min_moves.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_moves` [INFO] [stdout] --> src/solutions/simple/min_moves.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min_moves(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_sqrt_v1` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn my_sqrt_v1(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_sqrt` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn my_sqrt(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/my_sqrt.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/plus_one.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `plus_one` [INFO] [stdout] --> src/solutions/simple/plus_one.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn plus_one(digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/remove_duplicates.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_duplicates` [INFO] [stdout] --> src/solutions/simple/remove_duplicates.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/remove_element.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_element` [INFO] [stdout] --> src/solutions/simple/remove_element.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/repeated_n_times.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `repeated_n_times` [INFO] [stdout] --> src/solutions/simple/repeated_n_times.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn repeated_n_times(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/reverse.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse` [INFO] [stdout] --> src/solutions/simple/reverse.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/reverse_string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_string` [INFO] [stdout] --> src/solutions/simple/reverse_string.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/roman_to_int.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `roman_to_int` [INFO] [stdout] --> src/solutions/simple/roman_to_int.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `self_dividing_numbers` [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn self_dividing_numbers(left: i32, right: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/self_dividing_numbers.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/single_number.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `single_number` [INFO] [stdout] --> src/solutions/simple/single_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn single_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/sorted_squares.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sorted_squares` [INFO] [stdout] --> src/solutions/simple/sorted_squares.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sorted_squares(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/sorted_squares.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn test() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/str_str.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `str_str` [INFO] [stdout] --> src/solutions/simple/str_str.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn str_str(haystack: String, needle: String) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_goat_latin` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn to_goat_latin(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `word_transform_step1` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn word_transform_step1(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `word_transform_step2` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn word_transform_step2(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `word_transform_step3` [INFO] [stdout] --> src/solutions/simple/to_goat_latin.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | fn word_transform_step3(s: &mut String, n: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/two_city_sched_cost.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_city_sched_cost` [INFO] [stdout] --> src/solutions/simple/two_city_sched_cost.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_city_sched_cost(costs: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/two_sum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/solutions/simple/two_sum.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/solutions/simple/two_sum.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn test() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solutions/simple/unique_occurrences.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unique_occurrences` [INFO] [stdout] --> src/solutions/simple/unique_occurrences.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn unique_occurrences(arr: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unique_occurrences` [INFO] [stdout] --> src/solutions/simple/unique_occurrences.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn unique_occurrences(arr: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `M` should have a snake case name [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let (M, N) = (matrix.len() - 1, matrix.get(0).unwrap().len() - 1); [INFO] [stdout] | ^ help: convert the identifier to snake case: `m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let (M, N) = (matrix.len() - 1, matrix.get(0).unwrap().len() - 1); [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `M` should have a snake case name [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let (M, N) = (matrix.len() - 1, matrix.get(0).unwrap().len() - 1); [INFO] [stdout] | ^ help: convert the identifier to snake case: `m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/solutions/middle/find_diagonal_order.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let (M, N) = (matrix.len() - 1, matrix.get(0).unwrap().len() - 1); [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MyQueue` should have a snake case name [INFO] [stdout] --> src/solutions/simple/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod MyQueue; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MyStack` should have a snake case name [INFO] [stdout] --> src/solutions/simple/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod MyStack; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MyQueue` should have a snake case name [INFO] [stdout] --> src/solutions/simple/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod MyQueue; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_queue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `MyStack` should have a snake case name [INFO] [stdout] --> src/solutions/simple/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod MyStack; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `my_stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 247 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 242 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.54s [INFO] running `Command { std: "docker" "inspect" "702f3ac090f7383ced4c0b05795b32de1eba28d778c9d259c2f9b0de5e4e04af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "702f3ac090f7383ced4c0b05795b32de1eba28d778c9d259c2f9b0de5e4e04af", kill_on_drop: false }` [INFO] [stdout] 702f3ac090f7383ced4c0b05795b32de1eba28d778c9d259c2f9b0de5e4e04af