mirror of
https://github.com/openai/codex.git
synced 2026-05-29 23:40:29 +00:00
Fix sandbox setup clippy on non-Windows
This commit is contained in:
@@ -50,6 +50,7 @@ mod marketplace_cmd;
|
||||
mod mcp_cmd;
|
||||
mod plugin_cmd;
|
||||
mod remote_control_cmd;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod sandbox_setup;
|
||||
mod state_db_recovery;
|
||||
#[cfg(not(windows))]
|
||||
|
||||
@@ -63,9 +63,9 @@ pub(crate) async fn run(cmd: SandboxSetupCommand) -> anyhow::Result<()> {
|
||||
pub(crate) fn parse_setup_command(
|
||||
sandbox_command: &[String],
|
||||
) -> anyhow::Result<Option<SandboxSetupCommand>> {
|
||||
if !sandbox_command
|
||||
if sandbox_command
|
||||
.first()
|
||||
.is_some_and(|command| command == "setup")
|
||||
.is_none_or(|command| command != "setup")
|
||||
{
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user