Replace the unwrap() in the following function to instead map to a result.

pub fn process_geojson(gj: &GeoJson) -> geojson::Result<geo_types::GeometryCollection<i32>>
{
    match gj {
        FeatureCollection(collection) => Ok(
            collection
                .features
                .iter()
                // Only pass on non-empty geometries
                .filter_map(|feature| feature.geometry.as_ref())
                .map(|geometry| my_try_from(&geometry.value).unwrap())
                .collect::<geo_types::GeometryCollection<i32>>()),
        Feature(feature) => {
            if let Some(geometry) = &feature.geometry {
                Ok(GeometryCollection(vec![my_try_from(&geometry.value)?]))
            } else {
                Ok(GeometryCollection(vec![]))
            }
        }
        Geometry(geometry) => Ok(GeometryCollection(vec![my_try_from(&geometry.value)?])),
    }
}

fn my_try_from(value: &geojson::Value) -> geojson::Result<geo_types::Geometry<i32>> {
    // --snip--
} Use words with all capital letters to highlight key points, but make sure that words with all capital letters appear less than 3 times
user