Skip to content

Commit fb5f0bd

Browse files
committed
Update to new crate-version API
References: * georust/geojson#264 * georust/geojson#265 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 8703e58 commit fb5f0bd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rust/case2geojson/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ WHERE
187187

188188
let f_latitude = (s_latitude).parse::<f64>().unwrap();
189189
let f_longitude = (s_longitude).parse::<f64>().unwrap();
190-
gj_point = Some(geojson::Geometry::new(geojson::Value::Point(vec![
191-
f_longitude,
192-
f_latitude,
193-
])));
190+
gj_point = Some(geojson::Geometry::new_point([f_longitude, f_latitude]));
194191
};
195192
};
196193

0 commit comments

Comments
 (0)