fix: resolve moved value errors and unused variable warnings
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -156,7 +156,7 @@ fn build_meta_plugins_configured_table(settings: &config::Settings) -> Option<Ta
|
|||||||
|
|
||||||
// First, create a default plugin to get its default options
|
// First, create a default plugin to get its default options
|
||||||
let default_plugin = get_meta_plugin(
|
let default_plugin = get_meta_plugin(
|
||||||
meta_plugin_type,
|
meta_plugin_type.clone(),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
@@ -177,19 +177,19 @@ fn build_meta_plugins_configured_table(settings: &config::Settings) -> Option<Ta
|
|||||||
|
|
||||||
// Create the actual plugin with merged options
|
// Create the actual plugin with merged options
|
||||||
let actual_plugin = get_meta_plugin(
|
let actual_plugin = get_meta_plugin(
|
||||||
meta_plugin_type,
|
meta_plugin_type.clone(),
|
||||||
Some(effective_options.clone()),
|
Some(effective_options.clone()),
|
||||||
Some(outputs_converted),
|
Some(outputs_converted),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Show the merged options including defaults set by the plugin
|
// Show the merged options including defaults set by the plugin
|
||||||
// Convert options to a YAML string, but handle formatting better
|
// Convert options to a YAML string, but handle formatting better
|
||||||
let mut options_to_serialize = actual_plugin.options().clone();
|
// Note: actual_plugin.options() is not used here, so we don't need to store it
|
||||||
|
|
||||||
// For plugins that set default options programmatically, we need to include them
|
// For plugins that set default options programmatically, we need to include them
|
||||||
// Let's get the default plugin to see what options it would have
|
// Let's get the default plugin to see what options it would have
|
||||||
let default_plugin = get_meta_plugin(
|
let _default_plugin = get_meta_plugin(
|
||||||
meta_plugin_type,
|
meta_plugin_type.clone(),
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user