Skip to content

Commit cf826bf

Browse files
committed
Some small cleanups
1 parent 3b8971a commit cf826bf

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/sys/unix/uds/socketaddr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ impl fmt::Debug for SocketAddr {
109109
}
110110
}
111111

112-
// ===== impl AsciiEscaped =====
113-
114112
impl<'a> fmt::Display for AsciiEscaped<'a> {
115113
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
116114
write!(fmt, "\"")?;

src/sys/windows/afd.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,16 @@ impl Afd {
112112
}
113113

114114
cfg_io_source! {
115-
use miow::iocp::CompletionPort;
116-
use ntapi::ntioapi::FILE_OPEN;
117-
use ntapi::ntioapi::NtCreateFile;
118115
use std::mem::zeroed;
119116
use std::os::windows::io::{FromRawHandle, RawHandle};
120117
use std::sync::atomic::{AtomicUsize, Ordering};
118+
119+
use miow::iocp::CompletionPort;
120+
use ntapi::ntioapi::{NtCreateFile, FILE_OPEN};
121121
use winapi::shared::ntdef::{OBJECT_ATTRIBUTES, UNICODE_STRING, USHORT, WCHAR};
122122
use winapi::um::handleapi::INVALID_HANDLE_VALUE;
123123
use winapi::um::winbase::{SetFileCompletionNotificationModes, FILE_SKIP_SET_EVENT_ON_HANDLE};
124-
use winapi::um::winnt::SYNCHRONIZE;
125-
use winapi::um::winnt::{FILE_SHARE_READ, FILE_SHARE_WRITE};
124+
use winapi::um::winnt::{SYNCHRONIZE, FILE_SHARE_READ, FILE_SHARE_WRITE};
126125

127126
const AFD_HELPER_ATTRIBUTES: OBJECT_ATTRIBUTES = OBJECT_ATTRIBUTES {
128127
Length: size_of::<OBJECT_ATTRIBUTES>() as ULONG,

src/sys/windows/io_status_block.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
use ntapi::ntioapi::IO_STATUS_BLOCK;
21
use std::fmt;
32
use std::ops::{Deref, DerefMut};
43

4+
use ntapi::ntioapi::IO_STATUS_BLOCK;
5+
56
pub struct IoStatusBlock(IO_STATUS_BLOCK);
67

78
cfg_io_source! {

0 commit comments

Comments
 (0)