clippy

Max Brunsfeld created

Change summary

crates/zeta_cli/src/example.rs | 2 +-
crates/zeta_cli/src/main.rs    | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)

Detailed changes

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

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);