From: Ian Jackson Date: Wed, 4 May 2022 19:08:52 +0000 (+0100) Subject: size handling: Make OutlineOccultable return type Copy X-Git-Tag: otter-1.1.0~294 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=939b82fd983f4e2fd0df92ce3cf324641933c7f1;p=otter.git size handling: Make OutlineOccultable return type Copy It is. Declare it, so we can reuse it nicely. Signed-off-by: Ian Jackson --- diff --git a/src/shapelib.rs b/src/shapelib.rs index 0521bbca..4bedf3c3 100644 --- a/src/shapelib.rs +++ b/src/shapelib.rs @@ -221,7 +221,7 @@ impl SvgBaseName where T: Borrow { } impl OutlineCalculable { - pub fn err_mapper(&self) -> impl Fn(LLE) -> IE { + pub fn err_mapper(&self) -> impl Fn(LLE) -> IE + Copy { |e| internal_logic_error(format!( "outline calculable but failed {} {:?}",&e,&e ))