refactor: update empty hashmap initialization with lazy initialization
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -162,9 +162,10 @@ impl MetaPlugin for MetaPluginProgram {
|
||||
self.result = Some(result);
|
||||
|
||||
// Create metadata to be returned
|
||||
let result_clone = result.clone();
|
||||
metadata.push(crate::meta_plugin::MetaData {
|
||||
name: self.meta_name.clone(),
|
||||
value: result,
|
||||
value: result_clone,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user