From f00038eac16185f161e16f2206d9e04077435c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=B6ln?= Date: Fri, 19 Jul 2019 20:57:15 +0300 Subject: [PATCH] don't return a reference --- swf/src/shapes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]