refactor: Updated the 2018 idiom lint to the 2021_compatibility lint
This commit is contained in:
@@ -21,7 +21,7 @@ pub(super) struct BlocklistHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> BlocklistHandler<'a, 'b> {
|
||||
impl BlocklistHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
blocklist,
|
||||
|
||||
@@ -20,7 +20,7 @@ pub(super) struct DownloadsHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> DownloadsHandler<'a, 'b> {
|
||||
impl DownloadsHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
downloads,
|
||||
|
||||
@@ -21,7 +21,7 @@ pub(super) struct HistoryHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> HistoryHandler<'a, 'b> {
|
||||
impl HistoryHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
history,
|
||||
|
||||
@@ -19,7 +19,7 @@ pub(super) struct EditIndexerHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> EditIndexerHandler<'a, 'b> {
|
||||
impl EditIndexerHandler<'_, '_> {
|
||||
fn build_edit_indexer_params(&mut self) -> EditIndexerParams {
|
||||
let edit_indexer_modal = self
|
||||
.app
|
||||
|
||||
@@ -20,7 +20,7 @@ pub(super) struct IndexerSettingsHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> IndexerSettingsHandler<'a, 'b> {
|
||||
impl IndexerSettingsHandler<'_, '_> {
|
||||
fn build_edit_indexer_settings_params(&mut self) -> IndexerSettings {
|
||||
self
|
||||
.app
|
||||
|
||||
@@ -31,7 +31,7 @@ pub(super) struct IndexersHandler<'a, 'b> {
|
||||
context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> IndexersHandler<'a, 'b> {
|
||||
impl IndexersHandler<'_, '_> {
|
||||
handle_table_events!(self, indexers, self.app.data.sonarr_data.indexers, Indexer);
|
||||
|
||||
fn extract_indexer_id(&self) -> i64 {
|
||||
|
||||
@@ -17,7 +17,7 @@ pub(super) struct TestAllIndexersHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> TestAllIndexersHandler<'a, 'b> {
|
||||
impl TestAllIndexersHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
indexer_test_all_results,
|
||||
|
||||
@@ -22,7 +22,7 @@ pub(super) struct AddSeriesHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> AddSeriesHandler<'a, 'b> {
|
||||
impl AddSeriesHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
add_searched_series,
|
||||
|
||||
@@ -18,7 +18,7 @@ pub(super) struct DeleteSeriesHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> DeleteSeriesHandler<'a, 'b> {
|
||||
impl DeleteSeriesHandler<'_, '_> {
|
||||
fn build_delete_series_params(&mut self) -> DeleteSeriesParams {
|
||||
let id = self.app.data.sonarr_data.series.current_selection().id;
|
||||
let delete_series_files = self.app.data.sonarr_data.delete_series_files;
|
||||
|
||||
@@ -20,7 +20,7 @@ pub(super) struct EditSeriesHandler<'a, 'b> {
|
||||
context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> EditSeriesHandler<'a, 'b> {
|
||||
impl EditSeriesHandler<'_, '_> {
|
||||
fn build_edit_series_params(&mut self) -> EditSeriesParams {
|
||||
let edit_series_modal = self
|
||||
.app
|
||||
|
||||
@@ -20,7 +20,7 @@ pub(super) struct EpisodeDetailsHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> EpisodeDetailsHandler<'a, 'b> {
|
||||
impl EpisodeDetailsHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
episode_history,
|
||||
|
||||
@@ -44,7 +44,7 @@ pub(super) struct LibraryHandler<'a, 'b> {
|
||||
context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> LibraryHandler<'a, 'b> {
|
||||
impl LibraryHandler<'_, '_> {
|
||||
handle_table_events!(self, series, self.app.data.sonarr_data.series, Series);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ pub(super) struct SeasonDetailsHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> SeasonDetailsHandler<'a, 'b> {
|
||||
impl SeasonDetailsHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
episodes,
|
||||
|
||||
@@ -23,7 +23,7 @@ pub(super) struct SeriesDetailsHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> SeriesDetailsHandler<'a, 'b> {
|
||||
impl SeriesDetailsHandler<'_, '_> {
|
||||
handle_table_events!(self, season, self.app.data.sonarr_data.seasons, Season);
|
||||
handle_table_events!(
|
||||
self,
|
||||
|
||||
@@ -21,7 +21,7 @@ pub(super) struct RootFoldersHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> RootFoldersHandler<'a, 'b> {
|
||||
impl RootFoldersHandler<'_, '_> {
|
||||
handle_table_events!(
|
||||
self,
|
||||
root_folders,
|
||||
|
||||
@@ -19,7 +19,7 @@ pub(super) struct SystemDetailsHandler<'a, 'b> {
|
||||
_context: Option<ActiveSonarrBlock>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> SystemDetailsHandler<'a, 'b> {
|
||||
impl SystemDetailsHandler<'_, '_> {
|
||||
fn extract_task_name(&self) -> SonarrTaskName {
|
||||
self
|
||||
.app
|
||||
|
||||
Reference in New Issue
Block a user