refactor: Corrected some clone instead of copy behaviors in the command line handlers
This commit is contained in:
@@ -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)?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user