Skip to content

Commit 17d010c

Browse files
committed
feat: v1.2.4
1 parent b144218 commit 17d010c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "compare_version"
3-
version = "1.2.3"
3+
version = "1.2.4"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/compare_version/impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl Version {
2424
));
2525
};
2626
let major: u32 = parts
27-
.get(0)
27+
.first()
2828
.unwrap_or(&"0")
2929
.parse::<u32>()
3030
.map_err(|_| VersionError::MajorVersionError)?;

0 commit comments

Comments
 (0)