fix: remove unused imports and fix temporary value reference in options

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-29 14:05:11 -03:00
parent ff97bce04b
commit 03916829b3

View File

@@ -1,6 +1,4 @@
use crate::meta_plugin::{MetaPlugin, MetaPluginType, process_metadata_outputs}; use crate::meta_plugin::{MetaPlugin, MetaPluginType, process_metadata_outputs};
use log::debug;
use std::collections::HashMap;
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct EnvMetaPlugin { pub struct EnvMetaPlugin {
@@ -130,7 +128,10 @@ impl MetaPlugin for EnvMetaPlugin {
} }
fn options(&self) -> &std::collections::HashMap<String, serde_yaml::Value> { fn options(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {
&std::collections::HashMap::new() use once_cell::sync::Lazy;
static EMPTY: Lazy<std::collections::HashMap<String, serde_yaml::Value>> =
Lazy::new(|| std::collections::HashMap::new());
&EMPTY
} }
fn options_mut(&mut self) -> &mut std::collections::HashMap<String, serde_yaml::Value> { fn options_mut(&mut self) -> &mut std::collections::HashMap<String, serde_yaml::Value> {