File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " udp-request"
3- version = " 0.3.7 "
3+ version = " 0.3.8 "
44readme = " README.md"
55edition = " 2024"
66authors = [" root@ltpp.vip" ]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ impl ResponseTrait for UdpResponseBinary {
1414 /// # Returns
1515 ///
1616 /// - `Self` - A new `UdpResponseBinary` instance.
17- #[ inline]
17+ #[ inline( always ) ]
1818 fn from ( response : & [ u8 ] ) -> Self
1919 where
2020 Self : Sized ,
@@ -27,7 +27,7 @@ impl ResponseTrait for UdpResponseBinary {
2727 /// # Returns
2828 ///
2929 /// - `Self::OutputBinary` - The binary data of the response.
30- #[ inline]
30+ #[ inline( always ) ]
3131 fn binary ( & self ) -> Self :: OutputBinary {
3232 self . clone ( )
3333 }
@@ -37,7 +37,7 @@ impl ResponseTrait for UdpResponseBinary {
3737 /// # Returns
3838 ///
3939 /// - `UdpResponseText` - The text representation of the response, with invalid UTF-8 sequences replaced.
40- #[ inline]
40+ #[ inline( always ) ]
4141 fn text ( & self ) -> UdpResponseText {
4242 let data: String = String :: from_utf8_lossy ( self ) . to_string ( ) ;
4343 data
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ impl ResponseTrait for UdpResponseText {
1717 /// # Returns
1818 ///
1919 /// - `Self::OutputText` - The text representation of the response.
20- #[ inline]
20+ #[ inline( always ) ]
2121 fn from ( response : & [ u8 ] ) -> Self :: OutputText
2222 where
2323 Self : Sized ,
@@ -30,7 +30,7 @@ impl ResponseTrait for UdpResponseText {
3030 /// # Returns
3131 ///
3232 /// - `Self::OutputText` - The text data of the response.
33- #[ inline]
33+ #[ inline( always ) ]
3434 fn text ( & self ) -> Self :: OutputText {
3535 self . clone ( )
3636 }
@@ -40,7 +40,7 @@ impl ResponseTrait for UdpResponseText {
4040 /// # Returns
4141 ///
4242 /// - `UdpResponseBinary` - The binary representation of the response.
43- #[ inline]
43+ #[ inline( always ) ]
4444 fn binary ( & self ) -> UdpResponseBinary {
4545 self . clone ( ) . into_bytes ( )
4646 }
You can’t perform that action at this time.
0 commit comments