From e2d8e8d5a536d0858424adfda09227e36bb69f42 Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Mon, 5 Apr 2021 10:43:32 -0700 Subject: Upgrade rust/crates/plotters to 0.3.0 Test: make Change-Id: I3fa8ba846f19af1d8e8b6988fb7312ecbdbca9cc --- src/element/points.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/element/points.rs') diff --git a/src/element/points.rs b/src/element/points.rs index aa07de3..2b5346c 100644 --- a/src/element/points.rs +++ b/src/element/points.rs @@ -1,7 +1,7 @@ use super::*; use super::{Drawable, PointCollection}; -use crate::drawing::backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; use crate::style::{ShapeStyle, SizeDesc}; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; /// The element that used to describe a point pub trait PointElement { @@ -26,7 +26,7 @@ impl Cross { } impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a Cross { - type Borrow = &'a Coord; + type Point = &'a Coord; type IntoIter = std::iter::Once<&'a Coord>; fn point_iter(self) -> std::iter::Once<&'a Coord> { std::iter::once(&self.center) @@ -69,7 +69,7 @@ impl TriangleMarker { } impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a TriangleMarker { - type Borrow = &'a Coord; + type Point = &'a Coord; type IntoIter = std::iter::Once<&'a Coord>; fn point_iter(self) -> std::iter::Once<&'a Coord> { std::iter::once(&self.center) -- cgit v1.2.3