term: Rename println to println_prefixed

This function was mistakenly called `println`, despite it also wanting
a prefix.

Rename the function so that it better reflects its behaviour.
This commit is contained in:
Fintan Halpenny 2026-04-03 07:48:03 +01:00 committed by Lorenz Leutgeb
parent 1a31a9f541
commit e7d519cf65
2 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ fn display_success<'a>(
verbose: bool, verbose: bool,
) { ) {
for (node, updates, _) in results { for (node, updates, _) in results {
term::println( term::println_prefixed(
"🌱 Fetched from", "🌱 Fetched from",
term::format::secondary(term::format::node_id_human(node)), term::format::secondary(term::format::node_id_human(node)),
); );

View File

@ -249,7 +249,7 @@ pub fn usage(name: &str, usage: &str) {
)); ));
} }
pub fn println(prefix: impl fmt::Display, msg: impl fmt::Display) { pub fn println_prefixed(prefix: impl fmt::Display, msg: impl fmt::Display) {
print(format_args!("{prefix} {msg}")); print(format_args!("{prefix} {msg}"));
} }