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/print_error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/turtle/src/print_error.rs') diff --git a/crates/turtle/src/print_error.rs b/crates/turtle/src/print_error.rs index 4d4724bc..0a6303dd 100644 --- a/crates/turtle/src/print_error.rs +++ b/crates/turtle/src/print_error.rs @@ -7,7 +7,7 @@ use crossterm::terminal; /// Print a prominent error to stderr. Colored and box-bordered when stderr is /// a TTY, plain "Error: ..." header otherwise. The description is word-wrapped /// to the terminal width (capped at 100 columns) so the message stays readable. -pub fn print_error(title: &str, description: &str) { +pub(crate) fn print_error(title: &str, description: &str) { let is_tty = std::io::stderr().is_terminal(); let width = if is_tty { terminal::size().map_or(80, |(w, _)| w as usize) @@ -36,7 +36,7 @@ pub fn print_error(title: &str, description: &str) { /// Convert a `SyncError` into an `eyre::Report`, exiting on `WrongKey` after /// painting the prominent banner. -pub fn format_sync_error(e: SyncError) -> eyre::Report { +pub(crate) fn format_sync_error(e: SyncError) -> eyre::Report { if matches!(e, SyncError::WrongKey) { print_error( "Wrong encryption key", -- cgit v1.3.1