cli: ref_update should take a ref

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny 2024-03-08 16:01:04 +00:00 committed by cloudhead
parent 98bb91680d
commit 2fe0cca6d9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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"),