Skip to content

chore(dep): bump the deps group with 11 updates (#191) #308

chore(dep): bump the deps group with 11 updates (#191)

chore(dep): bump the deps group with 11 updates (#191) #308

GitHub Actions / clippy succeeded May 3, 2025 in 0s

clippy

6 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 6
Note 0
Help 0

Versions

  • rustc 1.86.0 (05f9846f8 2025-03-31)
  • cargo 1.86.0 (adf9b6ad1 2025-02-28)
  • clippy 0.1.86 (05f9846f89 2025-03-31)

Annotations

Check warning on line 18 in src/cache/parser.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator

warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
  --> src/cache/parser.rs:18:50
   |
18 |             None => fid_obj.as_str()?.split(' ').last()?.parse::<i32>().ok()?,
   |                                                  ^^^^^^ help: try: `next_back()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last
   = note: `#[warn(clippy::double_ended_iterator_last)]` on by default

Check warning on line 158 in src/cmds/pick.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
   --> src/cmds/pick.rs:158:68
    |
158 |                         let problem = &problems[rand::thread_rng().gen_range(0..problems.len())];
    |                                                                    ^^^^^^^^^

Check warning on line 147 in src/cmds/pick.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
   --> src/cmds/pick.rs:147:68
    |
147 |                         let problem = &problems[rand::thread_rng().gen_range(0..problems.len())];
    |                                                                    ^^^^^^^^^

Check warning on line 158 in src/cmds/pick.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated function `rand::thread_rng`: Renamed to `rng`

warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
   --> src/cmds/pick.rs:158:55
    |
158 |                         let problem = &problems[rand::thread_rng().gen_range(0..problems.len())];
    |                                                       ^^^^^^^^^^

Check warning on line 147 in src/cmds/pick.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated function `rand::thread_rng`: Renamed to `rng`

warning: use of deprecated function `rand::thread_rng`: Renamed to `rng`
   --> src/cmds/pick.rs:147:55
    |
147 |                         let problem = &problems[rand::thread_rng().gen_range(0..problems.len())];
    |                                                       ^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

Check warning on line 16 in src/cmds/completions.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

empty lines after doc comment

warning: empty lines after doc comment
  --> src/cmds/completions.rs:12:1
   |
12 | / /// Generate shell Completions
13 | |
14 | | /// USAGE:
15 | | ///     leetcode completions <shell>
16 | |
   | |_^
...
20 |   pub struct CompletionCommand;
   |   ---------------------------- the comment documents this struct
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
   = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default
   = help: if the empty lines are unintentional, remove them
help: if the documentation should include the empty lines include them in the comment
   |
13 + ///
14 | /// USAGE:
15 | ///     leetcode completions <shell>
16 + ///
   |