[INFO] cloning repository https://github.com/yxxx5/leetcode_rusrt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yxxx5/leetcode_rusrt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31eca0197ae14438fed9f6280b93bbc4ecc26e9b [INFO] checking yxxx5/leetcode_rusrt against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yxxx5/leetcode_rusrt on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yxxx5/leetcode_rusrt [INFO] finished tweaking git repo https://github.com/yxxx5/leetcode_rusrt [INFO] tweaked toml for git repo https://github.com/yxxx5/leetcode_rusrt written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/yxxx5/leetcode_rusrt already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-14/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2468c3a135d65e0958d870f0d8060b3434072210d768eec9ca2f0632533f973a [INFO] running `Command { std: "docker" "start" "-a" "2468c3a135d65e0958d870f0d8060b3434072210d768eec9ca2f0632533f973a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2468c3a135d65e0958d870f0d8060b3434072210d768eec9ca2f0632533f973a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2468c3a135d65e0958d870f0d8060b3434072210d768eec9ca2f0632533f973a", kill_on_drop: false }` [INFO] [stdout] 2468c3a135d65e0958d870f0d8060b3434072210d768eec9ca2f0632533f973a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 875d5a26310ed74c43bce33e96db8fda126416194edf6ae48914eb8a65b23501 [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" "875d5a26310ed74c43bce33e96db8fda126416194edf6ae48914eb8a65b23501", kill_on_drop: false }` [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling leetcode_test v0.1.2 [INFO] [stderr] Checking leetcode_prelude v0.2.3 [INFO] [stderr] Checking leetcode_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Solution617` [INFO] [stdout] --> src/main.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::merge_trees::{Solution617, makeRcTree}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::makeRcTree` [INFO] [stdout] --> src/binary_tree_inorder_traversal/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binary_tree_inorder_traversal::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::binary_tree_inorder_traversal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::single_number::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::single_number::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::makeRcTree` [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::kth_smallest_element_in_a_bst::Solution230` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::kth_smallest_element_in_a_bst::Solution230; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::num_unique_emails::Solution929` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::num_unique_emails::Solution929; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::makeRcTree` [INFO] [stdout] --> src/maximum_depth_of_binary_tree/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::makeRcTree` [INFO] [stdout] --> src/invert_binary_tree/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `peak_index_in_a_mountain_array::Solution852` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use peak_index_in_a_mountain_array::Solution852; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/self_dividing_numbers/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if (i < 10) { [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::merge_trees::makeRcTree` [INFO] [stdout] --> src/univalued_binary_tree/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::merge_trees::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::merge_trees::makeRcTree` [INFO] [stdout] --> src/search_in_a_binary_search_tree/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::merge_trees::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | if (len == 1) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/majority_element/mod.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | let mut cnt:i32 = 0;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/majority_element/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | if (cnt == 0) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/majority_element/mod.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | if (res == x) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/intersection_of_two_arrays/mod.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | if (nums1[i1] == nums2[i2]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/my_sqrt/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | while (left < right) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/smallest_range_i/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | if (max - k <= min + k) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shortest_distance_to_a_character/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | if (i as i32 == *j) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/minimum_absolute_difference_in_bst/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::makeRcTree` [INFO] [stdout] --> src/minimum_absolute_difference_in_bst/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use super::makeRcTree; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/binary_gap/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | if (m > res) { [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/fixed_point/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if (j == i as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Solution617` [INFO] [stdout] --> src/main.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::merge_trees::{Solution617, makeRcTree}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::binary_tree_inorder_traversal::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::binary_tree_inorder_traversal::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::single_number::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::single_number::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::kth_smallest_element_in_a_bst::Solution230` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::kth_smallest_element_in_a_bst::Solution230; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::num_unique_emails::Solution929` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::num_unique_emails::Solution929; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `peak_index_in_a_mountain_array::Solution852` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use peak_index_in_a_mountain_array::Solution852; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/self_dividing_numbers/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if (i < 10) { [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | if (len == 1) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/majority_element/mod.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | let mut cnt:i32 = 0;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/majority_element/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | if (cnt == 0) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/majority_element/mod.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | if (res == x) { [INFO] [stdout] | ^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/intersection_of_two_arrays/mod.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | if (nums1[i1] == nums2[i2]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/my_sqrt/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | while (left < right) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/smallest_range_i/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | if (max - k <= min + k) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/shortest_distance_to_a_character/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | if (i as i32 == *j) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/minimum_absolute_difference_in_bst/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/binary_gap/mod.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | if (m > res) { [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/fixed_point/mod.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | if (j == i as i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/reverse_words_in_a_string_iii/mod.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | res = res.trim_right().to_string(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/next_permutation/mod.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | for (i, n) in nums.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/num_unique_emails/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for (i, s) in emails.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/maximum_depth_of_binary_tree/mod.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut n= 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newt` is never read [INFO] [stdout] --> src/invert_binary_tree/mod.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut newt: Option>> = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `c` is never read [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut c = ""; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/number_of_recent_calls/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reverse_string/mod.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut temp = s[i]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution617` [INFO] [stdout] --> src/merge_trees/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution617{} [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: `merge_trees` [INFO] [stdout] --> src/merge_trees/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn merge_trees(t1: Option>>, t2: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makeRcTree` [INFO] [stdout] --> src/merge_trees/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn makeRcTree(val:i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution31` [INFO] [stdout] --> src/next_permutation/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution31 {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_permutation` [INFO] [stdout] --> src/next_permutation/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn next_permutation(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution94` [INFO] [stdout] --> src/binary_tree_inorder_traversal/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution94{} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inorder_traversal` [INFO] [stdout] --> src/binary_tree_inorder_traversal/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn inorder_traversal(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution136` [INFO] [stdout] --> src/single_number/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution136{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `single_number` [INFO] [stdout] --> src/single_number/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn single_number(nums: Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution230` [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Solution230{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kth_smallest` [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn kth_smallest(root: Option>>, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `treeLen` [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn treeLen(root: Option>>) -> i32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `max` [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn max(root: Option>>) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution929` [INFO] [stdout] --> src/num_unique_emails/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution929{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `num_unique_emails` [INFO] [stdout] --> src/num_unique_emails/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn num_unique_emails(emails: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution104` [INFO] [stdout] --> src/maximum_depth_of_binary_tree/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Solution104{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_depth` [INFO] [stdout] --> src/maximum_depth_of_binary_tree/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn max_depth(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution226` [INFO] [stdout] --> src/invert_binary_tree/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Solution226{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invert_tree` [INFO] [stdout] --> src/invert_binary_tree/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution852` [INFO] [stdout] --> src/peak_index_in_a_mountain_array/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution852{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peak_index_in_mountain_array` [INFO] [stdout] --> src/peak_index_in_a_mountain_array/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn peak_index_in_mountain_array(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution728` [INFO] [stdout] --> src/self_dividing_numbers/mod.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution728{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `self_dividing_numbers` [INFO] [stdout] --> src/self_dividing_numbers/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn self_dividing_numbers(left: i32, right: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test` [INFO] [stdout] --> src/self_dividing_numbers/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn test (n: i32) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution292` [INFO] [stdout] --> src/nim_game/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution292{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_win_nim` [INFO] [stdout] --> src/nim_game/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn can_win_nim(n: i32) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RecentCounter` [INFO] [stdout] --> src/number_of_recent_calls/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RecentCounter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/number_of_recent_calls/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ping` [INFO] [stdout] --> src/number_of_recent_calls/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn ping(&mut self, t: i32) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution965` [INFO] [stdout] --> src/univalued_binary_tree/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution965{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unival_tree` [INFO] [stdout] --> src/univalued_binary_tree/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_unival_tree(root: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution509` [INFO] [stdout] --> src/fibonacci_number/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution509{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fib` [INFO] [stdout] --> src/fibonacci_number/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn fib(n: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution344` [INFO] [stdout] --> src/reverse_string/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution344{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_string` [INFO] [stdout] --> src/reverse_string/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution500` [INFO] [stdout] --> src/keyboard_row/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution500{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_words` [INFO] [stdout] --> src/keyboard_row/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn find_words(words: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `matched` [INFO] [stdout] --> src/keyboard_row/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn matched(s: &String) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution700` [INFO] [stdout] --> src/search_in_a_binary_search_tree/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Solution700{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search_bst` [INFO] [stdout] --> src/search_in_a_binary_search_tree/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn search_bst(root: Option>>, val: i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution3` [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Solution3{} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution15` [INFO] [stdout] --> src/three_sum/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Solution15{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `three_sum` [INFO] [stdout] --> src/three_sum/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn three_sum(mut nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution169` [INFO] [stdout] --> src/majority_element/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution169{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element` [INFO] [stdout] --> src/majority_element/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution349` [INFO] [stdout] --> src/intersection_of_two_arrays/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Solution349{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `intersection` [INFO] [stdout] --> src/intersection_of_two_arrays/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn intersection(mut nums1: Vec, mut nums2: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution657` [INFO] [stdout] --> src/robot_return_to_origin/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution657{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `judge_circle` [INFO] [stdout] --> src/robot_return_to_origin/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn judge_circle(moves: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution942` [INFO] [stdout] --> src/di_string_match/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution942 {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `di_string_match` [INFO] [stdout] --> src/di_string_match/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn di_string_match(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution69` [INFO] [stdout] --> src/my_sqrt/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution69 {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `my_sqrt` [INFO] [stdout] --> src/my_sqrt/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn my_sqrt(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution561` [INFO] [stdout] --> src/array_partition_i/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution561{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `array_pair_sum` [INFO] [stdout] --> src/array_partition_i/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn array_pair_sum(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution557` [INFO] [stdout] --> src/reverse_words_in_a_string_iii/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution557{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_words` [INFO] [stdout] --> src/reverse_words_in_a_string_iii/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn reverse_words(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution908` [INFO] [stdout] --> src/smallest_range_i/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution908{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `smallest_range_i` [INFO] [stdout] --> src/smallest_range_i/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn smallest_range_i(a: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution146` [INFO] [stdout] --> src/same_tree/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution146{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_same_tree` [INFO] [stdout] --> src/same_tree/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_same_tree(p: Option>>, q: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution821` [INFO] [stdout] --> src/shortest_distance_to_a_character/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution821{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shortest_to_char` [INFO] [stdout] --> src/shortest_distance_to_a_character/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn shortest_to_char(s: String, c: char) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution530` [INFO] [stdout] --> src/minimum_absolute_difference_in_bst/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Solution530{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_minimum_difference` [INFO] [stdout] --> src/minimum_absolute_difference_in_bst/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_minimum_difference(root: Option>>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution868` [INFO] [stdout] --> src/binary_gap/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution868{} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `binary_gap` [INFO] [stdout] --> src/binary_gap/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn binary_gap(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution1064` [INFO] [stdout] --> src/fixed_point/mod.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution1064{} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fixed_point` [INFO] [stdout] --> src/fixed_point/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn fixed_point(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t1Left` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut t1Left = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `t1_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t1Right` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let mut t1Right = None; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `t1_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t2Left` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut t2Left = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `t2_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t2Right` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut t2Right = None; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `t2_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeRcTree` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn makeRcTree(val:i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `make_rc_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bMin` should have a snake case name [INFO] [stdout] --> src/next_permutation/mod.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let mut bMin = 0; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `b_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftLen` should have a snake case name [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let leftLen = treeLen(left.clone()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `left_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `treeLen` should have a snake case name [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn treeLen(root: Option>>) -> i32{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tree_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 111 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/reverse_words_in_a_string_iii/mod.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | res = res.trim_right().to_string(); [INFO] [stdout] | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_end` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t3` [INFO] [stdout] --> src/merge_trees/mod.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let t3 = Solution617::merge_trees(t1, t2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/next_permutation/mod.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | for (i, n) in nums.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/num_unique_emails/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for (i, s) in emails.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/maximum_depth_of_binary_tree/mod.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut n= 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newt` is never read [INFO] [stdout] --> src/invert_binary_tree/mod.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut newt: Option>> = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `n` is never read [INFO] [stdout] --> src/number_of_recent_calls/mod.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut n = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `c` is never read [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut c = ""; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/num_unique_emails/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut v = toStringVec(v1); [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/number_of_recent_calls/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut count = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reverse_string/mod.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut temp = s[i]; [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/intersection_of_two_arrays/mod.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut v1 = vec![1, 2, 2, 1]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/intersection_of_two_arrays/mod.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut v2 = vec![2, 2]; [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/intersection_of_two_arrays/mod.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut v3 = vec![4, 9, 5]; [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/intersection_of_two_arrays/mod.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut v4 = vec![9, 4, 9, 8, 4]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t1Left` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let mut t1Left = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `t1_left` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t1Right` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let mut t1Right = None; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `t1_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t2Left` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut t2Left = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `t2_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `t2Right` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut t2Right = None; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `t2_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeRcTree` should have a snake case name [INFO] [stdout] --> src/merge_trees/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn makeRcTree(val:i32) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `make_rc_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bMin` should have a snake case name [INFO] [stdout] --> src/next_permutation/mod.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | let mut bMin = 0; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `b_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftLen` should have a snake case name [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let leftLen = treeLen(left.clone()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `left_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `treeLen` should have a snake case name [INFO] [stdout] --> src/kth_smallest_element_in_a_bst/mod.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn treeLen(root: Option>>) -> i32{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tree_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `toStringVec` should have a snake case name [INFO] [stdout] --> src/num_unique_emails/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn toStringVec (v: Vec<&str>) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `to_string_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/smallest_range_i/mod.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let A = vec![0, 10]; [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K` should have a snake case name [INFO] [stdout] --> src/smallest_range_i/mod.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let K = 2; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.67s [INFO] running `Command { std: "docker" "inspect" "875d5a26310ed74c43bce33e96db8fda126416194edf6ae48914eb8a65b23501", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "875d5a26310ed74c43bce33e96db8fda126416194edf6ae48914eb8a65b23501", kill_on_drop: false }` [INFO] [stdout] 875d5a26310ed74c43bce33e96db8fda126416194edf6ae48914eb8a65b23501