Skip to content

Commit a21951e

Browse files
committed
feat: v1.1.27
1 parent 4be7ef2 commit a21951e

File tree

3 files changed

+5
-2
lines changed

3 files changed

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

src/common/error/impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ impl fmt::Display for EncodeError {
1313
/// # Returns
1414
///
1515
/// - `fmt::Result` - Result of the formatting operation.
16+
#[inline(always)]
1617
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1718
match self {
1819
EncodeError::CharsetError => write!(
@@ -36,6 +37,7 @@ impl fmt::Display for DecodeError {
3637
/// # Returns
3738
///
3839
/// - `fmt::Result` - Result of the formatting operation.
40+
#[inline(always)]
3941
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
4042
match self {
4143
DecodeError::CharsetError => write!(

src/common/impl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::*;
88
///
99
/// - `Charset<'a>` - New instance with empty charset.
1010
impl<'a> Default for Charset<'a> {
11+
#[inline(always)]
1112
fn default() -> Self {
1213
Charset("")
1314
}
@@ -19,7 +20,7 @@ impl<'a> Charset<'a> {
1920
/// # Returns
2021
///
2122
/// - `Charset<'a>` - New instance with empty charset.
22-
#[inline]
23+
#[inline(always)]
2324
pub fn new() -> Self {
2425
Charset::default()
2526
}

0 commit comments

Comments
 (0)