build: Updated dependencies and upgraded to Rust 1.89.0
This commit is contained in:
@@ -80,13 +80,8 @@ impl From<&RadarrData<'_>> for EditIndexerModal {
|
||||
.unwrap()
|
||||
.into();
|
||||
|
||||
if seed_ratio_value_option.is_some() {
|
||||
edit_indexer_modal.seed_ratio = seed_ratio_value_option
|
||||
.unwrap()
|
||||
.as_f64()
|
||||
.unwrap()
|
||||
.to_string()
|
||||
.into();
|
||||
if let Some(seed_ratio_value) = seed_ratio_value_option {
|
||||
edit_indexer_modal.seed_ratio = seed_ratio_value.as_f64().unwrap().to_string().into();
|
||||
}
|
||||
|
||||
edit_indexer_modal.tags = tags
|
||||
|
||||
@@ -125,13 +125,8 @@ impl From<&SonarrData<'_>> for EditIndexerModal {
|
||||
.unwrap()
|
||||
.into();
|
||||
|
||||
if seed_ratio_value_option.is_some() {
|
||||
edit_indexer_modal.seed_ratio = seed_ratio_value_option
|
||||
.unwrap()
|
||||
.as_f64()
|
||||
.unwrap()
|
||||
.to_string()
|
||||
.into();
|
||||
if let Some(seed_ratio_value) = seed_ratio_value_option {
|
||||
edit_indexer_modal.seed_ratio = seed_ratio_value.as_f64().unwrap().to_string().into();
|
||||
}
|
||||
|
||||
edit_indexer_modal.tags = tags
|
||||
|
||||
@@ -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