fix: restrict self to sized types and clone response in process_chunk and finalize_plugins

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-26 18:25:00 -03:00
parent 4b66b094d5
commit b73ba17f80
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ impl MetaService {
}
let response = meta_plugin.update(chunk);
self.process_plugin_response(conn, item_id, meta_plugin, response);
self.process_plugin_response(conn, item_id, meta_plugin, response.clone());
// Set finalized flag if response indicates finalization
if response.is_finalized {
@@ -148,7 +148,7 @@ impl MetaService {
}
let response = meta_plugin.finalize();
self.process_plugin_response(conn, item_id, meta_plugin, response);
self.process_plugin_response(conn, item_id, meta_plugin, response.clone());
// Set finalized flag if response indicates finalization
if response.is_finalized {