mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
Clippy
This commit is contained in:
@@ -109,9 +109,7 @@ pub async fn process_sse_wire<S, D>(
|
||||
|
||||
fn next_frame(buffer: &mut String) -> Option<String> {
|
||||
loop {
|
||||
let Some(idx) = buffer.find("\n\n") else {
|
||||
return None;
|
||||
};
|
||||
let idx = buffer.find("\n\n")?;
|
||||
|
||||
let frame = buffer[..idx].to_string();
|
||||
buffer.drain(..idx + 2);
|
||||
|
||||
Reference in New Issue
Block a user