refactor: Corrected some clone instead of copy behaviors in the command line handlers

This commit is contained in:
2025-01-18 14:54:25 -07:00
parent fac9c45aee
commit 3be59108a9
4 changed files with 8 additions and 22 deletions
+3 -11
View File
@@ -158,9 +158,7 @@ impl<'a> App<'a> {
if self.data.radarr_data.prompt_confirm {
self.data.radarr_data.prompt_confirm = false;
if let Some(radarr_event) = self.data.radarr_data.prompt_confirm_action.take() {
self
.dispatch_network_event(radarr_event.into())
.await;
self.dispatch_network_event(radarr_event.into()).await;
self.should_refresh = true;
}
}
@@ -230,7 +228,7 @@ impl<'a> App<'a> {
}
async fn extract_movie_id(&self) -> i64 {
self.data.radarr_data.movies.current_selection().clone().id
self.data.radarr_data.movies.current_selection().id
}
async fn extract_movie_search_query(&self) -> String {
@@ -245,12 +243,6 @@ impl<'a> App<'a> {
}
async fn extract_radarr_indexer_id(&self) -> i64 {
self
.data
.radarr_data
.indexers
.current_selection()
.clone()
.id
self.data.radarr_data.indexers.current_selection().id
}
}