mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
clippy
This commit is contained in:
@@ -2354,9 +2354,6 @@ impl App {
|
||||
));
|
||||
}
|
||||
}
|
||||
AppEvent::OpenApprovalsPopup => {
|
||||
self.chat_widget.open_approvals_popup();
|
||||
}
|
||||
AppEvent::OpenAgentPicker => {
|
||||
self.open_agent_picker().await;
|
||||
}
|
||||
|
||||
@@ -277,9 +277,6 @@ pub(crate) enum AppEvent {
|
||||
#[cfg_attr(not(target_os = "windows"), allow(dead_code))]
|
||||
SkipNextWorldWritableScan,
|
||||
|
||||
/// Re-open the approval presets popup.
|
||||
OpenApprovalsPopup,
|
||||
|
||||
/// Open the skills list popup.
|
||||
OpenSkillsList,
|
||||
|
||||
|
||||
@@ -5664,7 +5664,7 @@ impl ChatWidget {
|
||||
name: "Go back".to_string(),
|
||||
description: None,
|
||||
actions: vec![Box::new(|tx| {
|
||||
tx.send(AppEvent::OpenApprovalsPopup);
|
||||
tx.send(AppEvent::OpenPermissionsPopup);
|
||||
})],
|
||||
dismiss_on_select: true,
|
||||
..Default::default()
|
||||
|
||||
@@ -215,7 +215,7 @@ fn windows_permissions_actions(
|
||||
pub(crate) fn windows_degraded_sandbox_enabled(config: &Config) -> bool {
|
||||
let windows_sandbox_level =
|
||||
codex_core::windows_sandbox::windows_sandbox_level_from_config(config);
|
||||
matches!(windows_sandbox_level, WindowsSandboxLevel::RestrictedToken);
|
||||
matches!(windows_sandbox_level, WindowsSandboxLevel::RestrictedToken)
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
|
||||
Reference in New Issue
Block a user