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:
959511f
)
shapelib catalogue: Get description from trait
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 13 May 2022 23:05:03 +0000
(
00:05
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 13 May 2022 23:05:50 +0000
(
00:05
+0100)
We need to disambiguate this right now because we have a concrete
item here which impl both PieceTrait and InertPieceTrait.
That's going to change later.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/shapelib.rs
patch
|
blob
|
history
diff --git
a/src/shapelib.rs
b/src/shapelib.rs
index ff26da32d6f5d73a1c5108f66f8160b7bd1be8d7..5182f85f9d6e348ca12d62138b0148d146647fe0 100644
(file)
--- a/
src/shapelib.rs
+++ b/
src/shapelib.rs
@@
-925,7
+925,7
@@
impl Catalogue {
itemname: (**k).to_owned(),
sortkey: loaded.sortkey().map(|s| s.to_owned()),
f0bbox,
- f0desc:
loaded.describe_face(
default())?,
+ f0desc:
PieceTrait::describe_html(&*loaded, &gpc, &
default())?,
};
out.push(ier);
}