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/import.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/turtle/src/command/client/import.rs') diff --git a/crates/turtle/src/command/client/import.rs b/crates/turtle/src/command/client/import.rs index 363e6405..3ec524d2 100644 --- a/crates/turtle/src/command/client/import.rs +++ b/crates/turtle/src/command/client/import.rs @@ -17,7 +17,7 @@ use crate::atuin_client::{ #[derive(Parser, Debug)] #[command(infer_subcommands = true)] -pub enum Cmd { +pub(crate) enum Cmd { /// Import history for the current shell Auto, @@ -49,7 +49,7 @@ const BATCH_SIZE: usize = 100; impl Cmd { #[expect(clippy::cognitive_complexity)] - pub async fn run(&self, db: &DB) -> Result<()> { + pub(crate) async fn run(&self, db: &DB) -> Result<()> { println!(" Atuin "); println!("======================"); println!(" \u{1f30d} "); @@ -135,7 +135,7 @@ impl Cmd { } } -pub struct HistoryImporter<'db, DB: Database> { +pub(crate) struct HistoryImporter<'db, DB: Database> { pb: ProgressBar, buf: Vec, db: &'db DB, -- cgit v1.3.1