refactor: replace get_* and set_* methods with direct field access
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -48,11 +48,9 @@ fn setup_compression_and_plugins(
|
||||
let plugin_name = meta_plugin.meta_name();
|
||||
if let Some(config) = meta_plugin_configs.iter().find(|c| c.name == plugin_name) {
|
||||
// Set outputs first
|
||||
let mut outputs = std::collections::HashMap::new();
|
||||
for (key, value) in &config.outputs {
|
||||
outputs.insert(key.clone(), serde_yaml::Value::String(value.clone()));
|
||||
meta_plugin.outputs_mut().insert(key.clone(), serde_yaml::Value::String(value.clone()));
|
||||
}
|
||||
meta_plugin.set_outputs(outputs);
|
||||
|
||||
// Then configure with options
|
||||
if let Err(e) = meta_plugin.configure(&config.options) {
|
||||
|
||||
Reference in New Issue
Block a user