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) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-18 17:43:39 -04:00
parent 4553ed6bca
commit e6e92aa749
No known key found for this signature in database

View file

@ -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<dyn Sandbox>)
}
_ => Err("exe.dev sandbox support is not enabled in this build".to_string()),
};
let sandbox_ok = match sandbox_result {