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.

Call `is_toggled` as a method

Marshall Bowers708034d1d3e2
diff --git a/crates/ui2/src/components/list.rs b/crates/ui2/src/components/list.rs
index 9bdffa991c4..8c6cfa16056 100644
--- a/crates/ui2/src/components/list.rs
+++ b/crates/ui2/src/components/list.rs
@@ -99,7 +99,7 @@ impl<S: 'static + Send + Sync + Clone> ListHeader<S> {
let color = ThemeColor::new(cx);
let is_toggleable = self.toggleable != Toggleable::NotToggleable;
- let is_toggled = Toggleable::is_toggled(&self.toggleable);
+ let is_toggled = self.toggleable.is_toggled();
let disclosure_control = self.disclosure_control();