This commit is contained in:
Sebastian Köln 2019-07-16 09:54:50 +03:00
parent 6acab74fae
commit ed1d75fdc6
1 changed files with 2 additions and 2 deletions

View File

@ -93,12 +93,12 @@ impl Shape {
} }
#[inline] #[inline]
fn first(&self) -> LineSegment { fn first(&self) -> &LineSegment {
self.outline.first().unwrap() self.outline.first().unwrap()
} }
#[inline] #[inline]
fn last(&self) -> LineSegment { fn last(&self) -> &LineSegment {
self.outline.last().unwrap() self.outline.last().unwrap()
} }