Skip to content

Commit 78fd4f8

Browse files
committed
feat: v5.0.5
1 parent 5e7f4f7 commit 78fd4f8

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-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 = "tcplane"
3-
version = "5.0.4"
3+
version = "5.0.5"
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
@@ -4,6 +4,7 @@ use crate::*;
44
///
55
/// Provides a default server configuration with default host address, port, buffer size, and error handling function.
66
impl Default for ServerConfig {
7+
#[inline(always)]
78
fn default() -> Self {
89
Self {
910
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
/// Manages the internal state of the context.
44
impl Default for InnerContext {
5+
#[inline(always)]
56
fn default() -> Self {
67
Self {
78
stream: None,
@@ -18,6 +19,7 @@ impl InnerContext {
1819
/// # Returns
1920
///
2021
/// - `InnerContext` - A new instance of `InnerContext`.
22+
#[inline(always)]
2123
pub fn new() -> Self {
2224
Self::default()
2325
}

src/server/impl.rs

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

33
/// Default implementation for Server.
44
impl Default for Server {
5+
#[inline(always)]
56
fn default() -> Self {
67
Self {
78
config: Arc::new(RwLock::new(ServerConfig::default())),

0 commit comments

Comments
 (0)