File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " bin-encode-decode"
3- version = " 1.1.26 "
3+ version = " 1.1.27 "
44readme = " README.md"
55edition = " 2024"
66authors = [" root@ltpp.vip" ]
Original file line number Diff line number Diff 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 ! (
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use crate::*;
88///
99/// - `Charset<'a>` - New instance with empty charset.
1010impl < ' 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 }
You can’t perform that action at this time.
0 commit comments