diff --git a/crates/zeta_cli/src/example.rs b/crates/zeta_cli/src/example.rs index 8d5aca7c9daf111b448cd27640bf30ff351ca94b..e013774a33c373a5fd2ee86b7e756bc95048da06 100644 --- a/crates/zeta_cli/src/example.rs +++ b/crates/zeta_cli/src/example.rs @@ -537,7 +537,7 @@ pub async fn apply_diff( } else { let text = buffer.text(); if let Some(offset) = text.find(&hunk.context) { - if text[offset + 1..].find(&hunk.context).is_some() { + if text[offset + 1..].contains(&hunk.context) { anyhow::bail!("Context is not unique enough:\n{}", hunk.context); } offset diff --git a/crates/zeta_cli/src/main.rs b/crates/zeta_cli/src/main.rs index 1c6dbee7f8f3e900e3837495d81bd559b03a60a4..f0d1cb3fd445d841c2f237c2f828c65c326836ea 100644 --- a/crates/zeta_cli/src/main.rs +++ b/crates/zeta_cli/src/main.rs @@ -433,7 +433,6 @@ async fn zeta2_predict( let mut excerpts_text = String::new(); let mut prediction_task = None; while let Some(event) = debug_rx.next().await { - dbg!(&event); match event { zeta2::ZetaDebugInfo::ContextRetrievalStarted(info) => { context_retrieval_started_at = Some(info.timestamp);