fix: remove deprecated strum::ToString and fix HashMap type conversion

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-27 12:17:09 -03:00
parent 091634433b
commit 89d62c7b11
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ impl MetaPlugin for BaseMetaPlugin {
}
}
#[derive(Debug, Eq, PartialEq, Clone, strum::EnumIter, strum::Display, strum::EnumString, strum::ToString)]
#[derive(Debug, Eq, PartialEq, Clone, strum::EnumIter, strum::Display, strum::EnumString)]
#[strum(serialize_all = "snake_case", ascii_case_insensitive)]
pub enum MetaPluginType {
FileMagic,

View File

@@ -66,7 +66,7 @@ impl MetaService {
let outputs: std::collections::HashMap<String, serde_yaml::Value> = config
.outputs
.iter()
.map(|(k, v)| (k.clone(), v.clone()))
.map(|(k, v)| (k.clone(), serde_yaml::Value::String(v.clone())))
.collect();
(Some(options), Some(outputs))