From 199563550dd41c3dfb703bd3747604a8a03cdbc5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 11 Jun 2026 14:20:49 +0200 Subject: chore: Remove all `pub`s They will not be marked by rustc/cargo as unused, and as atuin doesn't expose an API all of them _should_ be `pub(crate)` --- crates/turtle/src/command/client/search/engines.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'crates/turtle/src/command/client/search/engines.rs') diff --git a/crates/turtle/src/command/client/search/engines.rs b/crates/turtle/src/command/client/search/engines.rs index 0f92b4c7..d6335a38 100644 --- a/crates/turtle/src/command/client/search/engines.rs +++ b/crates/turtle/src/command/client/search/engines.rs @@ -9,12 +9,12 @@ use eyre::Result; use super::cursor::Cursor; #[cfg(feature = "daemon")] -pub mod daemon; -pub mod db; -pub mod skim; +pub(crate) mod daemon; +pub(crate) mod db; +pub(crate) mod skim; #[expect(unused)] // settings is only used if daemon feature is enabled -pub fn engine(search_mode: SearchMode, settings: &Settings) -> Box { +pub(crate) fn engine(search_mode: SearchMode, settings: &Settings) -> Box { match search_mode { SearchMode::Skim => Box::new(skim::Search::new()) as Box<_>, #[cfg(feature = "daemon")] @@ -28,11 +28,11 @@ pub fn engine(search_mode: SearchMode, settings: &Settings) -> Box, +pub(crate) struct SearchState { + pub(crate) input: Cursor, + pub(crate) filter_mode: FilterMode, + pub(crate) context: Context, + pub(crate) custom_context: Option, } impl SearchState { @@ -63,7 +63,7 @@ impl SearchState { } #[async_trait] -pub trait SearchEngine: Send + Sync + 'static { +pub(crate) trait SearchEngine: Send + Sync + 'static { async fn full_query( &mut self, state: &SearchState, -- cgit v1.3.1