[INFO] cloning repository https://github.com/qinxiaoguang/rs-lc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qinxiaoguang/rs-lc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqinxiaoguang%2Frs-lc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqinxiaoguang%2Frs-lc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b4f392e994d76c93a7dfcfa4d3d7ac8b12e7b2bc [INFO] checking qinxiaoguang/rs-lc against try#f6e2f78768c57172b99c3e85892f867894dc7e30 for pr-75502 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqinxiaoguang%2Frs-lc" "/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/qinxiaoguang/rs-lc on toolchain f6e2f78768c57172b99c3e85892f867894dc7e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qinxiaoguang/rs-lc [INFO] finished tweaking git repo https://github.com/qinxiaoguang/rs-lc [INFO] tweaked toml for git repo https://github.com/qinxiaoguang/rs-lc written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/qinxiaoguang/rs-lc already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "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" "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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "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] 48ad9158876f56844101535f7caffd0dfefa636f7eb285fd9b9a8eb04dd8933e [INFO] running `Command { std: "docker" "start" "-a" "48ad9158876f56844101535f7caffd0dfefa636f7eb285fd9b9a8eb04dd8933e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48ad9158876f56844101535f7caffd0dfefa636f7eb285fd9b9a8eb04dd8933e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48ad9158876f56844101535f7caffd0dfefa636f7eb285fd9b9a8eb04dd8933e", kill_on_drop: false }` [INFO] [stdout] 48ad9158876f56844101535f7caffd0dfefa636f7eb285fd9b9a8eb04dd8933e [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" "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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "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] d55fbbc24c827d0106b818f4e8d33946da002441111fd470d3e422eefb7a5446 [INFO] running `Command { std: "docker" "start" "-a" "d55fbbc24c827d0106b818f4e8d33946da002441111fd470d3e422eefb7a5446", kill_on_drop: false }` [INFO] [stderr] Checking rs-lc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/solution/l021.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/solution/l021.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/solution/l049.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/l049.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / macro_rules! sf { [INFO] [stdout] 5 | | ($str:expr) => { [INFO] [stdout] 6 | | String::from($str) [INFO] [stdout] 7 | | }; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/l049.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / macro_rules! set { [INFO] [stdout] 25 | | ($($k:expr),*) => { [INFO] [stdout] 26 | | { [INFO] [stdout] 27 | | let mut set = HashSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 33 | | }; [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ListNode` [INFO] [stdout] --> src/solution/l105.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ListNode` [INFO] [stdout] --> src/solution/l106.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l118.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l119.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l120.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/solution/l126.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l143.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l148.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l203.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l206.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l234.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l238.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l445.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l725.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/solution/l725.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/solution/l725.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ListNode` [INFO] [stdout] --> src/solution/util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::ListNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/solution/util.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / macro_rules! sf { [INFO] [stdout] 5 | | ($str:expr) => { [INFO] [stdout] 6 | | String::from($str) [INFO] [stdout] 7 | | }; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / macro_rules! map { [INFO] [stdout] 12 | | ($($k:expr => $v:expr),*) => { [INFO] [stdout] 13 | | { [INFO] [stdout] 14 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / macro_rules! set { [INFO] [stdout] 25 | | ($($k:expr),*) => { [INFO] [stdout] 26 | | { [INFO] [stdout] 27 | | let mut set = HashSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 33 | | }; [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | / macro_rules! list { [INFO] [stdout] 38 | | ($($k:expr),*) => { [INFO] [stdout] 39 | | { [INFO] [stdout] 40 | | let mut set = HashSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 46 | | }; [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/solution/l021.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/solution/l021.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/solution/l049.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/l049.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / macro_rules! set { [INFO] [stdout] 25 | | ($($k:expr),*) => { [INFO] [stdout] 26 | | { [INFO] [stdout] 27 | | let mut set = HashSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 33 | | }; [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ListNode` [INFO] [stdout] --> src/solution/l105.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ListNode` [INFO] [stdout] --> src/solution/l106.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l118.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l119.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l120.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/solution/l126.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/solution/l126.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l143.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l148.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/solution/l169.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l203.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l206.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l234.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ListNode`, `TreeNode` [INFO] [stdout] --> src/solution/l238.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l445.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/solution/l566.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/solution/l621.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/solution/l725.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{ListNode, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/solution/l725.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/solution/l725.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ListNode` [INFO] [stdout] --> src/solution/util.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::ListNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/solution/util.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / macro_rules! sf { [INFO] [stdout] 5 | | ($str:expr) => { [INFO] [stdout] 6 | | String::from($str) [INFO] [stdout] 7 | | }; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / macro_rules! map { [INFO] [stdout] 12 | | ($($k:expr => $v:expr),*) => { [INFO] [stdout] 13 | | { [INFO] [stdout] 14 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / macro_rules! set { [INFO] [stdout] 25 | | ($($k:expr),*) => { [INFO] [stdout] 26 | | { [INFO] [stdout] 27 | | let mut set = HashSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 33 | | }; [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/solution/util.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | / macro_rules! list { [INFO] [stdout] 38 | | ($($k:expr),*) => { [INFO] [stdout] 39 | | { [INFO] [stdout] 40 | | let mut set = HashSet::new(); [INFO] [stdout] ... | [INFO] [stdout] 46 | | }; [INFO] [stdout] 47 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/solution/l661.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/solution/l082.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | while let Some(node) = cur { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/solution/l092.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/solution/l092.rs:49:57 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solution/l092.rs:49:65 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `out_price` is never read [INFO] [stdout] --> src/solution/l122.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let (mut in_price, mut out_price) = (-1, -1); [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 `out_price` is never read [INFO] [stdout] --> src/solution/l122.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | out_price = -1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin_word` [INFO] [stdout] --> src/solution/l126.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | begin_word: String, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_begin_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_word` [INFO] [stdout] --> src/solution/l126.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | end_word: String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_list` [INFO] [stdout] --> src/solution/l126.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | word_list: Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/solution/l128.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | for (idx, &num) in nums.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp_cnt` [INFO] [stdout] --> src/solution/l128.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut tmp_cnt = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tmp_cnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/solution/l238.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut res = vec![0; nums.len()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `list2` is never read [INFO] [stdout] --> src/solution/l445.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mut list2 = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/solution/l445.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let len = sum.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/solution/l457.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let len = nums.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solution/l621.rs:50:45 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn least_interval(tasks: Vec, n: i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l025.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut tail = end.as_mut()?.next.take(); [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/solution/l025.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | mut head: Option>, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l025.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut next = current_node_inner.next.take(); [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/solution/l049.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut map = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 45 | let mut m = map![]; [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l082.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut cnt = map.entry(cur.as_ref()?.val).or_insert(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/solution/l128.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut tmp_cnt = 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/solution/l128.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut max_bound = num; [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/solution/l143.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let mut tmp = first.next.take(); [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/solution/l148.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut left_link = Self::sort_list(small_link?.next.take()); [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/solution/l148.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut right_link = Self::sort_list(big_link?.next.take()); [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/solution/l154.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | let (mut start, mut end) = (0usize, nums.len() - 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/solution/l154.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let (mut start, mut end) = (0usize, nums.len() - 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/solution/l169.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let mut cnt = map.entry(num).or_insert(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/solution/l238.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut res = vec![0; nums.len()]; [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/solution/l445.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | let (mut l1, mut l2) = (l1, l2); [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/solution/l445.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | let (mut l1, mut l2) = (l1, l2); [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/solution/l445.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | let (mut len1, mut len2) = (Self::get_len(l1.as_ref()), Self::get_len(l2.as_ref())); [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/solution/l445.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | let (mut len1, mut len2) = (Self::get_len(l1.as_ref()), Self::get_len(l2.as_ref())); [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/solution/l445.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut sum: Vec = sum.into_iter().rev().collect(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l445.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut add: Vec = add.into_iter().rev().collect(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l566.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut nums = nums; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_list` [INFO] [stdout] --> src/solution/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn to_list(vec: Vec) -> Option> { [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: `new` [INFO] [stdout] --> src/solution/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l021.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_two_lists` [INFO] [stdout] --> src/solution/l021.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l023.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_k_lists` [INFO] [stdout] --> src/solution/l023.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn merge_k_lists(lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `merge_two_lists` [INFO] [stdout] --> src/solution/l023.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn merge_two_lists( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l024.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `swap_pairs` [INFO] [stdout] --> src/solution/l024.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l025.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_k_group` [INFO] [stdout] --> src/solution/l025.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn reverse_k_group(head: Option>, k: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse` [INFO] [stdout] --> src/solution/l025.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn reverse( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l061.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate_right` [INFO] [stdout] --> src/solution/l061.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn rotate_right(head: Option>, k: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l082.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_duplicates` [INFO] [stdout] --> src/solution/l082.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l083.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_duplicates` [INFO] [stdout] --> src/solution/l083.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l086.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `partition` [INFO] [stdout] --> src/solution/l086.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn partition(head: Option>, x: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l092.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_between` [INFO] [stdout] --> src/solution/l092.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l105.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/solution/l105.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn build_tree(preorder: Vec, inorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree_v2` [INFO] [stdout] --> src/solution/l105.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn build_tree_v2(preorder: &[i32], inorder: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l106.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree` [INFO] [stdout] --> src/solution/l106.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn build_tree(inorder: Vec, postorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_tree_v2` [INFO] [stdout] --> src/solution/l106.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn build_tree_v2(inorder: &[i32], postorder: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l109.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sorted_list_to_bst` [INFO] [stdout] --> src/solution/l109.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn sorted_list_to_bst(head: Option>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vec_to_bst` [INFO] [stdout] --> src/solution/l109.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn vec_to_bst(vec: &[i32]) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l118.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `generate` [INFO] [stdout] --> src/solution/l118.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn generate(num_rows: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l119.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_row` [INFO] [stdout] --> src/solution/l119.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_row(row_index: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l120.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `minimum_total` [INFO] [stdout] --> src/solution/l120.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn minimum_total(triangle: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l121.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_profit` [INFO] [stdout] --> src/solution/l121.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l122.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_profit` [INFO] [stdout] --> src/solution/l122.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l123.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_profit` [INFO] [stdout] --> src/solution/l123.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn max_profit(prices: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l126.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_ladders` [INFO] [stdout] --> src/solution/l126.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn find_ladders( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l128.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `longest_consecutive` [INFO] [stdout] --> src/solution/l128.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn longest_consecutive(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_longest` [INFO] [stdout] --> src/solution/l128.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_longest(set: &HashSet, used: &mut HashMap, num: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l143.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reorder_list` [INFO] [stdout] --> src/solution/l143.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn reorder_list(head: &mut Option>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_list` [INFO] [stdout] --> src/solution/l143.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l148.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sort_list` [INFO] [stdout] --> src/solution/l148.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn sort_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l152.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `max_product` [INFO] [stdout] --> src/solution/l152.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn max_product(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l153.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_min` [INFO] [stdout] --> src/solution/l153.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn find_min(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l154.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_min` [INFO] [stdout] --> src/solution/l154.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn find_min(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_min_v2` [INFO] [stdout] --> src/solution/l154.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn find_min_v2(nums: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l162.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_peak_element` [INFO] [stdout] --> src/solution/l162.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn find_peak_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l167.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `two_sum` [INFO] [stdout] --> src/solution/l167.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn two_sum(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l169.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element` [INFO] [stdout] --> src/solution/l169.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v1` [INFO] [stdout] --> src/solution/l169.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn majority_element_v1(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v2` [INFO] [stdout] --> src/solution/l169.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn majority_element_v2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v3` [INFO] [stdout] --> src/solution/l169.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn majority_element_v3(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l189.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `rotate` [INFO] [stdout] --> src/solution/l189.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn rotate(nums: &mut Vec, k: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l203.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_elements` [INFO] [stdout] --> src/solution/l203.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn remove_elements(head: Option>, val: i32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l206.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_list` [INFO] [stdout] --> src/solution/l206.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l209.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `min_sub_array_len` [INFO] [stdout] --> src/solution/l209.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn min_sub_array_len(s: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l216.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combination_sum3` [INFO] [stdout] --> src/solution/l216.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn combination_sum3(k: i32, n: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dfs` [INFO] [stdout] --> src/solution/l216.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn dfs(k: i32, n: i32, now_cnt: i32, res: &mut Vec>, tmp: &mut Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l217.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_duplicate` [INFO] [stdout] --> src/solution/l217.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l219.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_nearby_duplicate` [INFO] [stdout] --> src/solution/l219.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn contains_nearby_duplicate(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l228.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `summary_ranges` [INFO] [stdout] --> src/solution/l228.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn summary_ranges(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l229.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element` [INFO] [stdout] --> src/solution/l229.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn majority_element(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l234.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_palindrome` [INFO] [stdout] --> src/solution/l234.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn is_palindrome(head: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_list` [INFO] [stdout] --> src/solution/l234.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l238.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `product_except_self` [INFO] [stdout] --> src/solution/l238.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `product_except_self_v2` [INFO] [stdout] --> src/solution/l238.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn product_except_self_v2(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `product_except_self_v1` [INFO] [stdout] --> src/solution/l238.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn product_except_self_v1(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l268.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `missing_number` [INFO] [stdout] --> src/solution/l268.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn missing_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l283.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_zeroes` [INFO] [stdout] --> src/solution/l283.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn move_zeroes(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l287.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_duplicate` [INFO] [stdout] --> src/solution/l287.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn find_duplicate(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_duplicatev_mid_find` [INFO] [stdout] --> src/solution/l287.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn find_duplicatev_mid_find(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l289.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `game_of_life` [INFO] [stdout] --> src/solution/l289.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn game_of_life(board: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l380.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `RandomizedSet` [INFO] [stdout] --> src/solution/l380.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct RandomizedSet { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solution/l380.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/solution/l380.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn insert(&self, val: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/solution/l380.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn remove(&self, val: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_random` [INFO] [stdout] --> src/solution/l380.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn get_random(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l414.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `third_max` [INFO] [stdout] --> src/solution/l414.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn third_max(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l442.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_duplicates` [INFO] [stdout] --> src/solution/l442.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn find_duplicates(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l445.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_two_numbers` [INFO] [stdout] --> src/solution/l445.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn add_two_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_len` [INFO] [stdout] --> src/solution/l445.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn get_len(head: Option<&Box>) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l448.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_disappeared_numbers` [INFO] [stdout] --> src/solution/l448.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn find_disappeared_numbers(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l457.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circular_array_loop` [INFO] [stdout] --> src/solution/l457.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn circular_array_loop(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/solution/l457.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | fn check(nums: &Vec, idx: usize, dir: bool) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_next` [INFO] [stdout] --> src/solution/l457.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | fn get_next(nums: &Vec, now_idx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l485.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_max_consecutive_ones` [INFO] [stdout] --> src/solution/l485.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn find_max_consecutive_ones(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l495.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_poisoned_duration` [INFO] [stdout] --> src/solution/l495.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn find_poisoned_duration(time_series: Vec, duration: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l532.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_pairs` [INFO] [stdout] --> src/solution/l532.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn find_pairs(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l560.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subarray_sum` [INFO] [stdout] --> src/solution/l560.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn subarray_sum(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subarray_sum_v2` [INFO] [stdout] --> src/solution/l560.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn subarray_sum_v2(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subarray_sum_v1` [INFO] [stdout] --> src/solution/l560.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn subarray_sum_v1(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l561.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `array_pair_sum` [INFO] [stdout] --> src/solution/l561.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn array_pair_sum(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l565.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `array_nesting` [INFO] [stdout] --> src/solution/l565.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn array_nesting(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l566.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `matrix_reshape` [INFO] [stdout] --> src/solution/l566.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn matrix_reshape(nums: Vec>, r: i32, c: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l581.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_unsorted_subarray` [INFO] [stdout] --> src/solution/l581.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn find_unsorted_subarray(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l605.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_place_flowers` [INFO] [stdout] --> src/solution/l605.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn can_place_flowers(flowerbed: Vec, n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l611.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `triangle_number` [INFO] [stdout] --> src/solution/l611.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn triangle_number(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l621.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `least_interval` [INFO] [stdout] --> src/solution/l621.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn least_interval(tasks: Vec, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l628.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `maximum_product` [INFO] [stdout] --> src/solution/l628.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn maximum_product(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l725.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `split_list_to_parts` [INFO] [stdout] --> src/solution/l725.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn split_list_to_parts(root: Option>, k: i32) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_len` [INFO] [stdout] --> src/solution/l725.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_len(head: Option<&Box>) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l766.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_toeplitz_matrix` [INFO] [stdout] --> src/solution/l766.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn is_toeplitz_matrix(matrix: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/solution/l766.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn check((x, y, max_x, max_y): (i32, i32, usize, usize)) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_right` [INFO] [stdout] --> src/solution/l766.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn is_right( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l643.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_max_average` [INFO] [stdout] --> src/solution/l643.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn find_max_average(nums: Vec, k: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l661.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `image_smoother` [INFO] [stdout] --> src/solution/l661.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn image_smoother(m: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/solution/l661.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn check(x: i32, y: i32, x_len: i32, y_len: i32) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l665.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_possibility` [INFO] [stdout] --> src/solution/l665.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn check_possibility(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/solution/l665.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn check(nums: &Vec) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 228 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/solution/l082.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | while let Some(node) = cur { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/solution/l092.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/solution/l092.rs:49:57 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solution/l092.rs:49:65 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn reverse_between(head: Option>, m: i32, n: i32) -> Option> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `out_price` is never read [INFO] [stdout] --> src/solution/l122.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | let (mut in_price, mut out_price) = (-1, -1); [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 `out_price` is never read [INFO] [stdout] --> src/solution/l122.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | out_price = -1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin_word` [INFO] [stdout] --> src/solution/l126.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | begin_word: String, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_begin_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end_word` [INFO] [stdout] --> src/solution/l126.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | end_word: String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_end_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word_list` [INFO] [stdout] --> src/solution/l126.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | word_list: Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/solution/l128.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | for (idx, &num) in nums.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp_cnt` [INFO] [stdout] --> src/solution/l128.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut tmp_cnt = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tmp_cnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/solution/l238.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut res = vec![0; nums.len()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `list2` is never read [INFO] [stdout] --> src/solution/l445.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let mut list2 = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/solution/l445.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let len = sum.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/solution/l457.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let len = nums.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/solution/l621.rs:50:45 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn least_interval(tasks: Vec, n: i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l025.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | let mut tail = end.as_mut()?.next.take(); [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/solution/l025.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | mut head: Option>, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l025.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut next = current_node_inner.next.take(); [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/solution/l049.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut map = HashMap::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 45 | let mut m = map![]; [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l082.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let mut cnt = map.entry(cur.as_ref()?.val).or_insert(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/solution/l128.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut tmp_cnt = 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/solution/l128.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut max_bound = num; [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/solution/l143.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let mut tmp = first.next.take(); [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/solution/l148.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut left_link = Self::sort_list(small_link?.next.take()); [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/solution/l148.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut right_link = Self::sort_list(big_link?.next.take()); [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/solution/l154.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | let (mut start, mut end) = (0usize, nums.len() - 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/solution/l154.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let (mut start, mut end) = (0usize, nums.len() - 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/solution/l169.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let mut cnt = map.entry(num).or_insert(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/solution/l238.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let mut res = vec![0; nums.len()]; [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/solution/l380.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut s = RandomizedSet::new(); [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/solution/l445.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | let (mut l1, mut l2) = (l1, l2); [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/solution/l445.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | let (mut l1, mut l2) = (l1, l2); [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/solution/l445.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | let (mut len1, mut len2) = (Self::get_len(l1.as_ref()), Self::get_len(l2.as_ref())); [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/solution/l445.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | let (mut len1, mut len2) = (Self::get_len(l1.as_ref()), Self::get_len(l2.as_ref())); [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/solution/l445.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut sum: Vec = sum.into_iter().rev().collect(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l445.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut add: Vec = add.into_iter().rev().collect(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/l566.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut nums = nums; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/solution/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l126.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_ladders` [INFO] [stdout] --> src/solution/l126.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn find_ladders( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l169.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element` [INFO] [stdout] --> src/solution/l169.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn majority_element(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v1` [INFO] [stdout] --> src/solution/l169.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn majority_element_v1(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v2` [INFO] [stdout] --> src/solution/l169.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn majority_element_v2(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `majority_element_v3` [INFO] [stdout] --> src/solution/l169.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn majority_element_v3(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `product_except_self_v1` [INFO] [stdout] --> src/solution/l238.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn product_except_self_v1(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l380.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `subarray_sum_v1` [INFO] [stdout] --> src/solution/l560.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn subarray_sum_v1(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l566.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `matrix_reshape` [INFO] [stdout] --> src/solution/l566.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn matrix_reshape(nums: Vec>, r: i32, c: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l621.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `least_interval` [INFO] [stdout] --> src/solution/l621.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn least_interval(tasks: Vec, n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> src/solution/l661.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `image_smoother` [INFO] [stdout] --> src/solution/l661.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn image_smoother(m: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check` [INFO] [stdout] --> src/solution/l661.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn check(x: i32, y: i32, x_len: i32, y_len: i32) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.56s [INFO] running `Command { std: "docker" "inspect" "d55fbbc24c827d0106b818f4e8d33946da002441111fd470d3e422eefb7a5446", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d55fbbc24c827d0106b818f4e8d33946da002441111fd470d3e422eefb7a5446", kill_on_drop: false }` [INFO] [stdout] d55fbbc24c827d0106b818f4e8d33946da002441111fd470d3e422eefb7a5446