Skip to content

Commit a29d42d

Browse files
committed
Prepare for 0.13.1
1 parent 762a57f commit a29d42d

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### 0.13.1 (2024-04-30)
4+
5+
- Fix bug introduced in 0.13.0 that caused the returned contours to be sometimes erroneous (fixes #18).
6+
37
### 0.13.0 (2024-04-15)
48

59
- BREAKING: Change the signature of `ContourBuilder::new` to take a `usize` instead of an `u32` for the dimensions of the grid.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "contour"
3-
version = "0.13.0"
3+
version = "0.13.1"
44
authors = ["Matthieu Viry <matthieu.viry@cnrs.fr>"]
55
edition = "2021"
66

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add this to your `Cargo.toml`:
1919

2020
```toml
2121
[dependencies]
22-
contour = "0.13.0"
22+
contour = "0.13.1"
2323
```
2424

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

9191
```toml
9292
[dependencies]
93-
contour = { version = "0.13.0", features = ["geojson"] }
93+
contour = { version = "0.13.1", features = ["geojson"] }
9494
```
9595

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

151151
```toml
152152
[dependencies]
153-
contour = { version = "0.13.0", features = ["f32"] }
153+
contour = { version = "0.13.1", features = ["f32"] }
154154
```
155155

156156
## WASM demo

src/isoringbuilder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ impl IsoRingBuilder {
165165
Ok(result)
166166
}
167167

168+
#[allow(clippy::unnecessary_cast)]
168169
fn index(&self, point: &Pt) -> usize {
169170
(point.x as f64 * 2.0 + point.y as f64 * ((self.dx + 1) * 4) as f64) as usize
170171
}

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ mod tests {
482482
);
483483
}
484484

485+
#[cfg(not(feature = "f32"))]
485486
#[test]
486487
fn test_issue18() {
487488
let data_str = include_str!("../tests/fixtures/issue18.json");

0 commit comments

Comments
 (0)