From 57e10b7dd56c18caaf91a176a86481e3ee4c4571 Mon Sep 17 00:00:00 2001 From: Julia Date: Fri, 2 Dec 2022 16:42:49 -0500 Subject: [PATCH] Cleanup dbg --- crates/editor/src/items.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs index ccabe81de6..0cc8575e99 100644 --- a/crates/editor/src/items.rs +++ b/crates/editor/src/items.rs @@ -55,11 +55,9 @@ impl FollowableItem for Editor { let buffer = buffer.await?; let editor = pane .read_with(&cx, |pane, cx| { - let existing = pane.items_of_type::().find(|editor| { + pane.items_of_type::().find(|editor| { editor.read(cx).buffer.read(cx).as_singleton().as_ref() == Some(&buffer) - }); - dbg!(&existing); - existing + }) }) .unwrap_or_else(|| { pane.update(&mut cx, |_, cx| {