From 906505f4dc07d45abccb123ebb885ade9cb70f65 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Mon, 11 Dec 2023 13:56:58 -0500 Subject: [PATCH] Fix rustfmt in feedback_modal.rs --- crates/feedback2/src/feedback_modal.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/feedback2/src/feedback_modal.rs b/crates/feedback2/src/feedback_modal.rs index 28afb67969..866933f10a 100644 --- a/crates/feedback2/src/feedback_modal.rs +++ b/crates/feedback2/src/feedback_modal.rs @@ -132,12 +132,12 @@ impl FeedbackModal { editor }); + // Moved here because providing it inline breaks rustfmt + let placeholder_text = "You can use markdown to organize your feedback wiht add code and links, or organize feedback."; + let feedback_editor = cx.build_view(|cx| { let mut editor = Editor::for_buffer(buffer, Some(project.clone()), cx); - editor.set_placeholder_text( - "You can use markdown to organize your feedback wiht add code and links, or organize feedback.", - cx, - ); + editor.set_placeholder_text(placeholder_text, cx); // editor.set_show_gutter(false, cx); editor.set_vertical_scroll_margin(5, cx); editor