feat(TreeItem): Added PartialEq and Eq constraints to the types that can be passed to the TreeItem struct

This commit is contained in:
2024-11-15 14:40:44 -07:00
parent 959b60de32
commit b0d8d9f0bf
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ impl TreeState {
#[must_use]
pub fn flatten<'a, T>(&self, items: &'a [TreeItem<T>]) -> Vec<Flattened<'a, T>>
where
T: ToText + Clone + Default + Display + Hash,
T: ToText + Clone + Default + Display + Hash + PartialEq + Eq,
{
flatten(&self.opened, items, &[])
}