Update dependencies

This commit is contained in:
kpcyrd
2023-01-27 19:15:24 +01:00
parent 1be1967d6f
commit 326c868699
3 changed files with 437 additions and 432 deletions

863
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -36,7 +36,7 @@ x509-parser = "0.13"
der-parser = "8"
publicsuffix = { version="2", default-features=false }
xml-rs = "0.8"
geo = "0.20"
geo = "0.23"
bytes = "0.4"
base64 = "0.13"
chrono = { version = "0.4", features = ["serde"] }

View File

@@ -1,7 +1,7 @@
use crate::errors::*;
use crate::hlua::AnyLuaValue;
use crate::json::LuaJsonValue;
use geo::{LineString, Polygon, Coordinate};
use geo::{LineString, Polygon, Coord};
use geo::prelude::*;
use serde::Deserialize;
@@ -21,7 +21,7 @@ impl Point {
pub fn polygon_contains(ring: &[Point], p: &Point) -> bool {
let ring = ring.iter()
.map(|p| Coordinate { x: p.lon, y: p.lat })
.map(|p| Coord { x: p.lon, y: p.lat })
.collect::<Vec<_>>();
let polygon = Polygon::new(LineString::from(ring), vec![]);