Skip to content

Commit f830895

Browse files
committed
feat: v0.3.8
1 parent b1e37cd commit f830895

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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 = "udp-request"
3-
version = "0.3.7"
3+
version = "0.3.8"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/response/response_binary/impl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/response/response_text/impl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)