summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-02-11 17:46:16 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-02-11 18:04:27 +0100
commit58996c5cee1cd545b8bfaca8d64ffd9461aa066f (patch)
tree98eb4fdc39ad9e844aea05412c3a772d79a7ae65 /src/main.rs
parent23ef823df4fdfa8c67d877e62cc80de4be6b7278 (diff)
Remove unnecessary return type
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 9008e21..a75a9d3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -118,7 +118,7 @@ async fn main() -> Result<()> {
let db_connection_config = crate::db::parse_db_connection_config(&config, &cli);
match cli.subcommand() {
- Some(("generate-completions", matches)) => generate_completions(matches)?,
+ Some(("generate-completions", matches)) => generate_completions(matches),
Some(("db", matches)) => crate::commands::db(db_connection_config, &config, matches)?,
Some(("build", matches)) => {
let conn = crate::db::establish_connection(db_connection_config)?;
@@ -207,7 +207,7 @@ fn count_pkg_files(p: &Path) -> u64 {
.count() as u64
}
-fn generate_completions(matches: &ArgMatches) -> Result<()> {
+fn generate_completions(matches: &ArgMatches) {
use clap_generate::generate;
use clap_generate::generators::{Bash, Elvish, Fish, Zsh};
@@ -228,6 +228,4 @@ fn generate_completions(matches: &ArgMatches) -> Result<()> {
}
_ => unreachable!(),
}
-
- Ok(())
}