Skip to content

Commit

Permalink
fix warning on windows and don't also break unix
Browse files Browse the repository at this point in the history
  • Loading branch information
estokes committed Dec 31, 2024
1 parent 20af9e8 commit 0fc9637
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 0fc9637

Please sign in to comment.