From e6e92aa7491192deda8074f476f4a3e6948db429 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 18 Mar 2026 17:43:39 -0400 Subject: [PATCH] Remove unreachable wildcard arms in sandbox provider matches The SandboxProvider::Exe variant is gated behind #[cfg(feature = "exedev")], so the remaining variants are exhaustively matched without the wildcard. Removing the dead arms fixes clippy's unreachable-patterns warning. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/fabro-cli/src/commands/run.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/crates/fabro-cli/src/commands/run.rs b/lib/crates/fabro-cli/src/commands/run.rs index 6e824065f..99504e691 100644 --- a/lib/crates/fabro-cli/src/commands/run.rs +++ b/lib/crates/fabro-cli/src/commands/run.rs @@ -1074,7 +1074,6 @@ pub async fn run_command( })); Arc::new(env) } - _ => bail!("exe.dev sandbox support is not enabled in this build"), }; // Wrap with ReadBeforeWriteSandbox to enforce read-before-write guard @@ -1815,7 +1814,6 @@ async fn run_from_branch( SandboxProvider::Daytona => { bail!("--run-branch resume is not yet supported with --sandbox daytona"); } - _ => bail!("exe.dev sandbox support is not enabled in this build"), }; // Wrap with ReadBeforeWriteSandbox to enforce read-before-write guard @@ -2164,7 +2162,6 @@ async fn run_preflight( SandboxProvider::Local => { Ok(Arc::new(LocalSandbox::new(original_cwd.clone())) as Arc) } - _ => Err("exe.dev sandbox support is not enabled in this build".to_string()), }; let sandbox_ok = match sandbox_result {