Skip to content

Commit 4be7ef2

Browse files
committed
feat: v1.1.26
1 parent b386bec commit 4be7ef2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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 = "bin-encode-decode"
3-
version = "1.1.25"
3+
version = "1.1.26"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/common/error/impl.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ impl fmt::Display for EncodeError {
1717
match self {
1818
EncodeError::CharsetError => write!(
1919
f,
20-
"EncodeError: Charset is invalid. Please ensure the charset contains exactly {} unique characters.",
21-
CHARSET_LEN
20+
"EncodeError: Charset is invalid. Please ensure the charset contains exactly {CHARSET_LEN} unique characters."
2221
),
2322
}
2423
}
@@ -41,8 +40,7 @@ impl fmt::Display for DecodeError {
4140
match self {
4241
DecodeError::CharsetError => write!(
4342
f,
44-
"DecodeError: Charset is invalid. Please ensure the charset contains exactly {} unique characters.",
45-
CHARSET_LEN
43+
"DecodeError: Charset is invalid. Please ensure the charset contains exactly {CHARSET_LEN} unique characters."
4644
),
4745
}
4846
}

0 commit comments

Comments
 (0)