[INFO] cloning repository https://github.com/virct/leetcode-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/virct/leetcode-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvirct%2Fleetcode-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvirct%2Fleetcode-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8f450d54f913568317d3ffbc5bddfe80fe236994 [INFO] checking virct/leetcode-rs against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvirct%2Fleetcode-rs" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/virct/leetcode-rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/virct/leetcode-rs [INFO] finished tweaking git repo https://github.com/virct/leetcode-rs [INFO] tweaked toml for git repo https://github.com/virct/leetcode-rs written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/virct/leetcode-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22cb5ce5cf2e6959c72bf424afd93d4a8df6324d76c41623230777e8b2044208 [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" "22cb5ce5cf2e6959c72bf424afd93d4a8df6324d76c41623230777e8b2044208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22cb5ce5cf2e6959c72bf424afd93d4a8df6324d76c41623230777e8b2044208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22cb5ce5cf2e6959c72bf424afd93d4a8df6324d76c41623230777e8b2044208", kill_on_drop: false }` [INFO] [stdout] 22cb5ce5cf2e6959c72bf424afd93d4a8df6324d76c41623230777e8b2044208 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3342df18400a791ae7d554f28316ece2a6b30e2a1463121b49cc1832898ec4b9 [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" "3342df18400a791ae7d554f28316ece2a6b30e2a1463121b49cc1832898ec4b9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::util::tree::*` [INFO] [stdout] --> src/leetcode/flatten.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util::tree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/leetcode/flatten.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/leetcode/flatten.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/leetcode/update_matrix.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | if (matrix[y][x] == 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: unused import: `crate::util::tree::*` [INFO] [stdout] --> src/leetcode/flatten.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util::tree::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/leetcode/flatten.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/leetcode/flatten.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/leetcode/update_matrix.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | if (matrix[y][x] == 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: unreachable expression [INFO] [stdout] --> src/leetcode/pattern_matching.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | let b_words = (len - counta * a_words) / countb; [INFO] [stdout] 21 | | a_words += 1; [INFO] [stdout] 22 | | //give up [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 24 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/leetcode/pattern_matching.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | let b_words = (len - counta * a_words) / countb; [INFO] [stdout] 21 | | a_words += 1; [INFO] [stdout] 22 | | //give up [INFO] [stdout] 23 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 24 | false [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/leetcode/generate_trees.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let left = Self::help(left, v - 1, res); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/leetcode/generate_trees.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let right = Self::help(v + 1, right, res); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/leetcode/pattern_matching.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut first = 'a'; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/leetcode/pattern_matching.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | first = c; [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: unused variable: `b_words` [INFO] [stdout] --> src/leetcode/pattern_matching.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let b_words = (len - counta * a_words) / countb; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_words` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/leetcode/update_matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res = vec![vec![0; len]]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `visited` is assigned to, but never used [INFO] [stdout] --> src/leetcode/update_matrix.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut visited; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_visited` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `visited` is never read [INFO] [stdout] --> src/leetcode/update_matrix.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | visited = vec![vec![false]; len]; [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/offer/two_sum2.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_sum(n: i32) -> Vec { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode/generate_trees.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut root = Rc::new(RefCell::new(TreeNode::new(v))); [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/leetcode/merge_k_lists.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn merge_k_lists(mut lists: Vec>>) -> 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/leetcode/min_increment_for_unique.rs:64:38 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn min_increment_for_unique3(mut a: Vec) -> 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/leetcode/min_increment_for_unique.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn min_increment_for_unique2(mut a: Vec) -> 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/leetcode/update_matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res = vec![vec![0; len]]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/leetcode/generate_trees.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let left = Self::help(left, v - 1, res); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/leetcode/generate_trees.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let right = Self::help(v + 1, right, res); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `first` is assigned to, but never used [INFO] [stdout] --> src/leetcode/pattern_matching.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut first = 'a'; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_first` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `first` is never read [INFO] [stdout] --> src/leetcode/pattern_matching.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | first = c; [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: unused variable: `b_words` [INFO] [stdout] --> src/leetcode/pattern_matching.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let b_words = (len - counta * a_words) / countb; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_words` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `avg` [INFO] [stdout] --> src/leetcode/puzzle2.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let avg = change.exchange(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_avg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.mins` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/offer/min_stack.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 20 | if let Some(min) = self.mins.back() { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 24 | self.mins.push_back(*min); [INFO] [stdout] | ^^^^^^^^^ ---- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/leetcode/update_matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res = vec![vec![0; len]]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `visited` is assigned to, but never used [INFO] [stdout] --> src/leetcode/update_matrix.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut visited; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_visited` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `visited` is never read [INFO] [stdout] --> src/leetcode/update_matrix.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | visited = vec![vec![false]; len]; [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/offer/two_sum2.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_sum(n: i32) -> Vec { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/offer/sum_nums.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sum_nums(mut n: i32) -> i32 { [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/leetcode/alert_names.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | 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: `alert_names` [INFO] [stdout] --> src/leetcode/alert_names.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn alert_names(key_name: Vec, key_time: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `grater_then_one_hour` [INFO] [stdout] --> src/leetcode/alert_names.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn grater_then_one_hour(l: &str, r: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/array_strings_are_equal.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `array_strings_are_equal` [INFO] [stdout] --> src/leetcode/array_strings_are_equal.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn array_strings_are_equal(word1: Vec, word2: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/binary_tree_paths.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_tree_paths` [INFO] [stdout] --> src/leetcode/binary_tree_paths.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn binary_tree_paths(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/binary_tree_paths.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn help(root: &Option>>, mut path: String, res: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/build_tree.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/leetcode/build_tree.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn build_tree(inorder: Vec, postorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/build_tree.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/can_jump.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_jump2` [INFO] [stdout] --> src/leetcode/can_jump.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn can_jump2(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_jump` [INFO] [stdout] --> src/leetcode/can_jump.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn can_jump(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/can_jump.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn help(cur: usize, nums: &Vec) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/can_measure_water.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_measure_water` [INFO] [stdout] --> src/leetcode/can_measure_water.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn can_measure_water(x: i32, y: i32, z: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/can_three_parts_equal_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: `can_three_parts_equal_sum` [INFO] [stdout] --> src/leetcode/can_three_parts_equal_sum.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn can_three_parts_equal_sum(a: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_three_parts_equal_sum2` [INFO] [stdout] --> src/leetcode/can_three_parts_equal_sum.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn can_three_parts_equal_sum2(a: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/compress_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: `compress_string` [INFO] [stdout] --> src/leetcode/compress_string.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn compress_string(mut s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/contains_nearby_almost_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_almost_duplicate` [INFO] [stdout] --> src/leetcode/contains_nearby_almost_duplicate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn contains_nearby_almost_duplicate(nums: Vec, k: i32, t: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_search` [INFO] [stdout] --> src/leetcode/contains_nearby_almost_duplicate.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn binary_search(v: i32, sorted: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/leetcode/contains_nearby_almost_duplicate.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn quick_sort(start: usize, end: usize, nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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: `convert` [INFO] [stdout] --> src/leetcode/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/leetcode/count_characters.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `count_characters` [INFO] [stdout] --> src/leetcode/count_characters.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn count_characters(words: Vec, chars: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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/leetcode/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: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/fizz_buzz.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fizz_buzz` [INFO] [stdout] --> src/leetcode/fizz_buzz.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn fizz_buzz(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/flatten.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/flood_fill.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `flood_fill` [INFO] [stdout] --> src/leetcode/flood_fill.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn flood_fill(mut image: Vec>, sr: i32, sc: i32, new_color: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/leetcode/flood_fill.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/game_of_life.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `game_of_life` [INFO] [stdout] --> src/leetcode/game_of_life.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn game_of_life(board: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/gcd_of_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: `gcd_of_strings` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/generate_trees.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate_trees` [INFO] [stdout] --> src/leetcode/generate_trees.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn generate_trees(n: i32) -> Vec>>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/leetcode/generate_trees.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn add(root: &Option>>, v: i32) -> Option>> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/generate_trees.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/get_least_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: `get_least_numbers` [INFO] [stdout] --> src/leetcode/get_least_numbers.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_least_numbers(mut arr: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/leetcode/get_least_numbers.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn quick_sort(start: usize, end: usize, arr: &mut Vec, k: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/get_max_repetitions.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_max_repetitions` [INFO] [stdout] --> src/leetcode/get_max_repetitions.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_max_repetitions(s1: String, n1: i32, s2: String, n2: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/group_anagrams.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group_anagrams` [INFO] [stdout] --> src/leetcode/group_anagrams.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/has_groups_size_x.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_groups_size_x` [INFO] [stdout] --> src/leetcode/has_groups_size_x.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn has_groups_size_x(deck: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gcd` [INFO] [stdout] --> src/leetcode/has_groups_size_x.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn gcd(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/intersection.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection` [INFO] [stdout] --> src/leetcode/intersection.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn intersection( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_happy.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_happy` [INFO] [stdout] --> src/leetcode/is_happy.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn is_happy(mut n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_rectangle_overlap.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: `is_rectangle_overlap` [INFO] [stdout] --> src/leetcode/is_rectangle_overlap.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_rectangle_overlap(rec1: Vec, rec2: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_rectangle_overlap_trash` [INFO] [stdout] --> src/leetcode/is_rectangle_overlap.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_rectangle_overlap_trash(rec1: Vec, rec2: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_subtree.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_subtree` [INFO] [stdout] --> src/leetcode/is_subtree.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn is_subtree(s: Option>>, t: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/is_subtree.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn help(node: &Option>>, t: &Option>>) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_symmetric.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_symmetric` [INFO] [stdout] --> src/leetcode/is_symmetric.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_symmetric(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `helper` [INFO] [stdout] --> src/leetcode/is_symmetric.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn helper(l: &Option>>, r: &Option>>) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_unique.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unique` [INFO] [stdout] --> src/leetcode/is_unique.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn is_unique(astr: String) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_valid_bst.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_bst` [INFO] [stdout] --> src/leetcode/is_valid_bst.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_valid_bst(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/is_valid_bst.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn help(root: &Option>>, low: Option, upper: Option) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/largest_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: `largest_perimeter` [INFO] [stdout] --> src/leetcode/largest_perimeter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn largest_perimeter(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/last_remaining.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_remaining` [INFO] [stdout] --> src/leetcode/last_remaining.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn last_remaining(n: i32, m: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/length_of_lis.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_lis` [INFO] [stdout] --> src/leetcode/length_of_lis.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn length_of_lis(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/level_order.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level_order` [INFO] [stdout] --> src/leetcode/level_order.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(time: i32, key: i32, value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(capacity: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn get(&mut self, key: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/longest_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: `longest_ones` [INFO] [stdout] --> src/leetcode/longest_ones.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_ones(a: Vec, mut k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/massage.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `massage` [INFO] [stdout] --> src/leetcode/massage.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn massage(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `massage1` [INFO] [stdout] --> src/leetcode/massage.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn massage1(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/massage.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn help(idx: usize, nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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/leetcode/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/leetcode/max_area_of_island.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: `max_area_of_island` [INFO] [stdout] --> src/leetcode/max_area_of_island.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area_of_island(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/max_area_of_island.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/max_depth_after_split.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_depth_after_split` [INFO] [stdout] --> src/leetcode/max_depth_after_split.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_depth_after_split(seq: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/max_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: `max_distance` [INFO] [stdout] --> src/leetcode/max_distance.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_distance(mut grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/merge.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge` [INFO] [stdout] --> src/leetcode/merge.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn merge(mut intervals: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/leetcode/merge.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn quick_sort(start: usize, end: usize, intervals: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp` [INFO] [stdout] --> src/leetcode/merge.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn cmp(l: &Vec, r: &Vec) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_k_lists` [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn merge_k_lists(mut lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_two_lists` [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/merge_two_lists.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_two_lists` [INFO] [stdout] --> src/leetcode/merge_two_lists.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/middle_node.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/middle_node.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `middle_node` [INFO] [stdout] --> src/leetcode/middle_node.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn middle_node(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/min_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: `min_distance` [INFO] [stdout] --> src/leetcode/min_distance.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn min_distance(word1: String, word2: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_increment_for_unique` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn min_increment_for_unique(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn quick_sort(start: usize, end: usize, a: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_increment_for_unique3` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn min_increment_for_unique3(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_search` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn binary_search(v: i32, visited: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_increment_for_unique2` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn min_increment_for_unique2(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/min_subsequence.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_subsequence` [INFO] [stdout] --> src/leetcode/min_subsequence.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min_subsequence(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/minimum_length_encoding.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minimum_length_encoding` [INFO] [stdout] --> src/leetcode/minimum_length_encoding.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn minimum_length_encoding(words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/num_islands.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_islands` [INFO] [stdout] --> src/leetcode/num_islands.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_islands(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/leetcode/num_islands.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/num_rook_captures.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_rook_captures` [INFO] [stdout] --> src/leetcode/num_rook_captures.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn num_rook_captures(board: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/num_subarray_product_less_than_k.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_subarray_product_less_than_k` [INFO] [stdout] --> src/leetcode/num_subarray_product_less_than_k.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_subarray_product_less_than_k(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_subarray_product_less_than_k2` [INFO] [stdout] --> src/leetcode/num_subarray_product_less_than_k.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn num_subarray_product_less_than_k2(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/num_trees.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_trees` [INFO] [stdout] --> src/leetcode/num_trees.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn num_trees(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/num_trees.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn help(start: i32, end: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/number_of_subarrays.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `number_of_subarrays` [INFO] [stdout] --> src/leetcode/number_of_subarrays.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn number_of_subarrays(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/path_sum.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `path_sum` [INFO] [stdout] --> src/leetcode/path_sum.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn path_sum(root: Option>>, sum: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/path_sum.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/pattern_matching.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pattern_matching` [INFO] [stdout] --> src/leetcode/pattern_matching.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn pattern_matching(pattern: String, value: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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/leetcode/permute.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/leetcode/permute.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn dfs(path: &mut Vec, nums: &Vec, used: &mut Vec, res: &mut Vec>) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/puzzle1.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn new(numerator: i32, denominator: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/puzzle1.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_two_fraction_average` [INFO] [stdout] --> src/leetcode/puzzle1.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn get_two_fraction_average(a: Fraction, b: Fraction) -> Fraction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gcd` [INFO] [stdout] --> src/leetcode/puzzle1.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn gcd(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/puzzle2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(array: Box<[i32]>, n: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `exchange` [INFO] [stdout] --> src/leetcode/puzzle2.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn exchange(&mut self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/leetcode/puzzle2.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/recover_tree.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `recover_tree` [INFO] [stdout] --> src/leetcode/recover_tree.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn recover_tree(root: &mut Option>>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/recover_tree.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn help(node: &mut Option>>, sorted: &mut Vec>>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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/leetcode/remove_duplicates.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_duplicates(s: String, k: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_duplicates1` [INFO] [stdout] --> src/leetcode/remove_duplicates.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn remove_duplicates1(s: String, k: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/remove_elements.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_elements` [INFO] [stdout] --> src/leetcode/remove_elements.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn remove_elements(mut head: Option>, val: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_elements2` [INFO] [stdout] --> src/leetcode/remove_elements.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn remove_elements2(mut head: Option>, val: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/remove_kdigits.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_kdigits` [INFO] [stdout] --> src/leetcode/remove_kdigits.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_kdigits(num: String, k: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/remove_outer_parentheses.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_outer_parentheses` [INFO] [stdout] --> src/leetcode/remove_outer_parentheses.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn remove_outer_parentheses(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/reverse_pairs2.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_pairs` [INFO] [stdout] --> src/leetcode/reverse_pairs2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_pairs(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/right_side_view.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_side_view` [INFO] [stdout] --> src/leetcode/right_side_view.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn right_side_view(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/rob.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rob2` [INFO] [stdout] --> src/leetcode/rob.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn rob2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rob` [INFO] [stdout] --> src/leetcode/rob.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn rob(nums: Vec) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/rob.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn help(next: usize, nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/rotate.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate2` [INFO] [stdout] --> src/leetcode/rotate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn rotate2(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate` [INFO] [stdout] --> src/leetcode/rotate.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn rotate(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/search.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search` [INFO] [stdout] --> src/leetcode/search.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn search(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/sort_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: `sort_array` [INFO] [stdout] --> src/leetcode/sort_array.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sort_array(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/leetcode/sort_array.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn quick_sort(start: usize, end: usize, num: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/sorted_array_to_bst.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sorted_array_to_bst` [INFO] [stdout] --> src/leetcode/sorted_array_to_bst.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/sum_of_left_leaves.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sum_of_left_leaves` [INFO] [stdout] --> src/leetcode/sum_of_left_leaves.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn sum_of_left_leaves(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/sum_of_left_leaves.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn help(root: &Option>>, is_left: bool) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/surface_area.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: `surface_area` [INFO] [stdout] --> src/leetcode/surface_area.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn surface_area(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/tictactoe.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tictactoe` [INFO] [stdout] --> src/leetcode/tictactoe.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn tictactoe(moves: Vec>) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/trap.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trap` [INFO] [stdout] --> src/leetcode/trap.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn trap(height: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Twitter` [INFO] [stdout] --> src/leetcode/twitter.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Twitter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/twitter.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `post_tweet` [INFO] [stdout] --> src/leetcode/twitter.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn post_tweet(&mut self, user_id: i32, tweet_id: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_news_feed` [INFO] [stdout] --> src/leetcode/twitter.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_news_feed(&self, user_id: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `follow` [INFO] [stdout] --> src/leetcode/twitter.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn follow(&mut self, follower_id: i32, followee_id: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unfollow` [INFO] [stdout] --> src/leetcode/twitter.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn unfollow(&mut self, follower_id: i32, followee_id: i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/update_matrix.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_matrix` [INFO] [stdout] --> src/leetcode/update_matrix.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn update_matrix(matrix: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bfs` [INFO] [stdout] --> src/leetcode/update_matrix.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn bfs(x: usize, y: usize, len: usize, visited: Vec>, matrix: Vec>) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/valid_mountain_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Origin` [INFO] [stdout] --> src/leetcode/valid_mountain_array.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Origin, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rising` [INFO] [stdout] --> src/leetcode/valid_mountain_array.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Rising, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Downing` [INFO] [stdout] --> src/leetcode/valid_mountain_array.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Downing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `valid_mountain_array` [INFO] [stdout] --> src/leetcode/valid_mountain_array.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn valid_mountain_array(a: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/ways_to_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: `ways_to_change` [INFO] [stdout] --> src/leetcode/ways_to_change.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn ways_to_change(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/zigzag_level_order.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `zigzag_level_order` [INFO] [stdout] --> src/leetcode/zigzag_level_order.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn zigzag_level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/max_depth.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_depth` [INFO] [stdout] --> src/leetcode/max_depth.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn max_depth(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/advantage_count.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `advantage_count` [INFO] [stdout] --> src/leetcode/advantage_count.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn advantage_count(mut a: Vec, b: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/add.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` [INFO] [stdout] --> src/offer/add.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add(mut a: i32, mut b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TreeNode` [INFO] [stdout] --> src/offer/codec.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/codec.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/codec.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `codec` [INFO] [stdout] --> src/offer/codec.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn codec(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/construct_arr.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_arr` [INFO] [stdout] --> src/offer/construct_arr.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn construct_arr(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/find_continuous_sequence.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: `find_continuous_sequence` [INFO] [stdout] --> src/offer/find_continuous_sequence.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_continuous_sequence(target: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/find_nth_digit.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: `find_nth_digit` [INFO] [stdout] --> src/offer/find_nth_digit.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_nth_digit(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/first_uniq_char.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn first_uniq_char(s: String) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/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: associated function is never used: `help` [INFO] [stdout] --> src/offer/generate_parenthesis.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn help(left: usize, right: usize, next: String, res: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/get_least_numbers.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: `get_least_numbers` [INFO] [stdout] --> src/offer/get_least_numbers.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_least_numbers(mut arr: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort2` [INFO] [stdout] --> src/offer/get_least_numbers.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn quick_sort2(k: usize, left: usize, right: usize, arr: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/offer/get_least_numbers.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn quick_sort(left: usize, right: usize, arr: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/is_balanced.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/is_balanced.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_balanced` [INFO] [stdout] --> src/offer/is_balanced.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn is_balanced(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/is_balanced.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn help(node: &Option>>, step: &mut i32) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help2` [INFO] [stdout] --> src/offer/is_balanced.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn help2(node: &Option>>, flag: &mut bool) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/is_straight.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_straight` [INFO] [stdout] --> src/offer/is_straight.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_straight(mut nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort_rev` [INFO] [stdout] --> src/offer/is_straight.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn quick_sort_rev(left: usize, right: usize, nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/last_remaining.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_remaining` [INFO] [stdout] --> src/offer/last_remaining.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn last_remaining(n: i32, m: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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: `length_of_longest_substring` [INFO] [stdout] --> src/offer/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: `new` [INFO] [stdout] --> src/offer/level_order.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/level_order.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level_order` [INFO] [stdout] --> src/offer/level_order.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn level_order(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/level_order.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn help(arr: Vec>>>, res: &mut Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/level_order2.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/level_order2.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level_order` [INFO] [stdout] --> src/offer/level_order2.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/level_order2.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn help(arr: Vec>>>, res: &mut Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/level_order3.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/level_order3.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level_order` [INFO] [stdout] --> src/offer/level_order3.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/level_order3.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn help(arr: Vec>>>, step: i32, res: &mut Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/majority_element.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/max_depth.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/max_depth.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_depth` [INFO] [stdout] --> src/offer/max_depth.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/max_depth.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn help(node: &Option>>, step: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/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/offer/max_sliding_window.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_sliding_window` [INFO] [stdout] --> src/offer/max_sliding_window.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_sliding_window(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max` [INFO] [stdout] --> src/offer/max_sliding_window.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn max(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/max_sub_array.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | 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/offer/max_value.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_value` [INFO] [stdout] --> src/offer/max_value.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_value(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/max_value.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn help(sum: i32, i: usize, j: usize, i_max: usize, j_max: usize, grid: &Vec>) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MedianFinder` [INFO] [stdout] --> src/offer/median_finder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct MedianFinder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/median_finder.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_num` [INFO] [stdout] --> src/offer/median_finder.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn add_num(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_median` [INFO] [stdout] --> src/offer/median_finder.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn find_median(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/min_number.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: `min_number` [INFO] [stdout] --> src/offer/min_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min_number(mut nums: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `varient_quick_sort` [INFO] [stdout] --> src/offer/min_number.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn varient_quick_sort(start: usize, end: usize, nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compare2` [INFO] [stdout] --> src/offer/min_number.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn compare2(origin: i32, other: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `compare` [INFO] [stdout] --> src/offer/min_number.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn compare(origin: i32, other: i32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MinStack` [INFO] [stdout] --> src/offer/min_stack.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MinStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/min_stack.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: `push` [INFO] [stdout] --> src/offer/min_stack.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: `pop` [INFO] [stdout] --> src/offer/min_stack.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/offer/min_stack.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min` [INFO] [stdout] --> src/offer/min_stack.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn min(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/missing_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: `missing_number` [INFO] [stdout] --> src/offer/missing_number.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn missing_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/nth_ugly_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: `nth_ugly_number` [INFO] [stdout] --> src/offer/nth_ugly_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn nth_ugly_number(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/path_sum.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/path_sum.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `path_sum` [INFO] [stdout] --> src/offer/path_sum.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn path_sum(root: Option>>, sum: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/path_sum.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/permutation.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permutation` [INFO] [stdout] --> src/offer/permutation.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn permutation(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/permutation.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn help(cs: &Vec, s: String, res: &mut std::collections::HashSet) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/reverse_left_words.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_left_words` [INFO] [stdout] --> src/offer/reverse_left_words.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_left_words(s: String, n: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/reverse_words.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_words` [INFO] [stdout] --> src/offer/reverse_words.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_words(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/single_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: `single_numbers2` [INFO] [stdout] --> src/offer/single_numbers.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn single_numbers2(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `single_numbers` [INFO] [stdout] --> src/offer/single_numbers.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn single_numbers(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/spiral_order.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: `spiral_order` [INFO] [stdout] --> src/offer/spiral_order.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/str_to_int.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: `str_to_int` [INFO] [stdout] --> src/offer/str_to_int.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn str_to_int(str: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/sum_nums.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sum_nums` [INFO] [stdout] --> src/offer/sum_nums.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sum_nums(mut n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/sum_nums.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn help(res: &mut i32, mut n: i32) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/translate_num.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate_num` [INFO] [stdout] --> src/offer/translate_num.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn translate_num(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/two_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: `two_sum` [INFO] [stdout] --> src/offer/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: `binary_search` [INFO] [stdout] --> src/offer/two_sum.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn binary_search(nums: &Vec, max: i32) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/two_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: `two_sum` [INFO] [stdout] --> src/offer/two_sum2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_sum(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/validate_stack_sequences.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: `validate_stack_sequences` [INFO] [stdout] --> src/offer/validate_stack_sequences.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn validate_stack_sequences(pushed: Vec, mut popped: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/verify_postorder.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: `verify_postorder` [INFO] [stdout] --> src/offer/verify_postorder.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn verify_postorder(postorder: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/verify_postorder.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn help(start: i32, end: i32, postorder: &Vec) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_idx` [INFO] [stdout] --> src/offer/verify_postorder.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn max_idx(v: &[i32], root: i32) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode/generate_trees.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut root = Rc::new(RefCell::new(TreeNode::new(v))); [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: 352 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn merge_k_lists(mut lists: Vec>>) -> 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/leetcode/min_increment_for_unique.rs:64:38 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn min_increment_for_unique3(mut a: Vec) -> 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/leetcode/min_increment_for_unique.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn min_increment_for_unique2(mut a: Vec) -> 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/leetcode/update_matrix.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut res = vec![vec![0; len]]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `self.mins` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/offer/min_stack.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 20 | if let Some(min) = self.mins.back() { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 24 | self.mins.push_back(*min); [INFO] [stdout] | ^^^^^^^^^ ---- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/offer/sum_nums.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sum_nums(mut n: i32) -> i32 { [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/leetcode/build_tree.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | 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: `build_tree` [INFO] [stdout] --> src/leetcode/build_tree.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn build_tree(inorder: Vec, postorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/build_tree.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/can_jump.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_jump2` [INFO] [stdout] --> src/leetcode/can_jump.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn can_jump2(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_jump` [INFO] [stdout] --> src/leetcode/can_jump.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn can_jump(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/can_jump.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn help(cur: usize, nums: &Vec) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_three_parts_equal_sum2` [INFO] [stdout] --> src/leetcode/can_three_parts_equal_sum.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn can_three_parts_equal_sum2(a: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/fizz_buzz.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fizz_buzz` [INFO] [stdout] --> src/leetcode/fizz_buzz.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn fizz_buzz(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/flatten.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/gcd_of_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: `gcd_of_strings` [INFO] [stdout] --> src/leetcode/gcd_of_strings.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn gcd_of_strings(str1: String, str2: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/generate_trees.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_least_numbers` [INFO] [stdout] --> src/leetcode/get_least_numbers.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_least_numbers(mut arr: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/group_anagrams.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group_anagrams` [INFO] [stdout] --> src/leetcode/group_anagrams.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/intersection.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection` [INFO] [stdout] --> src/leetcode/intersection.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn intersection( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_rectangle_overlap_trash` [INFO] [stdout] --> src/leetcode/is_rectangle_overlap.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn is_rectangle_overlap_trash(rec1: Vec, rec2: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_subtree.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_subtree` [INFO] [stdout] --> src/leetcode/is_subtree.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn is_subtree(s: Option>>, t: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/is_subtree.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn help(node: &Option>>, t: &Option>>) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_symmetric.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_symmetric` [INFO] [stdout] --> src/leetcode/is_symmetric.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_symmetric(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `helper` [INFO] [stdout] --> src/leetcode/is_symmetric.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn helper(l: &Option>>, r: &Option>>) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_unique.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unique` [INFO] [stdout] --> src/leetcode/is_unique.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn is_unique(astr: String) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/is_valid_bst.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_bst` [INFO] [stdout] --> src/leetcode/is_valid_bst.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_valid_bst(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/is_valid_bst.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn help(root: &Option>>, low: Option, upper: Option) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/largest_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: `largest_perimeter` [INFO] [stdout] --> src/leetcode/largest_perimeter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn largest_perimeter(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/last_remaining.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_remaining` [INFO] [stdout] --> src/leetcode/last_remaining.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn last_remaining(n: i32, m: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(time: i32, key: i32, value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn new(capacity: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn get(&mut self, key: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put` [INFO] [stdout] --> src/leetcode/lfu_cache.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn put(&mut self, key: i32, value: i32) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/longest_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: `longest_ones` [INFO] [stdout] --> src/leetcode/longest_ones.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_ones(a: Vec, mut k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `massage1` [INFO] [stdout] --> src/leetcode/massage.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn massage1(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/massage.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn help(idx: usize, nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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/leetcode/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/leetcode/max_area_of_island.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: `max_area_of_island` [INFO] [stdout] --> src/leetcode/max_area_of_island.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_area_of_island(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/max_area_of_island.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/max_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: `max_distance` [INFO] [stdout] --> src/leetcode/max_distance.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_distance(mut grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_k_lists` [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn merge_k_lists(mut lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_two_lists` [INFO] [stdout] --> src/leetcode/merge_k_lists.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/merge_two_lists.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_two_lists` [INFO] [stdout] --> src/leetcode/merge_two_lists.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/middle_node.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/middle_node.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `middle_node` [INFO] [stdout] --> src/leetcode/middle_node.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn middle_node(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_increment_for_unique3` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn min_increment_for_unique3(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_increment_for_unique2` [INFO] [stdout] --> src/leetcode/min_increment_for_unique.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn min_increment_for_unique2(mut a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/min_subsequence.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_subsequence` [INFO] [stdout] --> src/leetcode/min_subsequence.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn min_subsequence(mut nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/minimum_length_encoding.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minimum_length_encoding` [INFO] [stdout] --> src/leetcode/minimum_length_encoding.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn minimum_length_encoding(words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/num_islands.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_islands` [INFO] [stdout] --> src/leetcode/num_islands.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn num_islands(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/leetcode/num_islands.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/num_rook_captures.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_rook_captures` [INFO] [stdout] --> src/leetcode/num_rook_captures.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn num_rook_captures(board: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_subarray_product_less_than_k2` [INFO] [stdout] --> src/leetcode/num_subarray_product_less_than_k.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn num_subarray_product_less_than_k2(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/num_trees.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn help(start: i32, end: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/path_sum.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `path_sum` [INFO] [stdout] --> src/leetcode/path_sum.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn path_sum(root: Option>>, sum: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/path_sum.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/pattern_matching.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pattern_matching` [INFO] [stdout] --> src/leetcode/pattern_matching.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn pattern_matching(pattern: String, value: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/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/leetcode/permute.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn permute(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/leetcode/permute.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn dfs(path: &mut Vec, nums: &Vec, used: &mut Vec, res: &mut Vec>) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/leetcode/puzzle2.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_duplicates1` [INFO] [stdout] --> src/leetcode/remove_duplicates.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn remove_duplicates1(s: String, k: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_elements2` [INFO] [stdout] --> src/leetcode/remove_elements.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn remove_elements2(mut head: Option>, val: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/reverse_pairs2.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_pairs` [INFO] [stdout] --> src/leetcode/reverse_pairs2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_pairs(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/right_side_view.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `right_side_view` [INFO] [stdout] --> src/leetcode/right_side_view.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn right_side_view(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/rob.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rob2` [INFO] [stdout] --> src/leetcode/rob.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn rob2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rob` [INFO] [stdout] --> src/leetcode/rob.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn rob(nums: Vec) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/rob.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn help(next: usize, nums: &Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate2` [INFO] [stdout] --> src/leetcode/rotate.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn rotate2(matrix: &mut Vec>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/sorted_array_to_bst.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sorted_array_to_bst` [INFO] [stdout] --> src/leetcode/sorted_array_to_bst.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sorted_array_to_bst(nums: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/sum_of_left_leaves.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sum_of_left_leaves` [INFO] [stdout] --> src/leetcode/sum_of_left_leaves.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn sum_of_left_leaves(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/leetcode/sum_of_left_leaves.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn help(root: &Option>>, is_left: bool) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/trap.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trap` [INFO] [stdout] --> src/leetcode/trap.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn trap(height: Vec) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Twitter` [INFO] [stdout] --> src/leetcode/twitter.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Twitter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/leetcode/twitter.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `post_tweet` [INFO] [stdout] --> src/leetcode/twitter.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn post_tweet(&mut self, user_id: i32, tweet_id: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_news_feed` [INFO] [stdout] --> src/leetcode/twitter.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_news_feed(&self, user_id: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `follow` [INFO] [stdout] --> src/leetcode/twitter.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn follow(&mut self, follower_id: i32, followee_id: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unfollow` [INFO] [stdout] --> src/leetcode/twitter.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn unfollow(&mut self, follower_id: i32, followee_id: i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/update_matrix.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_matrix` [INFO] [stdout] --> src/leetcode/update_matrix.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn update_matrix(matrix: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bfs` [INFO] [stdout] --> src/leetcode/update_matrix.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn bfs(x: usize, y: usize, len: usize, visited: Vec>, matrix: Vec>) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/ways_to_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: `ways_to_change` [INFO] [stdout] --> src/leetcode/ways_to_change.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn ways_to_change(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/leetcode/zigzag_level_order.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `zigzag_level_order` [INFO] [stdout] --> src/leetcode/zigzag_level_order.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn zigzag_level_order(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/add.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` [INFO] [stdout] --> src/offer/add.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn add(mut a: i32, mut b: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TreeNode` [INFO] [stdout] --> src/offer/codec.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/codec.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/codec.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `codec` [INFO] [stdout] --> src/offer/codec.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn codec(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/construct_arr.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_arr` [INFO] [stdout] --> src/offer/construct_arr.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn construct_arr(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/first_uniq_char.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn first_uniq_char(s: String) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/get_least_numbers.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: `get_least_numbers` [INFO] [stdout] --> src/offer/get_least_numbers.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_least_numbers(mut arr: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort2` [INFO] [stdout] --> src/offer/get_least_numbers.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn quick_sort2(k: usize, left: usize, right: usize, arr: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `quick_sort` [INFO] [stdout] --> src/offer/get_least_numbers.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn quick_sort(left: usize, right: usize, arr: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/is_balanced.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/is_balanced.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_balanced` [INFO] [stdout] --> src/offer/is_balanced.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn is_balanced(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/is_balanced.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn help(node: &Option>>, step: &mut i32) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help2` [INFO] [stdout] --> src/offer/is_balanced.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn help2(node: &Option>>, flag: &mut bool) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_straight` [INFO] [stdout] --> src/offer/is_straight.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_straight(mut nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/last_remaining.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_remaining` [INFO] [stdout] --> src/offer/last_remaining.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn last_remaining(n: i32, m: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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: `length_of_longest_substring` [INFO] [stdout] --> src/offer/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: `new` [INFO] [stdout] --> src/offer/level_order.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/level_order2.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/level_order3.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/majority_element.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/max_depth.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/max_depth.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_depth` [INFO] [stdout] --> src/offer/max_depth.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/max_depth.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn help(node: &Option>>, step: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/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/offer/max_sliding_window.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_sliding_window` [INFO] [stdout] --> src/offer/max_sliding_window.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_sliding_window(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max` [INFO] [stdout] --> src/offer/max_sliding_window.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn max(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/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/offer/max_sub_array.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | 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/offer/max_value.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_value` [INFO] [stdout] --> src/offer/max_value.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn max_value(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/max_value.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn help(sum: i32, i: usize, j: usize, i_max: usize, j_max: usize, grid: &Vec>) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MedianFinder` [INFO] [stdout] --> src/offer/median_finder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct MedianFinder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/median_finder.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_num` [INFO] [stdout] --> src/offer/median_finder.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn add_num(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_median` [INFO] [stdout] --> src/offer/median_finder.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn find_median(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `MinStack` [INFO] [stdout] --> src/offer/min_stack.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MinStack { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/min_stack.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: `push` [INFO] [stdout] --> src/offer/min_stack.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: `pop` [INFO] [stdout] --> src/offer/min_stack.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn pop(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> src/offer/min_stack.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn top(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min` [INFO] [stdout] --> src/offer/min_stack.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn min(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/nth_ugly_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: `nth_ugly_number` [INFO] [stdout] --> src/offer/nth_ugly_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn nth_ugly_number(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/offer/path_sum.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/path_sum.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `path_sum` [INFO] [stdout] --> src/offer/path_sum.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn path_sum(root: Option>>, sum: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/path_sum.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn help( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/permutation.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `permutation` [INFO] [stdout] --> src/offer/permutation.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn permutation(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/permutation.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn help(cs: &Vec, s: String, res: &mut std::collections::HashSet) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/reverse_left_words.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_left_words` [INFO] [stdout] --> src/offer/reverse_left_words.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_left_words(s: String, n: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/reverse_words.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_words` [INFO] [stdout] --> src/offer/reverse_words.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_words(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/single_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: `single_numbers2` [INFO] [stdout] --> src/offer/single_numbers.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn single_numbers2(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `single_numbers` [INFO] [stdout] --> src/offer/single_numbers.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn single_numbers(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/sum_nums.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sum_nums` [INFO] [stdout] --> src/offer/sum_nums.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sum_nums(mut n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `help` [INFO] [stdout] --> src/offer/sum_nums.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn help(res: &mut i32, mut n: i32) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/translate_num.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate_num` [INFO] [stdout] --> src/offer/translate_num.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn translate_num(num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/offer/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: struct is never constructed: `Solution` [INFO] [stdout] --> src/offer/two_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: `two_sum` [INFO] [stdout] --> src/offer/two_sum2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn two_sum(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 212 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.81s [INFO] running `Command { std: "docker" "inspect" "3342df18400a791ae7d554f28316ece2a6b30e2a1463121b49cc1832898ec4b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3342df18400a791ae7d554f28316ece2a6b30e2a1463121b49cc1832898ec4b9", kill_on_drop: false }` [INFO] [stdout] 3342df18400a791ae7d554f28316ece2a6b30e2a1463121b49cc1832898ec4b9