diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-08-12 16:47:12 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-08-12 17:10:30 +0200 |
commit | b0cba283a7a7a7ea411cc1982dc1704d4867180e (patch) | |
tree | 2c03a81fa9107ae87dff61e80c993657bc6de948 | |
parent | a055c6f4570d2558b2530467391495f40075178b (diff) |
Fix clippy: Remove unnecessary return keyword
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 7c2a62eade889d2432424513dc3dd74001fd3016)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/commands/source.rs | 2 | ||||
-rw-r--r-- | src/commands/util.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs index 3e0167d..6a58017 100644 --- a/src/commands/source.rs +++ b/src/commands/source.rs @@ -46,7 +46,7 @@ pub async fn source( Some(("download", matches)) => download(matches, config, repo, progressbars).await, Some(("of", matches)) => of(matches, config, repo).await, Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)), - None => return Err(anyhow!("No subcommand")), + None => Err(anyhow!("No subcommand")), } } diff --git a/src/commands/util.rs b/src/commands/util.rs index acfbdd2..2e409d9 100644 --- a/src/commands/util.rs +++ b/src/commands/util.rs @@ -106,7 +106,7 @@ where if !lint_ok { bar.finish_with_message("Linting errored"); - return Err(anyhow!("Linting was not successful")); + Err(anyhow!("Linting was not successful")) } else { bar.finish_with_message(format!( "Finished linting {} package scripts", |