build: Updated dependencies and upgraded to Rust 1.89.0

This commit is contained in:
2025-08-12 16:56:45 -06:00
parent 00ab0f27f7
commit 20ea15009d
9 changed files with 455 additions and 392 deletions
+2 -7
View File
@@ -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
+2 -7
View File
@@ -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
+12 -1
View File
@@ -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
+2 -1
View File
@@ -1,5 +1,6 @@
#[cfg(test)]
mod test {
use std::slice;
use std::sync::Arc;
use bimap::BiMap;
@@ -3980,7 +3981,7 @@ mod test {
};
assert_str_eq!(
get_movie_status(false, &[download_record.clone()], 0),
get_movie_status(false, slice::from_ref(&download_record), 0),
"Missing"
);
+3 -2
View File
@@ -1,5 +1,6 @@
#[cfg(test)]
mod test {
use std::slice;
use std::sync::Arc;
use bimap::BiMap;
@@ -5490,7 +5491,7 @@ mod test {
};
assert_str_eq!(
get_episode_status(false, &[download_record.clone()], 0),
get_episode_status(false, slice::from_ref(&download_record), 0),
"Missing"
);
@@ -5502,7 +5503,7 @@ mod test {
let download_record = DownloadRecord::default();
assert_str_eq!(
get_episode_status(false, &[download_record.clone()], 0),
get_episode_status(false, slice::from_ref(&download_record), 0),
"Missing"
);
@@ -262,9 +262,9 @@ fn draw_seasons_table(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
row.downloaded()
} else if let Some(next_airing_utc) = next_airing.as_ref() {
if next_airing_utc > &Utc::now() {
return row.unreleased();
row.unreleased()
} else {
return row.missing();
row.missing()
}
} else {
row.missing()