Update README.md #523
GitHub Actions / clippy
succeeded
Dec 21, 2024 in 0s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check warning on line 14 in src/path_update_helpers.rs
github-actions / clippy
unneeded `return` statement
warning: unneeded `return` statement
--> src/path_update_helpers.rs:9:5
|
9 | / return Path::new(&expanded_path)
10 | | .absolutize_from(pwd())
11 | | .unwrap()
12 | | .to_str()
13 | | .unwrap_or_else(|| panic!("McFly error: Path must be a valid UTF8 string"))
14 | | .to_string();
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
9 ~ Path::new(&expanded_path)
10 + .absolutize_from(pwd())
11 + .unwrap()
12 + .to_str()
13 + .unwrap_or_else(|| panic!("McFly error: Path must be a valid UTF8 string"))
14 ~ .to_string()
|
Check warning on line 41 in src/dumper.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/dumper.rs:41:6
|
41 | impl<'a> Dumper<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
41 - impl<'a> Dumper<'a> {
41 + impl Dumper<'_> {
|
Loading