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:00:20 +0200 |
commit | 7c2a62eade889d2432424513dc3dd74001fd3016 (patch) | |
tree | db1f3d0a077fccc7c97722e5e9e7c8d5ecf926f7 | |
parent | 4ca3eefc246f86b3662896e49d26c3dc822b8fc5 (diff) |
Fix clippy: Remove unnecessary return keyword
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 3ad7f5d..52a0534 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", |