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,