File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed
Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " tcp-request"
3- version = " 2.3.2 "
3+ version = " 2.3.3 "
44readme = " README.md"
55edition = " 2024"
66authors = [" root@ltpp.vip" ]
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ impl RequestBuilder {
2222 /// # Returns
2323 ///
2424 /// - `RequestBuilder` - A new RequestBuilder with default configuration.
25+ #[ inline]
2526 pub fn new ( ) -> Self {
2627 Self :: default ( )
2728 }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ impl ResponseTrait for TcpResponseBinary {
1414 /// # Returns
1515 ///
1616 /// - `Self` - A new binary response instance.
17+ #[ inline]
1718 fn from ( response : & [ u8 ] ) -> Self
1819 where
1920 Self : Sized ,
@@ -26,6 +27,7 @@ impl ResponseTrait for TcpResponseBinary {
2627 /// # Returns
2728 ///
2829 /// - `Self::OutputBinary` - The binary response data.
30+ #[ inline]
2931 fn binary ( & self ) -> Self :: OutputBinary {
3032 self . clone ( )
3133 }
@@ -35,6 +37,7 @@ impl ResponseTrait for TcpResponseBinary {
3537 /// # Returns
3638 ///
3739 /// - `TcpResponseText` - The text representation of the response.
40+ #[ inline]
3841 fn text ( & self ) -> TcpResponseText {
3942 let data: String = String :: from_utf8_lossy ( & self ) . to_string ( ) ;
4043 data
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ impl ResponseTrait for TcpResponseText {
1414 /// # Returns
1515 ///
1616 /// - `Self::OutputText` - The text response instance.
17+ #[ inline]
1718 fn from ( response : & [ u8 ] ) -> Self :: OutputText
1819 where
1920 Self : Sized ,
@@ -26,6 +27,7 @@ impl ResponseTrait for TcpResponseText {
2627 /// # Returns
2728 ///
2829 /// - `Self::OutputText` - The text response data.
30+ #[ inline]
2931 fn text ( & self ) -> Self :: OutputText {
3032 self . clone ( )
3133 }
@@ -35,6 +37,7 @@ impl ResponseTrait for TcpResponseText {
3537 /// # Returns
3638 ///
3739 /// - `TcpResponseBinary` - The binary representation of the response.
40+ #[ inline]
3841 fn binary ( & self ) -> TcpResponseBinary {
3942 self . clone ( ) . into_bytes ( )
4043 }
You can’t perform that action at this time.
0 commit comments