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
+1 -7
View File
@@ -379,13 +379,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrEditCommand> for RadarrEditCommandH
rss_sync_interval: rss_sync_interval
.unwrap_or(previous_indexer_settings.rss_sync_interval),
whitelisted_hardcoded_subs: whitelisted_subtitle_tags
.clone()
.unwrap_or_else(|| {
previous_indexer_settings
.whitelisted_hardcoded_subs
.text
.clone()
})
.unwrap_or(previous_indexer_settings.whitelisted_hardcoded_subs.text)
.into(),
};
self