chiark / gitweb /
shapelib hidden: Include outline info in OccultData
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Mar 2021 15:22:41 +0000 (15:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Mar 2021 15:22:41 +0000 (15:22 +0000)
Nothing uses this yet

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

index 492d4d0d2c6928b194418c4a4f37dfa31ef42ecb..0df9e8235273ac6edeef81c5751e4f95a00b6198 100644 (file)
@@ -53,6 +53,7 @@ struct ItemData {
 #[derive(Debug,Clone)]
 struct OccData {
   item_name: String,
+  outline: Outline,
   desc: Html,
 }
 
@@ -406,6 +407,7 @@ fn load_catalogue(libname: &str, dirname: &str, toml_path: &str) -> Contents {
           Some(Arc::new(OccData {
             item_name: subst(&item_name, "_c", &colour)?,
             desc: Html(subst(&fe.desc.0, "_colour", "")?),
+            outline: outline.clone(),
           }))
         },
       };