fix: resolve borrow after move error by cloning result before assignment
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -163,10 +163,10 @@ impl MetaPlugin for MetaPluginProgram {
|
||||
|
||||
// Create metadata to be returned - clone before moving into self.result
|
||||
let result_clone = result.clone();
|
||||
self.result = Some(result);
|
||||
self.result = Some(result_clone);
|
||||
metadata.push(crate::meta_plugin::MetaData {
|
||||
name: self.meta_name.clone(),
|
||||
value: result_clone,
|
||||
value: result,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user