term: Rename print_inline to print

The name `print_inline` was used because, previously, the `print`
function name was taken.

This has now changed, allowing the rename of this function to happen.
This commit is contained in:
Fintan Halpenny 2026-04-03 07:57:19 +01:00 committed by Lorenz Leutgeb
parent 2262b8d9bd
commit 56625a42f7
4 changed files with 5 additions and 5 deletions

View File

@ -514,7 +514,7 @@ fn print_diff(
if let Some(modified) = diff.modified().next() { if let Some(modified) = diff.modified().next() {
let diff = modified.diff.to_unified_string()?; let diff = modified.diff.to_unified_string()?;
term::print_inline(diff); term::print(diff);
} else { } else {
term::println(term::format::italic("No changes.")); term::println(term::format::italic("No changes."));
} }

View File

@ -232,7 +232,7 @@ fn refs(repo: &radicle::storage::git::Repository) -> anyhow::Result<()> {
} }
} }
term::print_inline(tree(refs)); term::print(tree(refs));
Ok(()) Ok(())
} }

View File

@ -170,7 +170,7 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
} }
tail.reverse(); tail.reverse();
term::print_inline(term::format::dim(String::from_utf8_lossy(&tail))); term::print(term::format::dim(String::from_utf8_lossy(&tail)));
if let Some(timeout) = follow { if let Some(timeout) = follow {
file.seek(SeekFrom::End(0))?; file.seek(SeekFrom::End(0))?;
@ -184,7 +184,7 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
if len == 0 { if len == 0 {
thread::sleep(time::Duration::from_millis(250)); thread::sleep(time::Duration::from_millis(250));
} else { } else {
term::print_inline(term::format::dim(line)); term::print(term::format::dim(line));
} }
} }
} }

View File

@ -195,7 +195,7 @@ pub fn println(msg: impl fmt::Display) {
/// # Panics /// # Panics
/// ///
/// If writing to standard output fails with an error not of kind [`io::ErrorKind::BrokenPipe`]. /// If writing to standard output fails with an error not of kind [`io::ErrorKind::BrokenPipe`].
pub fn print_inline(msg: impl fmt::Display) { pub fn print(msg: impl fmt::Display) {
use io::Write; use io::Write;
let mut stdout = io::stdout().lock(); let mut stdout = io::stdout().lock();