Merge pull request #1 from Termina/show-large #4
GitHub Actions / clippy
succeeded
Jul 11, 2024 in 0s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check warning on line 67 in src/main.rs
github-actions / clippy
using `print!()` with a format string that ends in a single newline
warning: using `print!()` with a format string that ends in a single newline
--> src/main.rs:67:9
|
67 | print!("\n");
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
= note: `#[warn(clippy::print_with_newline)]` on by default
help: use `println!` instead
|
67 - print!("\n");
67 + println!();
|
Check warning on line 8 in src/show_file_size.rs
github-actions / clippy
use of `expect` followed by a function call
warning: use of `expect` followed by a function call
--> src/show_file_size.rs:8:43
|
8 | let min_size = parse_size(&options.min).expect(&format!("parse file size from string: {}", &options.min));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("parse file size from string: {}", &options.min))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
= note: `#[warn(clippy::expect_fun_call)]` on by default
Check warning on line 7 in src/main.rs
github-actions / clippy
this import is redundant
warning: this import is redundant
--> src/main.rs:7:1
|
7 | use cli_clipboard;
| ^^^^^^^^^^^^^^^^^^ help: remove it entirely
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
= note: `#[warn(clippy::single_component_path_imports)]` on by default
Loading