fix point sum test to sum over iter of Point rather than &Point
@@ -1105,7 +1105,8 @@ mod test {
#[test]
fn point_sum() {
- let points_sum: Point = vec![Point::new(-11, 5), Point::new(6, 2)].iter().sum();
+ let points_sum: Point = vec![Point::new(-11, 5), Point::new(6, 2)]
+ .into_iter().sum();
assert_eq!(Point::new(-5, 7), points_sum);
}
}
