From 2f0e7e1c5ee0228ba5370c299fc5cbbbaf4b1373 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 27 Aug 2025 11:56:41 -0300 Subject: [PATCH] fix: add to_snake_case_string dependency and fix imports and type mismatch Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- Cargo.toml | 1 + src/services/item_service.rs | 2 +- src/services/meta_service.rs | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bf33aa8..fbcbd30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,7 @@ utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] } uzers = "0.12.1" which = "8.0.0" xdg = "2.5.2" +to_snake_case_string = { path = "./macros" } [dev-dependencies] tempfile = "3.3.0" diff --git a/src/services/item_service.rs b/src/services/item_service.rs index 179ad1e..fb5807c 100644 --- a/src/services/item_service.rs +++ b/src/services/item_service.rs @@ -4,7 +4,7 @@ use crate::services::compression_service::CompressionService; use crate::services::error::CoreError; use crate::services::meta_service::MetaService; use crate::services::types::{ItemWithContent, ItemWithMeta}; -use crate::meta_plugin::{get_meta_plugin, MetaPlugin, MetaPluginType}; +use crate::meta_plugin::{get_meta_plugin_with_config, MetaPlugin, MetaPluginType}; use crate::db::{self, Meta}; use crate::compression_engine::{get_compression_engine, CompressionType}; use crate::modes::common::settings_compression_type; diff --git a/src/services/meta_service.rs b/src/services/meta_service.rs index c2fcd77..dd73083 100644 --- a/src/services/meta_service.rs +++ b/src/services/meta_service.rs @@ -1,5 +1,5 @@ use crate::config::Settings; -use crate::meta_plugin::{get_meta_plugin, MetaPlugin, MetaPluginType}; +use crate::meta_plugin::{get_meta_plugin_with_config, MetaPlugin, MetaPluginType}; use crate::modes::common::settings_meta_plugin_types; use clap::Command; use log::debug; @@ -60,13 +60,13 @@ impl MetaService { let options: std::collections::HashMap = config .options .iter() - .map(|(k, v)| (k.clone(), serde_yaml::Value::String(v.clone()))) + .map(|(k, v)| (k.clone(), v.clone())) .collect(); - + let outputs: std::collections::HashMap = config .outputs .iter() - .map(|(k, v)| (k.clone(), serde_yaml::Value::String(v.clone()))) + .map(|(k, v)| (k.clone(), v.clone())) .collect(); (Some(options), Some(outputs))