aboutsummaryrefslogtreecommitdiffstats
path: root/src/line.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/line.rs')
-rw-r--r--src/line.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/line.rs b/src/line.rs
index 07a1f03..17191ce 100644
--- a/src/line.rs
+++ b/src/line.rs
@@ -1,12 +1,12 @@
use crate::point::Point;
-pub struct Line {
- p1: Point,
- p2: Point,
+pub struct Line<'a> {
+ p1: &'a Point,
+ p2: &'a Point,
}
-impl Line {
- pub fn new(p1: Point, p2: Point) -> Self {
+impl<'a> Line<'a> {
+ pub fn new(p1: &'a Point, p2: &'a Point) -> Self {
Self { p1, p2 }
}