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/init.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/turtle/src/command/client/init.rs') diff --git a/crates/turtle/src/command/client/init.rs b/crates/turtle/src/command/client/init.rs index bf9747bb..776100cf 100644 --- a/crates/turtle/src/command/client/init.rs +++ b/crates/turtle/src/command/client/init.rs @@ -8,7 +8,7 @@ mod xonsh; mod zsh; #[derive(Parser, Debug)] -pub struct Cmd { +pub(crate) struct Cmd { shell: Shell, /// Disable the binding of CTRL-R to atuin @@ -27,7 +27,7 @@ pub struct Cmd { #[derive(Clone, Copy, ValueEnum, Debug)] #[value(rename_all = "lower")] #[expect(clippy::enum_variant_names, clippy::doc_markdown)] -pub enum Shell { +pub(crate) enum Shell { /// Zsh setup Zsh, /// Bash setup @@ -115,7 +115,7 @@ $env.config = ( } } - pub fn run(self, settings: &Settings) { + pub(crate) fn run(self, settings: &Settings) { if !settings.paths_ok() { eprintln!( "Atuin settings paths are broken. Disabling atuin shell hooks. Run `atuin doctor` to diagnose." -- cgit v1.3.1