Skip to content

Commit

Permalink
Upgrade outdated dependencies (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Notgnoshi authored Jul 25, 2024
2 parents 65ebe81 + 1095c71 commit 8960938
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,20 @@ clap = {version="4.0", features=["derive"]}
cxx = {version = "1.0", optional=true}
delaunator = "1.0"
hex = "0.4"
itertools = "0.12"
itertools = "0.13"
geo = "0.28"
kdtree = "0.7"
log = "0.4"
noise = "0.8"
noise = "0.9"
petgraph = "0.6"
rand = "0.8"
rand_distr = "0.4"
rectangle-pack = "0.4"
rhai = {version="1.13", features=["only_i64", "no_index", "no_object", "no_time", "no_function", "no_module", "no_custom_syntax"]}
stderrlog = "0.6"
svg = "0.16"
svg = "0.17"
wkb = "0.7"
wkt = "0.10"
wkt = "0.11"

[build-dependencies]
cc = {version="*", features=["parallel"], optional=true}
Expand Down
11 changes: 6 additions & 5 deletions generative/io/wkt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ where
type Error = wkt::conversion::Error;

fn try_from(wkt: Wkt<T>) -> Result<Self, Self::Error> {
let geometry = Geometry::try_from(wkt.item)?;
let geometry = Geometry::try_from(wkt)?;
Ok(geometry.into())
}
}
Expand Down Expand Up @@ -380,7 +380,7 @@ where
{
for geometry in geometries {
let wkt_geom = geometry.to_wkt();
writeln!(writer, "{}", wkt_geom.item).expect("Writing failed");
writeln!(writer, "{}", wkt_geom).expect("Writing failed");
}
}

Expand Down Expand Up @@ -545,11 +545,12 @@ mod tests {
}

#[test]
fn test_cant_parse_3d_sad_face() {
fn test_can_parse_3d() {
let wkt = b"POINT Z(1 2 3)";
let geometries = read_wkt_geometries(&wkt[..]);
let mut geometries = read_wkt_geometries(&wkt[..]);

assert_eq!(geometries.count(), 0);
let point = geometries.next();
assert_eq!(point, Some(Geometry::Point(Point::new(1.0, 2.0))));
}

#[test]
Expand Down

0 comments on commit 8960938

Please sign in to comment.