Skip to content

Commit

Permalink
fix warnings on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
estokes committed Dec 31, 2024
1 parent 5d15833 commit dccc762
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,18 @@ mod os_prelude {
pub use mio::windows::NamedPipe;
pub use serialport::COMPort as NativeBlockingSerialPort;
pub use std::ffi::OsStr;
pub use std::io::{self, Read, Write};
pub use std::io;
pub use std::mem;
pub use std::os::windows::ffi::OsStrExt;
pub use std::os::windows::io::{AsRawHandle, FromRawHandle, RawHandle};
pub use std::os::windows::io::{FromRawHandle, RawHandle};
pub use std::path::Path;
pub use std::ptr;
pub use std::time::Duration;
pub use winapi::shared::minwindef::TRUE;
pub use winapi::um::commapi::SetCommTimeouts;
pub use winapi::um::fileapi::*;
pub use winapi::um::handleapi::{DuplicateHandle, INVALID_HANDLE_VALUE};
pub use winapi::um::processthreadsapi::GetCurrentProcess;
pub use winapi::um::handleapi::INVALID_HANDLE_VALUE;
pub use winapi::um::winbase::{COMMTIMEOUTS, FILE_FLAG_OVERLAPPED};
pub use winapi::um::winnt::{
DUPLICATE_SAME_ACCESS, FILE_ATTRIBUTE_NORMAL, GENERIC_READ, GENERIC_WRITE, HANDLE,
FILE_ATTRIBUTE_NORMAL, GENERIC_READ, GENERIC_WRITE, HANDLE,
};
}
use os_prelude::*;
Expand Down

0 comments on commit dccc762

Please sign in to comment.