mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-06 08:18:58 +00:00
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:
parent
4553ed6bca
commit
e6e92aa749
1 changed files with 0 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue