[INFO] cloning repository https://github.com/funn1est/leetcode-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/funn1est/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffunn1est%2Fleetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffunn1est%2Fleetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb8b579ce59e6971a00dd49ebaf915d3d165a588 [INFO] checking funn1est/leetcode-rust against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffunn1est%2Fleetcode-rust" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/funn1est/leetcode-rust on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/funn1est/leetcode-rust [INFO] finished tweaking git repo https://github.com/funn1est/leetcode-rust [INFO] tweaked toml for git repo https://github.com/funn1est/leetcode-rust written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/funn1est/leetcode-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "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] 7d36b1a17d2a829ca6dbb7ee3010c11e3abe5523a53de92d0538d420062f4058 [INFO] running `Command { std: "docker" "start" "-a" "7d36b1a17d2a829ca6dbb7ee3010c11e3abe5523a53de92d0538d420062f4058", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d36b1a17d2a829ca6dbb7ee3010c11e3abe5523a53de92d0538d420062f4058", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d36b1a17d2a829ca6dbb7ee3010c11e3abe5523a53de92d0538d420062f4058", kill_on_drop: false }` [INFO] [stdout] 7d36b1a17d2a829ca6dbb7ee3010c11e3abe5523a53de92d0538d420062f4058 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 4d0cfe975ede66b3500ae2666ec482b333e369d5ca06cbf330bea7d5a0ec6ea6 [INFO] running `Command { std: "docker" "start" "-a" "4d0cfe975ede66b3500ae2666ec482b333e369d5ca06cbf330bea7d5a0ec6ea6", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vec_to_list_node` [INFO] [stdout] --> src/n2_add_two_numbers/mod.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use super::libs::linked_list::{vec_to_list_node, ListNode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1002_find_common_characters/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub 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: `common_chars` [INFO] [stdout] --> src/n1002_find_common_characters/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn common_chars(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1021_remove_outer_parentheses/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_outer_parentheses` [INFO] [stdout] --> src/n1021_remove_outer_parentheses/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | 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/n1051_height_checker/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `height_checker` [INFO] [stdout] --> src/n1051_height_checker/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn height_checker(heights: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1064_fixed_point/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fixed_point` [INFO] [stdout] --> src/n1064_fixed_point/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn fixed_point(a: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1108_defanging_an_ip_address/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `defang_i_paddr` [INFO] [stdout] --> src/n1108_defanging_an_ip_address/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn defang_i_paddr(address: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `defang_i_paddr1` [INFO] [stdout] --> src/n1108_defanging_an_ip_address/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn defang_i_paddr1(address: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n118_pascals_triangle/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate` [INFO] [stdout] --> src/n118_pascals_triangle/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn generate(num_rows: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate1` [INFO] [stdout] --> src/n118_pascals_triangle/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn generate1(num_rows: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate2` [INFO] [stdout] --> src/n118_pascals_triangle/mod.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn generate2(num_rows: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n11_container_with_most_water/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_area` [INFO] [stdout] --> src/n11_container_with_most_water/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1221_split_a_string_in_balanced_strings/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `balanced_string_split` [INFO] [stdout] --> src/n1221_split_a_string_in_balanced_strings/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn balanced_string_split(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1295_find_numbers_with_even_number_of_digits/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_numbers` [INFO] [stdout] --> src/n1295_find_numbers_with_even_number_of_digits/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn find_numbers(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1309_decrypt_string_from_alphabet_to_integer_mapping/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `freq_alphabets` [INFO] [stdout] --> src/n1309_decrypt_string_from_alphabet_to_integer_mapping/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn freq_alphabets(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `freq_alphabets_1` [INFO] [stdout] --> src/n1309_decrypt_string_from_alphabet_to_integer_mapping/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn freq_alphabets_1(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1342_number_of_steps_to_reduce_a_number_to_zero/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `number_of_steps` [INFO] [stdout] --> src/n1342_number_of_steps_to_reduce_a_number_to_zero/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn number_of_steps(mut num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n13_roman_to_integer/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `roman_to_int` [INFO] [stdout] --> src/n13_roman_to_integer/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1413_minimum_value_to_get_positive_step_by_step_sum/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_start_value` [INFO] [stdout] --> src/n1413_minimum_value_to_get_positive_step_by_step_sum/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn min_start_value(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1431_kids_with_the_greatest_number_of_candies/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `kids_with_candies` [INFO] [stdout] --> src/n1431_kids_with_the_greatest_number_of_candies/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn kids_with_candies(candies: Vec, extra_candies: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n1450_number_of_students_doing_homework_at_a_given_time/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `busy_student` [INFO] [stdout] --> src/n1450_number_of_students_doing_homework_at_a_given_time/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn busy_student(start_time: Vec, end_time: Vec, query_time: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `busy_student1` [INFO] [stdout] --> src/n1450_number_of_students_doing_homework_at_a_given_time/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn busy_student1(start_time: Vec, end_time: Vec, query_time: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n14_longest_common_prefix/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_common_prefix` [INFO] [stdout] --> src/n14_longest_common_prefix/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn longest_common_prefix(mut strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n172_factorial_trailing_zeroes/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trailing_zeroes` [INFO] [stdout] --> src/n172_factorial_trailing_zeroes/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn trailing_zeroes(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `helper` [INFO] [stdout] --> src/n172_factorial_trailing_zeroes/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn helper(n: i32, total: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trailing_zeroes1` [INFO] [stdout] --> src/n172_factorial_trailing_zeroes/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn trailing_zeroes1(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n198_house_robber/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rob` [INFO] [stdout] --> src/n198_house_robber/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn rob(nums: Vec) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n202_happy_number/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_happy` [INFO] [stdout] --> src/n202_happy_number/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn is_happy(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n238_product_of_array_except_self/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `product_except_self` [INFO] [stdout] --> src/n238_product_of_array_except_self/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n268_missing_number/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `missing_number` [INFO] [stdout] --> src/n268_missing_number/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn missing_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n27_remove_element/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_element` [INFO] [stdout] --> src/n27_remove_element/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn remove_element(nums: &mut Vec, val: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n2_add_two_numbers/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/n2_add_two_numbers/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n344_reverse_string/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_string` [INFO] [stdout] --> src/n344_reverse_string/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn reverse_string(s: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n3_longest_substring_without_repeating_characters/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `length_of_longest_substring` [INFO] [stdout] --> src/n3_longest_substring_without_repeating_characters/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n412_fizz_buzz/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fizz_buzz` [INFO] [stdout] --> src/n412_fizz_buzz/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn fizz_buzz(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n461_hamming_distance/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance` [INFO] [stdout] --> src/n461_hamming_distance/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn hamming_distance(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance1` [INFO] [stdout] --> src/n461_hamming_distance/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn hamming_distance1(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hamming_distance2` [INFO] [stdout] --> src/n461_hamming_distance/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn hamming_distance2(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n49_group_anagrams/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `group_anagrams` [INFO] [stdout] --> src/n49_group_anagrams/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n500_keyboard_row/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_words` [INFO] [stdout] --> src/n500_keyboard_row/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn find_words(words: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n520_detect_capital/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `detect_capital_use` [INFO] [stdout] --> src/n520_detect_capital/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn detect_capital_use(word: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n53_maximum_subarray/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_sub_array` [INFO] [stdout] --> src/n53_maximum_subarray/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | 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/n55_jump_game/mod.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_jump` [INFO] [stdout] --> src/n55_jump_game/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn can_jump(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_jump1` [INFO] [stdout] --> src/n55_jump_game/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn can_jump1(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n62_unique_paths/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unique_paths` [INFO] [stdout] --> src/n62_unique_paths/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn unique_paths(m: i32, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unique_paths1` [INFO] [stdout] --> src/n62_unique_paths/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn unique_paths1(m: i32, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `unique_paths2` [INFO] [stdout] --> src/n62_unique_paths/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn unique_paths2(m: i32, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `helper` [INFO] [stdout] --> src/n62_unique_paths/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | fn helper(m: usize, n: usize, memo: &mut Vec>) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n724_find_pivot_index/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pivot_index` [INFO] [stdout] --> src/n724_find_pivot_index/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn pivot_index(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n75_sort_colors/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_colors` [INFO] [stdout] --> src/n75_sort_colors/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sort_colors(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n849_maximize_distance_to_closest_person/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_dist_to_closest` [INFO] [stdout] --> src/n849_maximize_distance_to_closest_person/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn max_dist_to_closest(seats: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n905_sort_array_by_parity/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_array_by_parity` [INFO] [stdout] --> src/n905_sort_array_by_parity/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn sort_array_by_parity(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_array_by_parity1` [INFO] [stdout] --> src/n905_sort_array_by_parity/mod.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn sort_array_by_parity1(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n908_smallest_range_i/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `smallest_range_i` [INFO] [stdout] --> src/n908_smallest_range_i/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn smallest_range_i(a: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/n976_largest_perimeter_triangle/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `largest_perimeter` [INFO] [stdout] --> src/n976_largest_perimeter_triangle/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | 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/n9_palindrome_number/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_palindrome` [INFO] [stdout] --> src/n9_palindrome_number/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 95 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `freq_alphabets_1` [INFO] [stdout] --> src/n1309_decrypt_string_from_alphabet_to_integer_mapping/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn freq_alphabets_1(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "4d0cfe975ede66b3500ae2666ec482b333e369d5ca06cbf330bea7d5a0ec6ea6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d0cfe975ede66b3500ae2666ec482b333e369d5ca06cbf330bea7d5a0ec6ea6", kill_on_drop: false }` [INFO] [stdout] 4d0cfe975ede66b3500ae2666ec482b333e369d5ca06cbf330bea7d5a0ec6ea6