fix: remove unused MetaPlugin::binary variant

Co-authored-by: aider (openai/andrew/openrouter/mistralai/mistral-medium-3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-28 15:01:24 -03:00
parent 56a7487abd
commit dd88547c37
4 changed files with 5 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ impl MetaPlugin for BaseMetaPlugin {
fn meta_type(&self) -> MetaPluginType {
// This is a base implementation, so we need to return something
// This might not be used, but we need to satisfy the trait
MetaPluginType::Binary
MetaPluginType::Text
}
fn outputs(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {

View File

@@ -61,7 +61,8 @@ pub fn mode_server(
// Take ownership of the connection and move it into the async runtime
let owned_conn = std::mem::replace(conn, rusqlite::Connection::open_in_memory()?);
let cmd = cmd.clone();
rt.block_on(run_server(server_config, owned_conn, data_path, item_service, cmd))
let settings = settings.clone();
rt.block_on(run_server(server_config, owned_conn, data_path, item_service, cmd, settings))
}
async fn run_server(
@@ -70,6 +71,7 @@ async fn run_server(
data_dir: PathBuf,
item_service: ItemService,
cmd: Command,
settings: config::Settings,
) -> Result<()> {
// Construct address with port
let bind_address = if let Some(port) = config.port {

View File

@@ -16,7 +16,6 @@ use std::time::Instant;
use tokio::sync::Mutex;
use utoipa::ToSchema;
use crate::services::item_service::ItemService;
use clap::Command;
#[derive(Debug, Clone)]
pub struct ServerConfig {

View File

@@ -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::{MetaPlugin, MetaPluginType};
use crate::meta_plugin::MetaPluginType;
use crate::db::{self, Meta};
use crate::compression_engine::{get_compression_engine, CompressionType};
use crate::modes::common::settings_compression_type;