Skip to content

Commit c8e5101

Browse files
committed
fmt and clippy fix
1 parent d07408f commit c8e5101

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

codex-rs/tui/src/chatwidget.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,13 +3423,15 @@ impl ChatWidget {
34233423
lines.push(line![
34243424
"Elevation failed. You can also use a non-elevated sandbox, which protects your files and prevents network access under most circumstances. However, it carries greater risk if prompt injected."
34253425
]);
3426-
lines.push(line!["Learn more: https://developers.openai.com/codex/windows"]);
3426+
lines.push(line![
3427+
"Learn more: https://developers.openai.com/codex/windows"
3428+
]);
34273429

34283430
let mut header = ColumnRenderable::new();
34293431
header.push(*Box::new(Paragraph::new(lines).wrap(Wrap { trim: false })));
34303432

34313433
let elevated_preset = preset.clone();
3432-
let legacy_preset = preset.clone();
3434+
let legacy_preset = preset;
34333435
let items = vec![
34343436
SelectionItem {
34353437
name: "Try elevated agent sandbox setup again".to_string(),
@@ -3505,9 +3507,7 @@ impl ChatWidget {
35053507
);
35063508
self.bottom_pane.ensure_status_indicator();
35073509
self.bottom_pane.set_interrupt_hint_visible(false);
3508-
self.set_status_header(
3509-
"Setting up agent sandbox. This can take a minute.".to_string(),
3510-
);
3510+
self.set_status_header("Setting up agent sandbox. This can take a minute.".to_string());
35113511
self.request_redraw();
35123512
}
35133513

codex-rs/tui2/src/chatwidget.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,13 +3154,15 @@ impl ChatWidget {
31543154
lines.push(line![
31553155
"Elevation failed. You can also use a non-elevated sandbox, which protects your files and prevents network access under most circumstances. However, it carries greater risk if prompt injected."
31563156
]);
3157-
lines.push(line!["Learn more: https://developers.openai.com/codex/windows"]);
3157+
lines.push(line![
3158+
"Learn more: https://developers.openai.com/codex/windows"
3159+
]);
31583160

31593161
let mut header = ColumnRenderable::new();
31603162
header.push(*Box::new(Paragraph::new(lines).wrap(Wrap { trim: false })));
31613163

31623164
let elevated_preset = preset.clone();
3163-
let legacy_preset = preset.clone();
3165+
let legacy_preset = preset;
31643166
let items = vec![
31653167
SelectionItem {
31663168
name: "Try elevated agent sandbox setup again".to_string(),
@@ -3236,9 +3238,7 @@ impl ChatWidget {
32363238
);
32373239
self.bottom_pane.ensure_status_indicator();
32383240
self.bottom_pane.set_interrupt_hint_visible(false);
3239-
self.set_status_header(
3240-
"Setting up agent sandbox. This can take a minute.".to_string(),
3241-
);
3241+
self.set_status_header("Setting up agent sandbox. This can take a minute.".to_string());
32423242
self.request_redraw();
32433243
}
32443244

0 commit comments

Comments
 (0)