From d0d5c309a6a1c1470b331f1b658ec3f888bfa587 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 25 Jul 2025 16:59:09 -0700 Subject: [PATCH] make PolylineError clonable --- CHANGELOG.md | 5 +++++ src/errors.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e21967d..e8bc5d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +* Derive `Clone` for `PolyLineError` + * https://github.com/georust/polyline/pull/54 + ## 0.11.0 * Speed up encode function (now runs in ~72% less time / 3.5x improvement): diff --git a/src/errors.rs b/src/errors.rs index 5c68eeb..c3ea4dc 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -2,7 +2,7 @@ use geo_types::Coord; -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Clone)] #[non_exhaustive] pub enum PolylineError { LongitudeCoordError {