Skip to content

feat(list): format problem list with Chinese unicode (#190) #306

feat(list): format problem list with Chinese unicode (#190)

feat(list): format problem list with Chinese unicode (#190) #306

Triggered via push April 29, 2025 13:06
Status Success
Total duration 2m 46s
Artifacts

rust.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

21 warnings
called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator: src/cache/parser.rs#L18
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
use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`: src/cmds/pick.rs#L158
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())]; | ^^^^^^^^^
use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`: src/cmds/pick.rs#L147
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())]; | ^^^^^^^^^
use of deprecated function `rand::thread_rng`: renamed to `rng`: src/cmds/pick.rs#L158
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())]; | ^^^^^^^^^^
use of deprecated function `rand::thread_rng`: renamed to `rng`: src/cmds/pick.rs#L147
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
empty lines after doc comment: src/cmds/completions.rs#L12
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 + /// |
called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator: src/cache/parser.rs#L18
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
use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`: src/cmds/pick.rs#L158
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())]; | ^^^^^^^^^
use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`: src/cmds/pick.rs#L147
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())]; | ^^^^^^^^^
use of deprecated function `rand::thread_rng`: renamed to `rng`: src/cmds/pick.rs#L158
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())]; | ^^^^^^^^^^
use of deprecated function `rand::thread_rng`: renamed to `rng`: src/cmds/pick.rs#L147
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
empty lines after doc comment: src/cmds/completions.rs#L12
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 + /// |
build (macOS-latest)
sqlite 3.49.1 is already installed and up-to-date. To reinstall 3.49.1, run: brew reinstall sqlite
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (macOS-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/