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:
parent
2262b8d9bd
commit
56625a42f7
|
|
@ -514,7 +514,7 @@ fn print_diff(
|
|||
|
||||
if let Some(modified) = diff.modified().next() {
|
||||
let diff = modified.diff.to_unified_string()?;
|
||||
term::print_inline(diff);
|
||||
term::print(diff);
|
||||
} else {
|
||||
term::println(term::format::italic("No changes."));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ fn refs(repo: &radicle::storage::git::Repository) -> anyhow::Result<()> {
|
|||
}
|
||||
}
|
||||
|
||||
term::print_inline(tree(refs));
|
||||
term::print(tree(refs));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
|
|||
}
|
||||
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 {
|
||||
file.seek(SeekFrom::End(0))?;
|
||||
|
|
@ -184,7 +184,7 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
|
|||
if len == 0 {
|
||||
thread::sleep(time::Duration::from_millis(250));
|
||||
} else {
|
||||
term::print_inline(term::format::dim(line));
|
||||
term::print(term::format::dim(line));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ pub fn println(msg: impl fmt::Display) {
|
|||
/// # Panics
|
||||
///
|
||||
/// 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;
|
||||
|
||||
let mut stdout = io::stdout().lock();
|
||||
|
|
|
|||
Loading…
Reference in New Issue