From ed1d75fdc65298ac0c2328fa56040d9565d5ec36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=B6ln?= Date: Tue, 16 Jul 2019 09:54:50 +0300 Subject: [PATCH] fix swf --- swf/src/shapes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swf/src/shapes.rs b/swf/src/shapes.rs index 6dbe6a0e..45308b4e 100644 --- a/swf/src/shapes.rs +++ b/swf/src/shapes.rs @@ -93,12 +93,12 @@ impl Shape { } #[inline] - fn first(&self) -> LineSegment { + fn first(&self) -> &LineSegment { self.outline.first().unwrap() } #[inline] - fn last(&self) -> LineSegment { + fn last(&self) -> &LineSegment { self.outline.last().unwrap() }