Replace ok_or_else(miette!) with let-else + bail in exec.rs
No source error to chain, so bail! is the right tool.

Assisted-by: GLM-5.1 via pi
change xnywkslpwwuvtylttmqxspxwzwprslnp
commit 53fdd2f60017daae89e9c2e94010a7b40eec3b9f
author Alpha Chen <alpha@kejadlen.dev>
date
parent snsrtpmr
diff --git a/src/bin/quire/commands/exec.rs b/src/bin/quire/commands/exec.rs
index 39bf311..dff91a7 100644
--- a/src/bin/quire/commands/exec.rs
+++ b/src/bin/quire/commands/exec.rs
@@ -1,7 +1,7 @@
 use std::os::unix::process::CommandExt;
 use std::process::Command;
 
-use miette::{Context, IntoDiagnostic, Result, bail, ensure, miette};
+use miette::{Context, IntoDiagnostic, Result, bail, ensure};
 
 use quire::Quire;
 
@@ -50,9 +50,9 @@ fn dispatch_git(quire: &Quire, git_cmd: &str, args: &[String]) -> Result<()> {
     tracing::info!(%git_cmd, %path, "dispatching git command");
     // Use `git <subcommand>` instead of `git-<subcommand>` so the git
     // binary handles dispatch to libexec/git-core/ internally.
-    let subcommand = git_cmd
-        .strip_prefix("git-")
-        .ok_or_else(|| miette!("unexpected git command: {git_cmd}"))?;
+    let Some(subcommand) = git_cmd.strip_prefix("git-") else {
+        bail!("unexpected git command: {git_cmd}");
+    };
     let err = Command::new("git")
         .arg(subcommand)
         .arg(".")