From 8e58367675179696e40633cc09cce2400c3bd359 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Fri, 29 Aug 2025 10:25:43 -0300 Subject: [PATCH] fix: update filter_plugin import paths Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/services/filter_service.rs | 2 +- src/services/item_service.rs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/services/filter_service.rs b/src/services/filter_service.rs index 089d911..262fb6e 100644 --- a/src/services/filter_service.rs +++ b/src/services/filter_service.rs @@ -1,4 +1,4 @@ -use crate::filter_plugin::{FilterChain, parse_filter_string}; +use crate::keep::filter_plugin::{FilterChain, parse_filter_string}; use std::io::Result; pub struct FilterService; diff --git a/src/services/item_service.rs b/src/services/item_service.rs index 4e834ce..e0417d0 100644 --- a/src/services/item_service.rs +++ b/src/services/item_service.rs @@ -8,6 +8,7 @@ use crate::services::types::{ItemWithContent, ItemWithMeta}; use crate::db::{self, Meta}; use crate::compression_engine::{get_compression_engine, CompressionType}; use crate::modes::common::settings_compression_type; +use crate::keep::filter_plugin; use clap::Command; use log::debug; use rusqlite::Connection; @@ -19,13 +20,13 @@ use std::path::PathBuf; /// A reader that applies a filter chain to the data as it's read struct FilteringReader { reader: R, - filter_chain: Option, + filter_chain: Option, buffer: Vec, buffer_pos: usize, } impl FilteringReader { - pub fn new(reader: R, filter_chain: Option) -> Self { + pub fn new(reader: R, filter_chain: Option) -> Self { Self { reader, filter_chain, @@ -178,7 +179,7 @@ impl ItemService { tail_bytes: Option, tail_lines: Option, filter: Option, - ) -> Result, CoreError> { + ) -> Result, CoreError> { // Build filter string from individual parameters (for backward compatibility) let mut filter_parts = Vec::new(); if let Some(pattern) = grep {