mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
fmt
This commit is contained in:
@@ -192,10 +192,7 @@ impl CreateCmd {
|
||||
fn truncate_preview(p: &str) -> String {
|
||||
// 1. Remove anything that is not printable (ASCII control chars, newlines
|
||||
// etc.).
|
||||
let cleaned: String = p
|
||||
.chars()
|
||||
.filter(|c| !c.is_control())
|
||||
.collect();
|
||||
let cleaned: String = p.chars().filter(|c| !c.is_control()).collect();
|
||||
|
||||
// 2. Truncate to 40 code-points.
|
||||
let slice: String = cleaned.chars().take(40).collect();
|
||||
|
||||
@@ -92,7 +92,6 @@ pub enum SessionKind {
|
||||
Repl,
|
||||
}
|
||||
|
||||
|
||||
/// Create the on-disk directory structure and write metadata + empty log files.
|
||||
/// Create directory & empty log files. Does **not** write metadata; caller should write that
|
||||
/// once the child process has actually been spawned so we can record its PID.
|
||||
|
||||
Reference in New Issue
Block a user