fixing up styling + e2e test #87
GitHub Actions / clippy
succeeded
Sep 12, 2023 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0 (5680fa18f 2023-08-23)
- cargo 1.72.0 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (5680fa1 2023-08-23)
Annotations
Check warning on line 56 in src/finder.rs
github-actions / clippy
unneeded `return` statement
warning: unneeded `return` statement
--> src/finder.rs:40:5
|
40 | / return match target_type {
41 | | TargetType::Directory => match remaining_args.len() {
42 | | 0 => Err(format!(
43 | | "{} is a directory. tab-complete to choose subcommands",
... |
55 | | }),
56 | | };
| |_____^
|
= 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`
|
40 ~ match target_type {
41 + TargetType::Directory => match remaining_args.len() {
42 + 0 => Err(format!(
43 + "{} is a directory. tab-complete to choose subcommands",
44 + target.to_str().unwrap_or("")
45 + )),
46 + _ => Err(format!(
47 + "command {} not found in directory {}",
48 + remaining_args[0],
49 + target.to_str().unwrap_or("")
50 + )),
51 + },
52 + TargetType::File => Ok(ScriptInvocation {
53 + target,
54 + args: remaining_args,
55 + }),
56 ~ }
|
Loading