[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] building yxxx5/leetcode_rusrt against master#70591dc15db32941fe3595fdbf98e58d6975f95e for pr-127731 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyxxx5%2Fleetcode_rusrt" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yxxx5/leetcode_rusrt on toolchain 70591dc15db32941fe3595fdbf98e58d6975f95e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "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-4-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] [stderr] Adding itoa v1.0.11 [INFO] [stderr] Updating `https://mirrors.ustc.edu.cn/crates.io-index/` index [INFO] [stderr] Adding leetcode_prelude v0.2.3 [INFO] [stderr] Adding leetcode_test v0.1.2 [INFO] [stderr] Adding memchr v2.7.4 [INFO] [stderr] Adding proc-macro2 v1.0.86 [INFO] [stderr] Adding quote v1.0.36 [INFO] [stderr] Adding ryu v1.0.18 [INFO] [stderr] Adding serde v1.0.207 [INFO] [stderr] Adding serde_derive v1.0.207 [INFO] [stderr] Adding serde_json v1.0.124 [INFO] [stderr] Adding syn v2.0.74 [INFO] [stderr] Adding unicode-ident v1.0.12 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded leetcode_prelude v0.2.3 [INFO] [stderr] Downloaded leetcode_test v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e755c3964acc81cab752ae6d1ff0f73139da27a26805b56eda7d96f73df4e40f [INFO] running `Command { std: "docker" "start" "-a" "e755c3964acc81cab752ae6d1ff0f73139da27a26805b56eda7d96f73df4e40f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e755c3964acc81cab752ae6d1ff0f73139da27a26805b56eda7d96f73df4e40f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e755c3964acc81cab752ae6d1ff0f73139da27a26805b56eda7d96f73df4e40f", kill_on_drop: false }` [INFO] [stdout] e755c3964acc81cab752ae6d1ff0f73139da27a26805b56eda7d96f73df4e40f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2862deec7e8bec83f9566b9c30ab853c5719853b156f4a44b84fbebd71c4d7dc [INFO] running `Command { std: "docker" "start" "-a" "2862deec7e8bec83f9566b9c30ab853c5719853b156f4a44b84fbebd71c4d7dc", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.207 [INFO] [stderr] Compiling serde_json v1.0.124 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling leetcode_test v0.1.2 [INFO] [stderr] Compiling leetcode_prelude v0.2.3 [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - if (i < 10) { [INFO] [stdout] 6 + if i < 10 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if (len == 1) { [INFO] [stdout] 18 + if len == 1 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (cnt == 0) { [INFO] [stdout] 9 + if cnt == 0 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - if (res == x) { [INFO] [stdout] 13 + if res == x { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (nums1[i1] == nums2[i2]) { [INFO] [stdout] 19 + if nums1[i1] == nums2[i2] { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - while (left < right) { [INFO] [stdout] 14 + while left < right { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (max - k <= min + k) { [INFO] [stdout] 12 + if max - k <= min + k { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (i as i32 == *j) { [INFO] [stdout] 19 + if i as i32 == *j { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if (m > res) { [INFO] [stdout] 10 + if m > res { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - if (j == i as i32) { [INFO] [stdout] 6 + if j == i as i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 12 | res = res.trim_end().to_string(); [INFO] [stdout] | ~~~~~~~~ [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:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut n= 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newt` is never read [INFO] [stdout] --> src/invert_binary_tree/mod.rs:11:17 [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: 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: value assigned to `c` is never read [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:24:17 [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: struct `Solution15` is never constructed [INFO] [stdout] --> src/three_sum/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Solution15{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `three_sum` is never used [INFO] [stdout] --> src/three_sum/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Solution15 { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 18 | pub fn three_sum(mut nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution942` is never constructed [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 `di_string_match` is never used [INFO] [stdout] --> src/di_string_match/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Solution942 { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 11 | pub fn di_string_match(s: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution69` is never constructed [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 `my_sqrt` is never used [INFO] [stdout] --> src/my_sqrt/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution69 { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 8 | pub fn my_sqrt(x: i32) -> 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: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.26s [INFO] running `Command { std: "docker" "inspect" "2862deec7e8bec83f9566b9c30ab853c5719853b156f4a44b84fbebd71c4d7dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2862deec7e8bec83f9566b9c30ab853c5719853b156f4a44b84fbebd71c4d7dc", kill_on_drop: false }` [INFO] [stdout] 2862deec7e8bec83f9566b9c30ab853c5719853b156f4a44b84fbebd71c4d7dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+70591dc15db32941fe3595fdbf98e58d6975f95e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3486bc3ffb145229ab8b69878b8ff90d7ac722cc690cb451e66eb32735a675ff [INFO] running `Command { std: "docker" "start" "-a" "3486bc3ffb145229ab8b69878b8ff90d7ac722cc690cb451e66eb32735a675ff", kill_on_drop: false }` [INFO] [stderr] Compiling 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: `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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - if (i < 10) { [INFO] [stdout] 6 + if i < 10 { [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if (len == 1) { [INFO] [stdout] 18 + if len == 1 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (cnt == 0) { [INFO] [stdout] 9 + if cnt == 0 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - if (res == x) { [INFO] [stdout] 13 + if res == x { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (nums1[i1] == nums2[i2]) { [INFO] [stdout] 19 + if nums1[i1] == nums2[i2] { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - while (left < right) { [INFO] [stdout] 14 + while left < right { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if (max - k <= min + k) { [INFO] [stdout] 12 + if max - k <= min + k { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - if (i as i32 == *j) { [INFO] [stdout] 19 + if i as i32 == *j { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - if (m > res) { [INFO] [stdout] 10 + if m > res { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - if (j == i as i32) { [INFO] [stdout] 6 + if j == i as i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `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] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 12 | res = res.trim_end().to_string(); [INFO] [stdout] | ~~~~~~~~ [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: 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: value assigned to `n` is never read [INFO] [stdout] --> src/maximum_depth_of_binary_tree/mod.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut n= 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newt` is never read [INFO] [stdout] --> src/invert_binary_tree/mod.rs:11:17 [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: 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: value assigned to `n` is never read [INFO] [stdout] --> src/number_of_recent_calls/mod.rs:50:17 [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: 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: value assigned to `c` is never read [INFO] [stdout] --> src/longest_substring_without_repeating_characters/mod.rs:24:17 [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/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 `test` profile [unoptimized + debuginfo] target(s) in 0.85s [INFO] running `Command { std: "docker" "inspect" "3486bc3ffb145229ab8b69878b8ff90d7ac722cc690cb451e66eb32735a675ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3486bc3ffb145229ab8b69878b8ff90d7ac722cc690cb451e66eb32735a675ff", kill_on_drop: false }` [INFO] [stdout] 3486bc3ffb145229ab8b69878b8ff90d7ac722cc690cb451e66eb32735a675ff