Skip to content

Commit fdee8d8

Browse files
committed
Add #[derive(Clone)] to GeometryT, GeometryCollectionT
1 parent 9056d3c commit fdee8d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ewkb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ pub type MultiPolygonZM = MultiPolygonT<PointZM>;
782782

783783

784784
/// Generic Geometry Data Type
785-
#[derive(Debug)]
785+
#[derive(Clone, Debug)]
786786
pub enum GeometryT<P: postgis::Point + EwkbRead> {
787787
Point(P),
788788
LineString(LineStringT<P>),
@@ -837,7 +837,7 @@ pub type GeometryM = GeometryT<PointM>;
837837
pub type GeometryZM = GeometryT<PointZM>;
838838

839839

840-
#[derive(Debug)]
840+
#[derive(Clone, Debug)]
841841
pub struct GeometryCollectionT<P: postgis::Point + EwkbRead> {
842842
pub geometries: Vec<GeometryT<P>>
843843
}

0 commit comments

Comments
 (0)