[INFO] cloning repository https://github.com/Lucian-4a25/rust-leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lucian-4a25/rust-leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-leetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-leetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ec261524917ddcf7df0923a054a167912387f85 [INFO] linting Lucian-4a25/rust-leetcode against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucian-4a25%2Frust-leetcode" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Lucian-4a25/rust-leetcode [INFO] finished tweaking git repo https://github.com/Lucian-4a25/rust-leetcode [INFO] tweaked toml for git repo https://github.com/Lucian-4a25/rust-leetcode written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Lucian-4a25/rust-leetcode on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Lucian-4a25/rust-leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4d6ee449266d96c42c12a114dfdd2d5003281a840a0d5225cdf263fd9e62ae2 [INFO] running `Command { std: "docker" "start" "-a" "e4d6ee449266d96c42c12a114dfdd2d5003281a840a0d5225cdf263fd9e62ae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4d6ee449266d96c42c12a114dfdd2d5003281a840a0d5225cdf263fd9e62ae2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4d6ee449266d96c42c12a114dfdd2d5003281a840a0d5225cdf263fd9e62ae2", kill_on_drop: false }` [INFO] [stdout] e4d6ee449266d96c42c12a114dfdd2d5003281a840a0d5225cdf263fd9e62ae2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5caed697b55a2b51de5d1c15b4b8dade517231452ac0524008345725716b1c2d [INFO] running `Command { std: "docker" "start" "-a" "5caed697b55a2b51de5d1c15b4b8dade517231452ac0524008345725716b1c2d", kill_on_drop: false }` [INFO] [stderr] Checking rust-leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/remove_duplicates.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use core::slice::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/remove_duplicates.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/remove_duplicates.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use core::slice::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/remove_duplicates.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/dynamic_programming/longest_incre_subseq.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 11 - pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] 11 + pub fn find_insertion_pos(nums: &[i32], incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/dynamic_programming/longest_incre_subseq.rs:11:59 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 11 - pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] 11 + pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &[usize], val: i32) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `prices` [INFO] [stdout] --> src/dynamic_programming/max_profile.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | for i in 1..prices.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 17 - for i in 1..prices.len() { [INFO] [stdout] 17 + for in prices.iter().skip(1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/dynamic_programming/longest_incre_subseq.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 11 - pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] 11 + pub fn find_insertion_pos(nums: &[i32], incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> src/dynamic_programming/longest_incre_subseq.rs:11:59 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 11 - pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &Vec, val: i32) -> usize { [INFO] [stdout] 11 + pub fn find_insertion_pos(nums: &Vec, incre_seq_idx: &[usize], val: i32) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `prices` [INFO] [stdout] --> src/dynamic_programming/max_profile.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for i in 1..prices.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 50 - for i in 1..prices.len() { [INFO] [stdout] 50 + for in prices.iter().skip(1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/length_of_longest_substring.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | if !pos_op.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `pos_op.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/length_of_longest_substring.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | return max as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 67 - return max as i32; [INFO] [stdout] 67 + max as i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `prices` [INFO] [stdout] --> src/dynamic_programming/max_profile.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | for i in 1..prices.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 17 - for i in 1..prices.len() { [INFO] [stdout] 17 + for in prices.iter().skip(1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `prices` [INFO] [stdout] --> src/dynamic_programming/max_profile.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for i in 1..prices.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 50 - for i in 1..prices.len() { [INFO] [stdout] 50 + for in prices.iter().skip(1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/length_of_longest_substring.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | if !pos_op.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `pos_op.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/length_of_longest_substring.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | return max as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 67 - return max as i32; [INFO] [stdout] 67 + max as i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lru.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(v) = self.cache.get_mut(&key) { [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/lru.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | self.cache.len() == (self.capacity as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.capacity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this loop could be written as a `for` loop [INFO] [stdout] --> src/min_window.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | while let Some((i, c)) = chars.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for (i, c) in chars.by_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stdout] = note: `#[warn(clippy::while_let_on_iterator)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/min_window.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | let counter = (*e.get()).0; [INFO] [stdout] | ^^^^^^^^^^ help: try: `e.get()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/min_window.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | let q = &mut (*e.get_mut()).1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `e.get_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/min_window.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | / match r.entry(c) { [INFO] [stdout] 85 | | Entry::Occupied(mut e) => { [INFO] [stdout] 86 | | let q = &mut (*e.get_mut()).1; [INFO] [stdout] 87 | | q.push_back(i); [INFO] [stdout] ... | [INFO] [stdout] 93 | | _ => {} [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 84 ~ if let Entry::Occupied(mut e) = r.entry(c) { [INFO] [stdout] 85 + let q = &mut (*e.get_mut()).1; [INFO] [stdout] 86 + q.push_back(i); [INFO] [stdout] 87 + q.pop_front(); [INFO] [stdout] 88 + if c == first_c { [INFO] [stdout] 89 + recal = true; [INFO] [stdout] 90 + } [INFO] [stdout] 91 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/min_window.rs:86:34 [INFO] [stdout] | [INFO] [stdout] 86 | let q = &mut (*e.get_mut()).1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `e.get_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/remove_duplicates.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | if nums[i] as i32 == cur { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `nums[i]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/remove_duplicates.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | cur = nums[i] as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `nums[i]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/remove_duplicates.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | nums.push(nums[i] as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `nums[i]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/remove_duplicates.rs:71:39 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn remove_duplicates2_2(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 71 - pub fn remove_duplicates2_2(nums: &mut Vec) -> i32 { [INFO] [stdout] 71 + pub fn remove_duplicates2_2(nums: &mut [i32]) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/remove_duplicates.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | if num != nums[i as usize - 2] { [INFO] [stdout] | ^^^^^^^^^^ help: try: `i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lru.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(v) = self.cache.get_mut(&key) { [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `left_child` after checking its variant with `is_some` [INFO] [stdout] --> src/reverse_binary_tree.rs:47:41 [INFO] [stdout] | [INFO] [stdout] 46 | if left_child.is_some() { [INFO] [stdout] | ----------------------- help: try: `if let Some() = left_child` [INFO] [stdout] 47 | reverse_nodes.push_back(left_child.unwrap().clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `right_child` after checking its variant with `is_some` [INFO] [stdout] --> src/reverse_binary_tree.rs:50:41 [INFO] [stdout] | [INFO] [stdout] 49 | if right_child.is_some() { [INFO] [stdout] | ------------------------ help: try: `if let Some() = right_child` [INFO] [stdout] 50 | reverse_nodes.push_back(right_child.unwrap().clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/reverse_binary_tree.rs:81:37 [INFO] [stdout] | [INFO] [stdout] 81 | if left >= right || !child_nodes[left].is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `child_nodes[left].is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/reverse_binary_tree.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | if !child_nodes[child_len - 1].as_ref().is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `child_nodes[child_len - 1].as_ref().is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/lru.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | self.cache.len() == (self.capacity as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.capacity` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/reverse_binary_tree.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | return root; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 112 - return root; [INFO] [stdout] 112 + root [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | (*left_parent.borrow_mut()).left = child_nodes[right].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `left_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 92 | (*right_parent.borrow_mut()).right = child_nodes[left].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `right_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | (*left_parent.borrow_mut()).right = child_nodes[right].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `left_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this loop could be written as a `for` loop [INFO] [stdout] --> src/min_window.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | while let Some((i, c)) = chars.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for (i, c) in chars.by_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stdout] = note: `#[warn(clippy::while_let_on_iterator)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | (*right_parent.borrow_mut()).left = child_nodes[left].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `right_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/min_window.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | let counter = (*e.get()).0; [INFO] [stdout] | ^^^^^^^^^^ help: try: `e.get()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/min_window.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | let q = &mut (*e.get_mut()).1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `e.get_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/min_window.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | / match r.entry(c) { [INFO] [stdout] 85 | | Entry::Occupied(mut e) => { [INFO] [stdout] 86 | | let q = &mut (*e.get_mut()).1; [INFO] [stdout] 87 | | q.push_back(i); [INFO] [stdout] ... | [INFO] [stdout] 93 | | _ => {} [INFO] [stdout] 94 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 84 ~ if let Entry::Occupied(mut e) = r.entry(c) { [INFO] [stdout] 85 + let q = &mut (*e.get_mut()).1; [INFO] [stdout] 86 + q.push_back(i); [INFO] [stdout] 87 + q.pop_front(); [INFO] [stdout] 88 + if c == first_c { [INFO] [stdout] 89 + recal = true; [INFO] [stdout] 90 + } [INFO] [stdout] 91 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/min_window.rs:86:34 [INFO] [stdout] | [INFO] [stdout] 86 | let q = &mut (*e.get_mut()).1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `e.get_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/remove_duplicates.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | if nums[i] as i32 == cur { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `nums[i]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/remove_duplicates.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | cur = nums[i] as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `nums[i]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/remove_duplicates.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | nums.push(nums[i] as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `nums[i]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/three_sum.rs:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | ... if r[0] == nums[i] && r[1] == nums[i] [INFO] [stdout] | __________________________^ [INFO] [stdout] 92 | | ... || r[1] == nums[i] && r[2] == nums[i] [INFO] [stdout] | |_______________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 91 - if r[0] == nums[i] && r[1] == nums[i] [INFO] [stdout] 92 - || r[1] == nums[i] && r[2] == nums[i] [INFO] [stdout] 91 + if !(r[1] != nums[i] || r[0] != nums[i] && r[2] != nums[i]) [INFO] [stdout] | [INFO] [stdout] 91 - if r[0] == nums[i] && r[1] == nums[i] [INFO] [stdout] 92 - || r[1] == nums[i] && r[2] == nums[i] [INFO] [stdout] 91 + if (r[2] == nums[i] || r[0] == nums[i]) && r[1] == nums[i] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/remove_duplicates.rs:71:39 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn remove_duplicates2_2(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 71 - pub fn remove_duplicates2_2(nums: &mut Vec) -> i32 { [INFO] [stdout] 71 + pub fn remove_duplicates2_2(nums: &mut [i32]) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/remove_duplicates.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | if num != nums[i as usize - 2] { [INFO] [stdout] | ^^^^^^^^^^ help: try: `i` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `left_child` after checking its variant with `is_some` [INFO] [stdout] --> src/reverse_binary_tree.rs:47:41 [INFO] [stdout] | [INFO] [stdout] 46 | if left_child.is_some() { [INFO] [stdout] | ----------------------- help: try: `if let Some() = left_child` [INFO] [stdout] 47 | reverse_nodes.push_back(left_child.unwrap().clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `right_child` after checking its variant with `is_some` [INFO] [stdout] --> src/reverse_binary_tree.rs:50:41 [INFO] [stdout] | [INFO] [stdout] 49 | if right_child.is_some() { [INFO] [stdout] | ------------------------ help: try: `if let Some() = right_child` [INFO] [stdout] 50 | reverse_nodes.push_back(right_child.unwrap().clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/reverse_binary_tree.rs:81:37 [INFO] [stdout] | [INFO] [stdout] 81 | if left >= right || !child_nodes[left].is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `child_nodes[left].is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/reverse_binary_tree.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | if !child_nodes[child_len - 1].as_ref().is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `child_nodes[child_len - 1].as_ref().is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/two_sum.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | return vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 23 - return vec![]; [INFO] [stdout] 23 + vec![] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/reverse_binary_tree.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | return root; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 112 - return root; [INFO] [stdout] 112 + root [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | (*left_parent.borrow_mut()).left = child_nodes[right].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `left_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 92 | (*right_parent.borrow_mut()).right = child_nodes[left].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `right_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | (*left_parent.borrow_mut()).right = child_nodes[right].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `left_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/reverse_binary_tree.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | (*right_parent.borrow_mut()).left = child_nodes[left].clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `right_parent.borrow_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/three_sum.rs:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | ... if r[0] == nums[i] && r[1] == nums[i] [INFO] [stdout] | __________________________^ [INFO] [stdout] 92 | | ... || r[1] == nums[i] && r[2] == nums[i] [INFO] [stdout] | |_______________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 91 - if r[0] == nums[i] && r[1] == nums[i] [INFO] [stdout] 92 - || r[1] == nums[i] && r[2] == nums[i] [INFO] [stdout] 91 + if !(r[1] != nums[i] || r[0] != nums[i] && r[2] != nums[i]) [INFO] [stdout] | [INFO] [stdout] 91 - if r[0] == nums[i] && r[1] == nums[i] [INFO] [stdout] 92 - || r[1] == nums[i] && r[2] == nums[i] [INFO] [stdout] 91 + if (r[2] == nums[i] || r[0] == nums[i]) && r[1] == nums[i] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `slice_range` is declared but not used [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_range)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/two_sum.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | return vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 23 - return vec![]; [INFO] [stdout] 23 + vec![] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `slice_range` is declared but not used [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(slice_range)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "5caed697b55a2b51de5d1c15b4b8dade517231452ac0524008345725716b1c2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5caed697b55a2b51de5d1c15b4b8dade517231452ac0524008345725716b1c2d", kill_on_drop: false }` [INFO] [stdout] 5caed697b55a2b51de5d1c15b4b8dade517231452ac0524008345725716b1c2d