Skip to content

Commit 67d518b

Browse files
authored
Update MSRV to 1.94 and update rust deps (#1552)
* Update MSRV to 1.95 and update rust deps * Fix * Set MSRV to 1.94
1 parent 8f854f6 commit 67d518b

3 files changed

Lines changed: 44 additions & 44 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "deebot_client"
33
version = "0.0.0"
44
edition = "2024"
55
authors = ["Robert Resch <robert@resch.dev>"]
6-
rust-version = "1.87"
6+
rust-version = "1.94"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99
[lib]
@@ -13,23 +13,23 @@ crate-type = ["cdylib", "rlib"]
1313
[dependencies]
1414
base64 = "0.22.1"
1515
byteorder = "1.5.0"
16-
crc32fast = "1.4.2"
17-
image = { version = "0.25.5", default-features = false }
18-
liblzma = "0.4.0"
19-
log = "0.4.26"
20-
once_cell = "1.20.3"
21-
png = "0.18.0"
22-
pyo3 = "0.28.0"
16+
crc32fast = "1.5.0"
17+
image = { version = "0.25.10", default-features = false }
18+
liblzma = "0.4.6"
19+
log = "0.4.29"
20+
once_cell = "1.21.4"
21+
png = "0.18.1"
22+
pyo3 = "0.28.3"
2323
pyo3-log = ">=0.13.1"
2424
svg = "0.18.0"
2525
zstd = "0.13.3"
2626
serde = { version = "1.0", features = ["derive"] }
2727
serde_json = "1.0"
28-
ordermap = "1.0.0"
28+
ordermap = "1.2.0"
2929
itertools = "0.14.0"
3030

3131
[dev-dependencies]
32-
rstest = "0.26.0"
32+
rstest = "0.26.1"
3333
strum = "0.28.0"
3434
strum_macros = "0.28.0"
3535

src/map/map_info.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ fn process_map_info_outline_entries(data: &[String]) -> Vec<MapInfoTypeDataEntry
236236

237237
for spec in parts {
238238
let mut coords = spec.splitn(3, ','); // coordinates are "x,y,type"
239-
if let (Some(x_str), Some(y_str)) = (coords.next(), coords.next()) {
240-
if let (Ok(x), Ok(y)) = (x_str.parse::<f32>(), y_str.parse::<f32>()) {
241-
path_points.push(Point {
242-
x,
243-
y,
244-
connected: coords.next().unwrap_or("1").trim() != "3-1-0",
245-
});
246-
}
239+
if let (Some(x_str), Some(y_str)) = (coords.next(), coords.next())
240+
&& let (Ok(x), Ok(y)) = (x_str.parse::<f32>(), y_str.parse::<f32>())
241+
{
242+
path_points.push(Point {
243+
x,
244+
y,
245+
connected: coords.next().unwrap_or("1").trim() != "3-1-0",
246+
});
247247
}
248248
}
249249

0 commit comments

Comments
 (0)