From d8dd1c8da054cbc81b174973c7f0611389cfc8e0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 20 May 2022 00:15:34 +0100 Subject: [PATCH] currency: Use our own describe function This will enable us to use our own occultation handling for the description, soon. Signed-off-by: Ian Jackson --- src/currency.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/currency.rs b/src/currency.rs index 4653557e..e42e7825 100644 --- a/src/currency.rs +++ b/src/currency.rs @@ -169,10 +169,9 @@ impl PieceTrait for Banknote { tgpc.pinned = false; let logents = vec![ LogEntry { html: hformat!( - "{} took {} {}{}, leaving {}{}", + "{} took {}, leaving {}{}", gpl.nick.to_html(), - self_.image.describe_html(tgpc.face)?, - take, ¤cy, + self_.describe(tgpc.face, &tgpc_value.html(Some(show)))?, remaining, ¤cy, )}]; -- 2.30.2