Skip to content

Commit

Permalink
Prepare for 0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mthh committed Apr 30, 2024
1 parent 762a57f commit a29d42d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### 0.13.1 (2024-04-30)

- Fix bug introduced in 0.13.0 that caused the returned contours to be sometimes erroneous (fixes #18).

### 0.13.0 (2024-04-15)

- BREAKING: Change the signature of `ContourBuilder::new` to take a `usize` instead of an `u32` for the dimensions of the grid.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contour"
version = "0.13.0"
version = "0.13.1"
authors = ["Matthieu Viry <[email protected]>"]
edition = "2021"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
contour = "0.13.0"
contour = "0.13.1"
```

and this to your crate root:
Expand Down Expand Up @@ -90,7 +90,7 @@ The `geojson` feature is not enabled by default, so you need to specify it in yo

```toml
[dependencies]
contour = { version = "0.13.0", features = ["geojson"] }
contour = { version = "0.13.1", features = ["geojson"] }
```

```rust
Expand Down Expand Up @@ -150,7 +150,7 @@ If you want to use `f32` values instead, you need to specify the `f32` feature i

```toml
[dependencies]
contour = { version = "0.13.0", features = ["f32"] }
contour = { version = "0.13.1", features = ["f32"] }
```

## WASM demo
Expand Down
1 change: 1 addition & 0 deletions src/isoringbuilder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ impl IsoRingBuilder {
Ok(result)
}

#[allow(clippy::unnecessary_cast)]
fn index(&self, point: &Pt) -> usize {
(point.x as f64 * 2.0 + point.y as f64 * ((self.dx + 1) * 4) as f64) as usize
}
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ mod tests {
);
}

#[cfg(not(feature = "f32"))]
#[test]
fn test_issue18() {
let data_str = include_str!("../tests/fixtures/issue18.json");
Expand Down

0 comments on commit a29d42d

Please sign in to comment.