fix: clone result before moving it into self.result
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -159,14 +159,12 @@ impl MetaPlugin for MetaPluginProgram {
|
||||
|
||||
if !result.is_empty() {
|
||||
debug!("META: Program output: {}", result);
|
||||
self.result = Some(result);
|
||||
self.result = Some(result.clone());
|
||||
|
||||
// Create metadata to be returned - clone before moving into self.result
|
||||
let result_clone = result.clone();
|
||||
self.result = Some(result_clone.clone());
|
||||
// Create metadata to be returned
|
||||
metadata.push(crate::meta_plugin::MetaData {
|
||||
name: self.meta_name.clone(),
|
||||
value: result_clone,
|
||||
value: result,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user