diff --git a/my-no-sql-tcp-shared/src/common_deserializes.rs b/my-no-sql-tcp-shared/src/common_deserializes.rs index 2723a81..a92b502 100644 --- a/my-no-sql-tcp-shared/src/common_deserializes.rs +++ b/my-no-sql-tcp-shared/src/common_deserializes.rs @@ -14,8 +14,8 @@ pub async fn read_pascal_string( Ok(String::from_utf8(result)?) } -pub async fn read_list_of_pascal_strings( - reader: &mut impl SocketReader, +pub async fn read_list_of_pascal_strings( + reader: &mut TSocketReader, ) -> Result, ReadingTcpContractFail> { let amount = reader.read_i32().await? as usize; @@ -28,8 +28,8 @@ pub async fn read_list_of_pascal_strings( Ok(result) } -pub async fn read_date_time_opt( - reader: &mut impl SocketReader, +pub async fn read_date_time_opt( + reader: &mut TSocketReader, ) -> Result, ReadingTcpContractFail> { let unix_microseconds = reader.read_i64().await?; diff --git a/my-no-sql-tcp-shared/src/tcp_contracts.rs b/my-no-sql-tcp-shared/src/tcp_contracts.rs index aa498ea..59b5b36 100644 --- a/my-no-sql-tcp-shared/src/tcp_contracts.rs +++ b/my-no-sql-tcp-shared/src/tcp_contracts.rs @@ -106,7 +106,7 @@ impl MyNoSqlTcpContract { } } - pub async fn deserialize( + pub async fn deserialize( socket_reader: &mut TSocketReader, ) -> Result { let packet_no = socket_reader.read_byte().await?;