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:
97b1294
)
Make shapelib::Contents::load1 public
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 27 Sep 2020 02:28:38 +0000
(
03:28
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 27 Sep 2020 02:28:38 +0000
(
03:28
+0100)
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 c7b08c7d525ccde7f58c0f4bbc483b32b6f7f117..248fb9f091eb62d556cad071f9e8edd2d4c074c1 100644
(file)
--- a/
src/shapelib.rs
+++ b/
src/shapelib.rs
@@
-178,7
+178,7
@@
impl Piece for Item {
impl ItemSpec {
#[throws(SpecError)]
- fn load(&self) -> Box<dyn Piece> {
+
pub
fn load(&self) -> Box<dyn Piece> {
let libs = GLOBAL.shapelibs.read().unwrap();
let lib = libs.get(&self.lib).ok_or(SE::LibraryNotFound)?;
lib.load1(&self.item)?