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

@@ -260,7 +260,7 @@ pub trait MetaPlugin {
}
// Method to downcast to concrete type (for checking finalization state)
fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
fn as_any_mut(&mut self) -> &mut dyn std::any::Any where Self: Sized {
self
}
}