diff --git a/CHANGES.md b/CHANGES.md index 6ffd94772..71a89e33c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,5 +3,6 @@ Each crate in this repository has its own changelog: - [geo/CHANGES.md](./geo/CHANGES.md) +- [geo-traits/CHANGES.md](./geo-traits/CHANGES.md) - [geo-types/CHANGES.md](./geo-types/CHANGES.md) - [geo-postgis/CHANGES.md](./geo-postgis/CHANGES.md) diff --git a/geo-traits/CHANGES.md b/geo-traits/CHANGES.md new file mode 100644 index 000000000..866b1f742 --- /dev/null +++ b/geo-traits/CHANGES.md @@ -0,0 +1,12 @@ +# Changes + +## Unreleased + +## 0.1.1 + +- Fix `TriangleTrait::second` and `TriangleTrait::third` to return the second and third coordinates instead of the first. + - + +## 0.1.0 + +- Initial release diff --git a/geo-traits/Cargo.toml b/geo-traits/Cargo.toml index a9c3c48b3..2024ddcf3 100644 --- a/geo-traits/Cargo.toml +++ b/geo-traits/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "geo-traits" -version = "0.1.0" +version = "0.1.1" license = "MIT OR Apache-2.0" repository = "https://github.com/georust/geo" documentation = "https://docs.rs/geo-traits/" diff --git a/geo-traits/src/triangle.rs b/geo-traits/src/triangle.rs index 8934e4e3f..75cf978e3 100644 --- a/geo-traits/src/triangle.rs +++ b/geo-traits/src/triangle.rs @@ -48,11 +48,11 @@ impl TriangleTrait for Triangle { } fn second(&self) -> Self::CoordType<'_> { - &self.0 + &self.1 } fn third(&self) -> Self::CoordType<'_> { - &self.0 + &self.2 } }