Skip to content

Commit c98d355

Browse files
committed
feat: v2.3.3
1 parent eb31721 commit c98d355

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
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 = "tcp-request"
3-
version = "2.3.2"
3+
version = "2.3.3"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/request/request_builder/impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/response/response_binary/impl.rs

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

src/response/response_text/impl.rs

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

0 commit comments

Comments
 (0)