Skip to content

Commit 22f5dba

Browse files
committed
feat: v1.2.5
1 parent 17d010c commit 22f5dba

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.4"
3+
version = "1.2.5"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/compare_version/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl fmt::Display for VersionError {
2828
/// - `fmt::Result` - Result of the formatting operation.
2929
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3030
match self {
31-
VersionError::ParseError(msg) => write!(f, "Parse error: {}", msg),
31+
VersionError::ParseError(msg) => write!(f, "Parse error: {msg}"),
3232
VersionError::InvalidRangeFormat => {
3333
write!(f, "Unsupported range format, only '^' or '~' are supported")
3434
}

0 commit comments

Comments
 (0)