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.

gpui: Implement `PartialEq` and `Eq` for `WindowAppearance` (#25219)

someone13574e3836712d644
diff --git a/crates/gpui/src/platform.rs b/crates/gpui/src/platform.rs
index e3af6654f17..e47907d22eb 100644
--- a/crates/gpui/src/platform.rs
+++ b/crates/gpui/src/platform.rs
@@ -1068,7 +1068,7 @@ pub enum WindowKind {
///
/// On macOS, this corresponds to named [`NSAppearance`](https://developer.apple.com/documentation/appkit/nsappearance)
/// values.
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum WindowAppearance {
/// A light appearance.
///