From: Ian Jackson Date: Sun, 27 Sep 2020 02:28:38 +0000 (+0100) Subject: Make shapelib::Contents::load1 public X-Git-Tag: otter-0.2.0~867 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=baa11261f3ce7dd71d37cbaae0e616c4dee4f9e3;p=otter.git Make shapelib::Contents::load1 public Signed-off-by: Ian Jackson --- diff --git a/src/shapelib.rs b/src/shapelib.rs index c7b08c7d..248fb9f0 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -178,7 +178,7 @@ impl Piece for Item { impl ItemSpec { #[throws(SpecError)] - fn load(&self) -> Box { + pub fn load(&self) -> Box { let libs = GLOBAL.shapelibs.read().unwrap(); let lib = libs.get(&self.lib).ok_or(SE::LibraryNotFound)?; lib.load1(&self.item)?