From: Ian Jackson Date: Sat, 15 May 2021 19:08:02 +0000 (+0100) Subject: shapelib: Note a bug! X-Git-Tag: otter-0.6.0~265 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=637275cbd365720306f627eb8364b25275ad6033;p=otter.git shapelib: Note a bug! Signed-off-by: Ian Jackson --- diff --git a/src/shapelib.rs b/src/shapelib.rs index ef1d3913..927daebc 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -608,6 +608,7 @@ impl PieceSpec for MultiSpec { let item = self.items.get(i).ok_or_else( || SpE::InternalError(format!("item {:?} from {:?}", i, &self)) )?; + // xxx dedupe let item = format!("{}{}{}", &self.prefix, item, &self.suffix); let lib = self.lib.clone(); ItemSpec { lib, item }.find_load(ig,depth)?.into()