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:
parent
1a31a9f541
commit
e7d519cf65
|
|
@ -578,7 +578,7 @@ fn display_success<'a>(
|
|||
verbose: bool,
|
||||
) {
|
||||
for (node, updates, _) in results {
|
||||
term::println(
|
||||
term::println_prefixed(
|
||||
"🌱 Fetched from",
|
||||
term::format::secondary(term::format::node_id_human(node)),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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}"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue