summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrhun Parmaksız <orhunparmaksiz@gmail.com>2023-01-13 16:21:06 +0300
committerOrhun Parmaksız <orhunparmaksiz@gmail.com>2023-01-13 16:21:06 +0300
commited9227a7decfb6750c0f50c57a976b78e34ba0e5 (patch)
treeaeef0e9ee4a915fe9f10390fb3cf94c3f284685b
parentb50291b3722cdd8ef2f4f3f4b5add500e6a9957f (diff)
style: Apply formatting via rustfmt
-rw-r--r--src/app/launcher.rs16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/app/launcher.rs b/src/app/launcher.rs
index 5a3136c..9860519 100644
--- a/src/app/launcher.rs
+++ b/src/app/launcher.rs
@@ -413,10 +413,9 @@ impl<'a> App<'a> {
Ok(path) => {
(OutputType::Success, format!("export: {path}"))
}
- Err(e) => (
- OutputType::Failure,
- format!("export error: {e}"),
- ),
+ Err(e) => {
+ (OutputType::Failure, format!("export error: {e}"))
+ }
},
);
}
@@ -437,9 +436,7 @@ impl<'a> App<'a> {
OutputType::Success,
format!("key sent to the keyserver: 0x{key_id}"),
),
- Err(e) => {
- (OutputType::Failure, format!("send error: {e}"))
- }
+ Err(e) => (OutputType::Failure, format!("send error: {e}")),
});
}
Command::GenerateKey
@@ -644,10 +641,7 @@ impl<'a> App<'a> {
if let Ok(value) = FromStr::from_str(&value) {
self.gpgme.config.armor = value;
self.gpgme.apply_config();
- (
- OutputType::Success,
- format!("armor: {value}"),
- )
+ (OutputType::Success, format!("armor: {value}"))
} else {
(
OutputType::Failure,