Skip to content

Commit 336b802

Browse files
committed
fix: clippy
1 parent fb6f490 commit 336b802

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/core/src/geoparquet/feature.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525
{
2626
let reader = GeoParquetRecordBatchReaderBuilder::try_new(reader)?.build()?;
2727
let table = reader.read_table()?;
28-
crate::geoarrow::from_table(table).map_err(Error::from)
28+
crate::geoarrow::from_table(table)
2929
}
3030

3131
/// Writes a [ItemCollection] to a [std::io::Write] as

crates/extensions/src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub mod raster;
5151
pub use projection::Projection;
5252
pub use raster::Raster;
5353
use serde::{de::DeserializeOwned, Serialize};
54-
use stac::{Catalog, Collection, Error, Fields, Item, Result};
54+
use stac::{Catalog, Collection, Fields, Item, Result};
5555

5656
/// A trait implemented by extensions.
5757
///
@@ -142,7 +142,7 @@ pub trait Extensions: Fields {
142142
/// assert_eq!(projection.code.unwrap(), "EPSG:32614");
143143
/// ```
144144
fn extension<E: Extension>(&self) -> Result<E> {
145-
self.fields_with_prefix(E::PREFIX).map_err(Error::from)
145+
self.fields_with_prefix(E::PREFIX)
146146
}
147147

148148
/// Adds an extension's identifier to this object.
@@ -180,7 +180,6 @@ pub trait Extensions: Fields {
180180
self.extensions_mut().dedup();
181181
self.remove_fields_with_prefix(E::PREFIX);
182182
self.set_fields_with_prefix(E::PREFIX, extension)
183-
.map_err(Error::from)
184183
}
185184

186185
/// Removes this extension and all of its fields from this object.

0 commit comments

Comments
 (0)