diff --git a/src/lib.rs b/src/lib.rs index 7dba709..24a5cc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,9 @@ pub use mio_serial::{ }; use tokio::io::{AsyncRead, AsyncWrite, ReadBuf}; + +#[cfg(unix)] +use std::convert::TryFrom; use std::io::{Read, Result as IoResult, Write}; use std::pin::Pin; use std::task::{Context, Poll};