don't return a reference

This commit is contained in:
Sebastian Köln 2019-07-19 20:57:15 +03:00
parent 47e77f2513
commit f00038eac1
1 changed files with 4 additions and 4 deletions

View File

@ -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]