diff --git a/swf/src/shapes.rs b/swf/src/shapes.rs index 45308b4e..2348672f 100644 --- a/swf/src/shapes.rs +++ b/swf/src/shapes.rs @@ -93,13 +93,13 @@ impl Shape { } #[inline] - fn first(&self) -> &LineSegment { - self.outline.first().unwrap() + fn first(&self) -> LineSegment { + *self.outline.first().unwrap() } #[inline] - fn last(&self) -> &LineSegment { - self.outline.last().unwrap() + fn last(&self) -> LineSegment { + *self.outline.last().unwrap() } #[inline]