Skip to content

Commit

Permalink
style: allow deprecated code for geo-types (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier authored Dec 8, 2022
1 parent fd06787 commit 9fb17ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::types::{
Coord, CoordType, Geometry, Kml, LineString, LinearRing, MultiGeometry, Point, Polygon,
};

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<geo_types::Coordinate<T>> for Coord<T>
where
Expand All @@ -27,6 +28,7 @@ where
}
}

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<Coord<T>> for geo_types::Coordinate<T>
where
Expand All @@ -37,6 +39,7 @@ where
}
}

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<geo_types::Point<T>> for Point<T>
where
Expand All @@ -47,6 +50,7 @@ where
}
}

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<Point<T>> for geo_types::Point<T>
where
Expand Down Expand Up @@ -82,6 +86,7 @@ where
}
}

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<LineString<T>> for geo_types::LineString<T>
where
Expand All @@ -97,6 +102,7 @@ where
}
}

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<geo_types::LineString<T>> for LinearRing<T>
where
Expand All @@ -112,6 +118,7 @@ where
}
}

#[allow(deprecated)]
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
impl<T> From<LinearRing<T>> for geo_types::LineString<T>
where
Expand Down

0 comments on commit 9fb17ce

Please sign in to comment.