Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Skip using map

Joseph T. Lyons0ee4ad6ba0c4
diff --git a/crates/feedback2/src/feedback_modal.rs b/crates/feedback2/src/feedback_modal.rs
index 148772c2960..c61d17d63c2 100644
--- a/crates/feedback2/src/feedback_modal.rs
+++ b/crates/feedback2/src/feedback_modal.rs
@@ -329,11 +329,11 @@ impl Render for FeedbackModal {
)
}
)
- .map(|this|
+ .color(
if valid_character_count {
- this.color(Color::Success)
+ Color::Success
} else {
- this.color(Color::Error)
+ Color::Error
}
)
)