Skip to content

Commit

Permalink
Merge pull request #1236 from georust/frewsxcv-EB5D0FCB-3F16-47E9-99F…
Browse files Browse the repository at this point in the history
…2-38E366BCA8DB

Fix bug where `geo_traits::TriangleTrait::{second,third}` return the first coordinate.
  • Loading branch information
frewsxcv authored Oct 26, 2024
2 parents b1a0142 + 5dc3613 commit aa6964d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
12 changes: 12 additions & 0 deletions geo-traits/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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.
- <https://github.com/georust/geo/pull/1236>

## 0.1.0

- Initial release
2 changes: 1 addition & 1 deletion geo-traits/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
4 changes: 2 additions & 2 deletions geo-traits/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ impl<T: CoordNum> TriangleTrait for Triangle<T> {
}

fn second(&self) -> Self::CoordType<'_> {
&self.0
&self.1
}

fn third(&self) -> Self::CoordType<'_> {
&self.0
&self.2
}
}

Expand Down

0 comments on commit aa6964d

Please sign in to comment.