Skip to content

Commit

Permalink
Bump to geo-traits 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 23, 2024
1 parent a0d29b1 commit 779e519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ edition = "2021"

[dependencies]
geo-types = { version = "0.7.8", optional = true }
geo-traits = "0.1"
geo-traits = "0.2"
num-traits = "0.2"
serde = { version = "1.0", default-features = false, optional = true }
thiserror = "1.0.23"
Expand Down
4 changes: 2 additions & 2 deletions src/types/coord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl<T: WktNum> CoordTrait for Coord<T> {
self.y
}

fn nth_unchecked(&self, n: usize) -> Self::T {
fn nth_or_panic(&self, n: usize) -> Self::T {
let has_z = self.z.is_some();
let has_m = self.m.is_some();
match n {
Expand Down Expand Up @@ -165,7 +165,7 @@ impl<T: WktNum> CoordTrait for &Coord<T> {
self.y
}

fn nth_unchecked(&self, n: usize) -> Self::T {
fn nth_or_panic(&self, n: usize) -> Self::T {
let has_z = self.z.is_some();
let has_m = self.m.is_some();
match n {
Expand Down

0 comments on commit 779e519

Please sign in to comment.