Commit 58ad7a9
authored
fix(geoparquet): Fix crate publish for 0.4 (#1222)
It's weird but I got
```
Compiling geoparquet v0.4.0 (/Users/kyle/github/geoarrow/geoarrow-rs/target/package/geoparquet-0.4.0)
error[E0277]: the trait bound `Arc<dyn GeoArrowArray>: GeoArrowArray` is not satisfied
--> src/writer/encode.rs:104:42
|
104 | let covering = bounding_rect(&from_arrow_array(array, field)?)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `GeoArrowArray` is not implemented for `Arc<dyn GeoArrowArray>`
|
= help: the following other types implement trait `GeoArrowArray`:
GenericWkbArray<O>
GenericWktArray<O>
GeometryArray
GeometryCollectionArray
LineStringArray
MultiLineStringArray
MultiPointArray
MultiPolygonArray
and 5 others
= note: required for the cast from `&Arc<dyn GeoArrowArray>` to `&dyn GeoArrowArray`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `geoparquet` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
```
only when trying to publish the package. Why wouldn't this error in one
of our checks on CI?
With this change, `cargo publish -p geoparquet --dry-run` succeeds.1 parent d3e7431 commit 58ad7a9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments