Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: ref_update should take a ref
Fintan Halpenny committed 2 years ago
commit 2fe0cca6d97700c4ef78c9f04b8ae52865ca9910
parent 98bb91680d27a65455a87b6ba1a59c3d7717fc4c
1 file changed +1 -1
modified radicle-cli/src/terminal/format.rs
@@ -83,7 +83,7 @@ pub fn timestamp(time: impl Into<LocalTime>) -> Paint<String> {
}

/// Format a ref update.
-
pub fn ref_update(update: RefUpdate) -> Paint<&'static str> {
+
pub fn ref_update(update: &RefUpdate) -> Paint<&'static str> {
    match update {
        RefUpdate::Updated { .. } => term::format::tertiary("updated"),
        RefUpdate::Created { .. } => term::format::positive("created"),