From 9ca695d9f69ed12e17128bd12c55559b7f4d9238 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Mon, 2 Mar 2026 17:31:20 +0100 Subject: [PATCH] Remove `dbg!` from tests (#50506) Removes a bunch of `dbg!`'s from strings in test code. It's annoying cause these show up in project search, when you are removing `dbg!(...)`'s after debugging something Release Notes: - N/A --- crates/editor/src/editor_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rs index 142668e6555bcb23370387aab655b0d6b82fa5fe..525910ed276cdfe5fb5c3c2b784269d834c70316 100644 --- a/crates/editor/src/editor_tests.rs +++ b/crates/editor/src/editor_tests.rs @@ -8074,7 +8074,7 @@ async fn test_copy_trim_line_mode(cx: &mut TestAppContext) { cx.set_state(indoc! {" « fn main() { - dbg!(1) + 1 }ˇ» "}); cx.update_editor(|editor, _window, _cx| editor.selections.set_line_mode(true)); @@ -8082,7 +8082,7 @@ async fn test_copy_trim_line_mode(cx: &mut TestAppContext) { assert_eq!( cx.read_from_clipboard().and_then(|item| item.text()), - Some("fn main() {\n dbg!(1)\n}\n".to_string()) + Some("fn main() {\n 1\n}\n".to_string()) ); let clipboard_selections: Vec = cx @@ -8099,7 +8099,7 @@ async fn test_copy_trim_line_mode(cx: &mut TestAppContext) { cx.set_state(indoc! {" «fn main() { - dbg!(1) + 1 }ˇ» "}); cx.update_editor(|editor, _window, _cx| editor.selections.set_line_mode(true)); @@ -8107,7 +8107,7 @@ async fn test_copy_trim_line_mode(cx: &mut TestAppContext) { assert_eq!( cx.read_from_clipboard().and_then(|item| item.text()), - Some("fn main() {\n dbg!(1)\n}\n".to_string()) + Some("fn main() {\n 1\n}\n".to_string()) ); let clipboard_selections: Vec = cx