don't return a reference
This commit is contained in:
parent
47e77f2513
commit
f00038eac1
|
@ -93,13 +93,13 @@ 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()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in New Issue