From: Ian Jackson Date: Wed, 23 Sep 2020 22:11:35 +0000 (+0100) Subject: shapelib: wip, compiles, remove an xxx X-Git-Tag: otter-0.2.0~914 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8797c894d1c9cbb198bfc6837d29561871b1f5a8;p=otter.git shapelib: wip, compiles, remove an xxx Signed-off-by: Ian Jackson --- diff --git a/src/shapelib.rs b/src/shapelib.rs index a00af892..c244cf70 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -165,16 +165,6 @@ impl Piece for Item { } } -/* -#[typetag::serde(name="LP")] -impl Item for LibraryItem { -} -*/ - -/* -#[typetag::serde(name="Lib")] -impl PieceSpec for LibPieceSpec { -*/ impl ItemSpec { fn load(&self) -> Result,SpecError> { let libs = GLOBAL.shapelibs.read().unwrap(); @@ -205,8 +195,7 @@ impl ItemSpec { let face = ItemFace { svg: Html(svg_data), desc, centre, scale }; let faces = index_vec![ face ]; let it = Item { faces, descs, outline, desc_hidden }; - Box::new(it); - panic!(); //xxx + Ok(Box::new(it)) } }