aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/show.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/show.rs')
-rw-r--r--crates/mozart/src/commands/show.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/mozart/src/commands/show.rs b/crates/mozart/src/commands/show.rs
index 9eae36e..f194bce 100644
--- a/crates/mozart/src/commands/show.rs
+++ b/crates/mozart/src/commands/show.rs
@@ -138,12 +138,14 @@ pub async fn execute(
// Fix 5: --format with invalid value
if let Some(ref fmt) = args.format
- && fmt != "text" && fmt != "json" {
- anyhow::bail!(
- "Unsupported format \"{}\". See help for supported formats.",
- fmt
- );
- }
+ && fmt != "text"
+ && fmt != "json"
+ {
+ anyhow::bail!(
+ "Unsupported format \"{}\". See help for supported formats.",
+ fmt
+ );
+ }
// Fix 6: --self with a package argument
if args.self_info && args.package.is_some() {