diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-01-13 09:55:52 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-01-15 23:21:39 +0100 |
commit | 0f03fd099255d5ab0ad673044fe78ebe31b5beab (patch) | |
tree | 0c4436ccd5802604162eadd6921855add56f9626 /src | |
parent | ef6e7e917048cc0c1314fc123e8d582b9339d57a (diff) |
Fix clippy: unneeded `return` statement
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/db.rs b/src/commands/db.rs index 561e6d8..551805d 100644 --- a/src/commands/db.rs +++ b/src/commands/db.rs @@ -42,8 +42,8 @@ pub fn db(db_connection_config: DbConnectionConfig, config: &Configuration, matc Some(("submits", matches)) => submits(db_connection_config, matches), Some(("jobs", matches)) => jobs(db_connection_config, matches), Some(("job", matches)) => job(db_connection_config, config, matches), - Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)), - None => return Err(anyhow!("No subcommand")), + Some((other, _)) => Err(anyhow!("Unknown subcommand: {}", other)), + None => Err(anyhow!("No subcommand")), } } |