From d3672fb75eeba30ec263f614f5d34f0ca0bd27d8 Mon Sep 17 00:00:00 2001 From: gnxlxnxx Date: Tue, 11 Jan 2022 08:45:16 +0100 Subject: [PATCH] derive debug for TTYPort and COMPort --- serial-unix/src/tty.rs | 1 + serial-windows/src/com.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/serial-unix/src/tty.rs b/serial-unix/src/tty.rs index 1beddc0..e64c0c2 100644 --- a/serial-unix/src/tty.rs +++ b/serial-unix/src/tty.rs @@ -28,6 +28,7 @@ const O_NOCTTY: c_int = 0; /// A TTY-based serial port implementation. /// /// The port will be closed when the value is dropped. +#[derive(Debug)] pub struct TTYPort { fd: RawFd, timeout: Duration, diff --git a/serial-windows/src/com.rs b/serial-windows/src/com.rs index ba1b0cb..503ce58 100644 --- a/serial-windows/src/com.rs +++ b/serial-windows/src/com.rs @@ -17,6 +17,7 @@ use ffi::*; /// A serial port implementation for Windows COM ports. /// /// The port will be closed when the value is dropped. +#[derive(Debug)] pub struct COMPort { handle: HANDLE, timeout: Duration,