chiark / gitweb /
currency: Use our own describe function
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 23:15:34 +0000 (00:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 23:53:59 +0000 (00:53 +0100)
This will enable us to use our own occultation handling for the
description, soon.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/currency.rs

index 4653557ed675038057278e07f3336b642fd9f2af..e42e7825700426f004436b83e09817d5be47e636 100644 (file)
@@ -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, &currency,
+      self_.describe(tgpc.face, &tgpc_value.html(Some(show)))?,
       remaining, &currency,
     )}];