Skip to content

Commit eaf1dda

Browse files
committed
feat: v2.0.4
1 parent 977a1a5 commit eaf1dda

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
toolchain: stable
8989
components: clippy
9090
- name: Run clippy
91-
run: cargo clippy --all-features -- -A warnings
91+
run: cargo clippy --all-features
9292

9393
build:
9494
needs: setup

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

src/config/impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ impl Default for ServerConfig {
77
/// # Returns
88
///
99
/// - `ServerConfig` - New config with default values.
10+
#[inline(always)]
1011
fn default() -> Self {
1112
Self {
1213
host: DEFAULT_HOST.to_owned(),

src/context/impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::*;
22

33
/// Implementation of InnerContext methods.
44
impl Default for InnerContext {
5+
#[inline(always)]
56
fn default() -> Self {
67
Self::new()
78
}
@@ -13,6 +14,7 @@ impl InnerContext {
1314
/// # Returns
1415
///
1516
/// - `InnerContext` - New context instance.
17+
#[inline(always)]
1618
pub fn new() -> Self {
1719
InnerContext {
1820
socket: None,

src/response/impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ impl Default for Response {
77
/// # Returns
88
///
99
/// - `Response` - New response with empty data.
10+
#[inline(always)]
1011
fn default() -> Self {
1112
Self(Vec::new())
1213
}
@@ -25,6 +26,7 @@ impl Response {
2526
/// # Returns
2627
///
2728
/// - `Response` - New response containing the data.
29+
#[inline(always)]
2830
pub fn from<T: Into<ResponseData>>(data: T) -> Self {
2931
Self(data.into())
3032
}

src/server/impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ impl Default for Server {
77
/// # Returns
88
///
99
/// - `Server` - New server instance with default values.
10+
#[inline(always)]
1011
fn default() -> Self {
1112
Self {
1213
config: Arc::new(RwLock::new(ServerConfig::default())),

0 commit comments

Comments
 (0)