diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 14:20:49 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 14:20:49 +0200 |
| commit | 199563550dd41c3dfb703bd3747604a8a03cdbc5 (patch) | |
| tree | 30cfa3e5539f782b7571091c742ee1c219e138fb /crates/turtle/src/command/client/search.rs | |
| parent | chore: Restore db migrations (diff) | |
| download | atuin-199563550dd41c3dfb703bd3747604a8a03cdbc5.zip | |
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)`
Diffstat (limited to 'crates/turtle/src/command/client/search.rs')
| -rw-r--r-- | crates/turtle/src/command/client/search.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/turtle/src/command/client/search.rs b/crates/turtle/src/command/client/search.rs index 4a2114d5..72112084 100644 --- a/crates/turtle/src/command/client/search.rs +++ b/crates/turtle/src/command/client/search.rs @@ -23,13 +23,13 @@ mod engines; mod history_list; mod inspector; mod interactive; -pub mod keybindings; +pub(crate) mod keybindings; -pub use duration::format_duration_into; +pub(crate) use duration::format_duration_into; #[expect(clippy::struct_excessive_bools, clippy::struct_field_names)] #[derive(Parser, Debug)] -pub struct Cmd { +pub(crate) struct Cmd { /// Filter search result by directory #[arg(long, short)] cwd: Option<String>, @@ -147,7 +147,7 @@ pub struct Cmd { impl Cmd { /// Returns true if this search command will run in interactive (TUI) mode - pub fn is_interactive(&self) -> bool { + pub(crate) fn is_interactive(&self) -> bool { self.interactive } @@ -155,7 +155,7 @@ impl Cmd { // clippy: now it has too many lines // me: I'll do it later OKAY #[expect(clippy::too_many_lines)] - pub async fn run( + pub(crate) async fn run( self, db: impl Database, settings: &mut Settings, |
