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/print_error.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/print_error.rs')
| -rw-r--r-- | crates/turtle/src/print_error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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", |
