We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b144218 commit 17d010cCopy full SHA for 17d010c
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "compare_version"
3
-version = "1.2.3"
+version = "1.2.4"
4
readme = "README.md"
5
edition = "2024"
6
authors = ["root@ltpp.vip"]
src/compare_version/impl.rs
@@ -24,7 +24,7 @@ impl Version {
24
));
25
};
26
let major: u32 = parts
27
- .get(0)
+ .first()
28
.unwrap_or(&"0")
29
.parse::<u32>()
30
.map_err(|_| VersionError::MajorVersionError)?;
0 commit comments