summaryrefslogtreecommitdiff
path: root/crates/utils/tcp_connection/tcp_connection_test
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-10-13 14:27:59 +0800
committerGitHub <noreply@github.com>2025-10-13 14:27:59 +0800
commitb9bbfb31bee88f6b10a9cc5b49e7618bef9d0be5 (patch)
treeef02095c73635b5ace574c26dfcb999017e34897 /crates/utils/tcp_connection/tcp_connection_test
parentc1d862d6df58173c24604e4dda33db8ce3be3ad7 (diff)
parent4810f56e6a49b60923eb850d5944457650c81c75 (diff)
Merge pull request #21 from JustEnoughVCS/jvcs_dev
Jvcs dev
Diffstat (limited to 'crates/utils/tcp_connection/tcp_connection_test')
-rw-r--r--crates/utils/tcp_connection/tcp_connection_test/src/test_msgpack.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/crates/utils/tcp_connection/tcp_connection_test/src/test_msgpack.rs b/crates/utils/tcp_connection/tcp_connection_test/src/test_msgpack.rs
index 7a7dc1f..4c9c870 100644
--- a/crates/utils/tcp_connection/tcp_connection_test/src/test_msgpack.rs
+++ b/crates/utils/tcp_connection/tcp_connection_test/src/test_msgpack.rs
@@ -9,21 +9,12 @@ use crate::test_utils::{
target_configure::ServerTargetConfig,
};
-#[derive(Debug, PartialEq, Serialize, Deserialize)]
+#[derive(Debug, PartialEq, Serialize, Deserialize, Default)]
struct TestData {
id: u32,
name: String,
}
-impl Default for TestData {
- fn default() -> Self {
- Self {
- id: 0,
- name: String::new(),
- }
- }
-}
-
pub(crate) struct MsgPackClientHandle;
impl ClientHandle<MsgPackServerHandle> for MsgPackClientHandle {