From d82f373056ad4020e220cd076869f1bc9ead2c9c Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 19 Sep 2024 22:22:12 +0200 Subject: [PATCH] Reorder fields to match ordering in header --- src/service/tcp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/service/tcp.rs b/src/service/tcp.rs index 5c7648e..0e2d08b 100644 --- a/src/service/tcp.rs +++ b/src/service/tcp.rs @@ -43,8 +43,8 @@ impl TransactionIdGenerator { #[derive(Debug)] pub(crate) struct Client { framed: Option>, - unit_id: UnitId, transaction_id_generator: TransactionIdGenerator, + unit_id: UnitId, } impl Client @@ -53,12 +53,12 @@ where { pub(crate) fn new(transport: T, slave: Slave) -> Self { let framed = Framed::new(transport, codec::tcp::ClientCodec::new()); - let unit_id: UnitId = slave.into(); let transaction_id_generator = TransactionIdGenerator::new(); + let unit_id: UnitId = slave.into(); Self { framed: Some(framed), - unit_id, transaction_id_generator, + unit_id, } }