fix: handle serde_yaml Value::Tagged variant
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -202,6 +202,9 @@ fn build_config_table(settings: &config::Settings) -> Table {
|
||||
serde_yaml::Value::Mapping(_) => {
|
||||
serde_yaml::to_string(value).unwrap_or_else(|_| "{}".to_string())
|
||||
}
|
||||
serde_yaml::Value::Tagged(_) => {
|
||||
serde_yaml::to_string(value).unwrap_or_else(|_| "tagged".to_string())
|
||||
}
|
||||
};
|
||||
// Trim any extra whitespace from the serialized values
|
||||
let value_str = value_str.trim().to_string();
|
||||
|
||||
Reference in New Issue
Block a user