chore(dep): bump the deps group with 7 updates (#196) #317
clippy
14 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 14 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.88.0 (6b00bc388 2025-06-23)
- cargo 1.88.0 (873a06493 2025-05-10)
- clippy 0.1.88 (6b00bc3880 2025-06-23)
Annotations
Check warning on line 11 in src/bin/lc.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/bin/lc.rs:11:9
|
11 | println!("{:?}", err);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
11 - println!("{:?}", err);
11 + println!("{err:?}");
|
Check warning on line 122 in src/cmds/stat.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cmds/stat.rs:122:13
|
122 | println!("{}", udone);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
122 - println!("{}", udone);
122 + println!("{udone}");
|
Check warning on line 121 in src/cmds/stat.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cmds/stat.rs:121:13
|
121 | print!("{}", done);
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
121 - print!("{}", done);
121 + print!("{done}");
|
Check warning on line 112 in src/cmds/stat.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cmds/stat.rs:112:13
|
112 | print!("{}", line);
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
112 - print!("{}", line);
112 + print!("{line}");
|
Check warning on line 169 in src/cmds/pick.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cmds/pick.rs:169:17
|
169 | eprintln!("{:?}", e);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
169 - eprintln!("{:?}", e);
169 + eprintln!("{e:?}");
|
Check warning on line 92 in src/cmds/data.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cmds/data.rs:92:13
|
92 | println!("{}\n", out);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
92 - println!("{}\n", out);
92 + println!("{out}\n");
|
Check warning on line 57 in src/cmds/completions.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cmds/completions.rs:57:5
|
57 | println!("{}", completions);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
57 - println!("{}", completions);
57 + println!("{completions}");
|
Check warning on line 21 in src/cli.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cli.rs:21:30
|
21 | .map_err(|e| println!("{:?}", e));
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
21 - .map_err(|e| println!("{:?}", e));
21 + .map_err(|e| println!("{e:?}"));
|
Check warning on line 381 in src/cache/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cache/mod.rs:381:9
|
381 | trace!("Recur verify result {:#?}", res);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
381 - trace!("Recur verify result {:#?}", res);
381 + trace!("Recur verify result {res:#?}");
|
Check warning on line 364 in src/cache/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cache/mod.rs:364:9
|
364 | trace!("Run code result {:#?}", run_res);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
364 - trace!("Run code result {:#?}", run_res);
364 + trace!("Run code result {run_res:#?}");
|
Check warning on line 350 in src/cache/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cache/mod.rs:350:9
|
350 | trace!("Pre-run code result {:#?}, {}, {}", json, url, refer);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
350 - trace!("Pre-run code result {:#?}, {}, {}", json, url, refer);
350 + trace!("Pre-run code result {json:#?}, {url}, {refer}");
|
Check warning on line 21 in src/cache/mod.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/cache/mod.rs:21:56
|
21 | SqliteConnection::establish(&p).unwrap_or_else(|_| panic!("Error connecting to {:?}", p))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
21 - SqliteConnection::establish(&p).unwrap_or_else(|_| panic!("Error connecting to {:?}", p))
21 + SqliteConnection::establish(&p).unwrap_or_else(|_| panic!("Error connecting to {p:?}"))
|
Check warning on line 18 in src/cache/parser.rs
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:21
|
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 16 in src/cmds/completions.rs
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 + ///
|