build: Updated dependencies and upgraded to Rust 1.89.0
This commit is contained in:
@@ -10,7 +10,7 @@ use std::fmt::Debug;
|
||||
#[path = "stateful_table_tests.rs"]
|
||||
mod stateful_table_tests;
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Debug, Default)]
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct SortOption<T>
|
||||
where
|
||||
T: Clone + PartialEq + Eq + Debug,
|
||||
@@ -19,6 +19,17 @@ where
|
||||
pub cmp_fn: Option<fn(&T, &T) -> Ordering>,
|
||||
}
|
||||
|
||||
impl<T> PartialEq for SortOption<T>
|
||||
where
|
||||
T: Clone + PartialEq + Eq + Debug,
|
||||
{
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.name == other.name
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Eq for SortOption<T> where T: Clone + PartialEq + Eq + Debug {}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct StatefulTable<T>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user