diff --git a/src/client/rtu.rs b/src/client/rtu.rs index 1d2eb0d..d0280da 100644 --- a/src/client/rtu.rs +++ b/src/client/rtu.rs @@ -85,18 +85,7 @@ where server: Slave, request: Request<'a>, ) -> io::Result { - self.send_request_pdu(server, request).await - } - - async fn send_request_pdu<'a, R>( - &mut self, - server: Slave, - request_pdu: R, - ) -> io::Result - where - R: Into>, - { - let request_adu = request_adu(server, request_pdu); + let request_adu = request_adu(server, request); self.send_request_adu(request_adu).await }