fix(ics): drop test-only imports already provided by use super::*
CI / Check (pull_request) Successful in 5m21s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped

CI compiles the test build with RUSTFLAGS=-D warnings; the two explicit
tokio::io trait imports in the modbus test module were redundant with
`use super::*` and failed the "Main Tests" step as unused imports.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-07-16 18:19:18 +02:00
co-authored by Claude Opus 4.8
parent 5e8250f7e9
commit e59c8add18
@@ -134,7 +134,6 @@ fn parse_device_id(pdu: &[u8]) -> Option<DeviceId> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use tokio::io::AsyncReadExt as _;
use tokio::net::TcpListener; use tokio::net::TcpListener;
/// A one-shot mock Modbus/TCP server that answers a Read Holding Registers /// A one-shot mock Modbus/TCP server that answers a Read Holding Registers
@@ -168,7 +167,6 @@ mod tests {
frame.extend_from_slice(&len.to_be_bytes()); frame.extend_from_slice(&len.to_be_bytes());
frame.push(hdr[6]); frame.push(hdr[6]);
frame.extend_from_slice(&reply_pdu); frame.extend_from_slice(&reply_pdu);
use tokio::io::AsyncWriteExt as _;
if sock.write_all(&frame).await.is_err() { if sock.write_all(&frame).await.is_err() {
break; break;
} }