From 939b82fd983f4e2fd0df92ce3cf324641933c7f1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 May 2022 20:08:52 +0100 Subject: [PATCH] size handling: Make OutlineOccultable return type Copy It is. Declare it, so we can reuse it nicely. Signed-off-by: Ian Jackson --- src/shapelib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )) -- 2.30.2