chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c432754
)
currency: Use our own describe function
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 19 May 2022 23:15:34 +0000
(
00:15
+0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/currency.rs
b/src/currency.rs
index 4653557ed675038057278e07f3336b642fd9f2af..e42e7825700426f004436b83e09817d5be47e636 100644
(file)
--- 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,
)}];