Skip to content

Commit 6c70f21

Browse files
authored
Merge pull request #154 from casework/dependabot/cargo/rust/case2geojson/geojson-1.0.0
Bump geojson from 0.24.2 to 1.0.0 in /rust/case2geojson
2 parents f92473d + fb5f0bd commit 6c70f21

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

rust/case2geojson/Cargo.lock

Lines changed: 19 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/case2geojson/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
geojson = "0.24.1"
7+
geojson = "1.0.0"
88
iref = "3.2.2"
99
json-ld = { version = "0.21.4" }
1010
oxigraph = { version = "0.5.6", default-features = false}

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)