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/import.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/import.rs')
| -rw-r--r-- | crates/turtle/src/command/client/import.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<DB: Database>(&self, db: &DB) -> Result<()> { + pub(crate) async fn run<DB: Database>(&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<History>, db: &'db DB, |
