Skip to content

Commit

Permalink
style: Apply formatting via rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jan 13, 2023
1 parent b50291b commit ed9227a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/app/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))
}
},
);
}
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ed9227a

Please sign in to comment.