chiark / gitweb /
size handling: Make OutlineOccultable return type Copy
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 19:08:52 +0000 (20:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 19:40:20 +0000 (20:40 +0100)
It is.  Declare it, so we can reuse it nicely.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/shapelib.rs

index 0521bbca56e70d3ec6890ff7bfca2cc040684696..4bedf3c38054688a546d881bdbc3937b06d85f33 100644 (file)
@@ -221,7 +221,7 @@ impl<T> SvgBaseName<T> where T: Borrow<GoodItemName> {
 }
 
 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
     ))