Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term: Rename println to println_prefixed
Fintan Halpenny committed 10 days ago
commit c7675165ce85083f94d06ed8b860e92ddc2bac46
parent abaeb575de58d709f5e19d21a60bcea647ba36e4
2 files changed +2 -2
modified crates/radicle-cli/src/commands/sync.rs
@@ -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)),
        );
modified crates/radicle-term/src/io.rs
@@ -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}"));
}