From a9c2f42f70c3cb7ebf0d24933685cf71e1607d30 Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Wed, 8 Feb 2023 18:20:43 -0500 Subject: [PATCH] Move string to variable --- crates/feedback/src/feedback_editor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/feedback/src/feedback_editor.rs b/crates/feedback/src/feedback_editor.rs index f950e6edd4..ae8ccc9151 100644 --- a/crates/feedback/src/feedback_editor.rs +++ b/crates/feedback/src/feedback_editor.rs @@ -533,9 +533,10 @@ impl View for FeedbackInfoText { fn render(&mut self, cx: &mut RenderContext) -> ElementBox { let theme = cx.global::().theme.clone(); + let text = "We read whatever you submit here. For issues and discussions, visit the community repo on GitHub."; Label::new( - "We read whatever you submit here. For issues and discussions, visit the community repo on GitHub.".to_string(), theme.workspace.titlebar.outdated_warning.text.clone(), + text.to_string(), ) .contained() .with_style(theme.workspace.titlebar.outdated_warning.container)