Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Tweak code to remove duplication
Joseph Lyons72197802a2ed
diff --git a/crates/feedback/src/feedback_info_text.rs b/crates/feedback/src/feedback_info_text.rsindex 0ba5ef49f71..8c310501098 100644--- a/crates/feedback/src/feedback_info_text.rs+++ b/crates/feedback/src/feedback_info_text.rs@@ -44,13 +44,13 @@ impl View for FeedbackInfoText {).with_child(MouseEventHandler::<OpenZedCommunityRepo>::new(0, cx, |state, _| {- let text = if state.hovered() {- theme.feedback.link_text_hover.clone()+ let contained_text = if state.hovered() {+ &theme.feedback.link_text_hover} else {- theme.feedback.link_text_default.clone()+ &theme.feedback.link_text_default};- Label::new("community repo", text.text)+ Label::new("community repo", contained_text.text.clone()).contained().aligned().left()