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.

Fix warning

Antonio Scandurra9f2e6be1b30e
diff --git a/crates/theme2/src/colors.rs b/crates/theme2/src/colors.rs
index 8e0e48b95c2..e1df841c24b 100644
--- a/crates/theme2/src/colors.rs
+++ b/crates/theme2/src/colors.rs
@@ -23,11 +23,12 @@ pub struct PlayerColors(pub Vec<PlayerColor>);
impl PlayerColors {
pub fn local(&self) -> PlayerColor {
+ // todo!("use a valid color");
*self.0.first().unwrap()
}
pub fn absent(&self) -> PlayerColor {
- todo!("use a valid color");
+ // todo!("use a valid color");
*self.0.last().unwrap()
}