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
+2 -2
View File
@@ -135,9 +135,9 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrListCommand> for RadarrListCommandH
.await?;
if output_in_log_format {
let log_lines = self.app.lock().await.data.radarr_data.logs.items.clone();
let log_lines = &self.app.lock().await.data.radarr_data.logs.items;
serde_json::to_string_pretty(&log_lines)?
serde_json::to_string_pretty(log_lines)?
} else {
serde_json::to_string_pretty(&logs)?
}