Skip to content

Commit 995e2c7

Browse files
committed
Fix warnings.
1 parent 9159f69 commit 995e2c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/example_ffi.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#[cfg(any(unix, target_os = "wasi"))]
77
use crate::{BorrowedFd, OwnedFd};
88
#[cfg(windows)]
9-
use crate::{BorrowedHandle, HandleOrInvalid, OwnedHandle};
9+
use crate::{BorrowedHandle, HandleOrInvalid};
1010

1111
#[cfg(any(unix, target_os = "wasi"))]
1212
use libc::{c_char, c_int, c_void, size_t, ssize_t};
@@ -35,9 +35,9 @@ extern "C" {
3535
#[cfg(any(unix, target_os = "wasi"))]
3636
pub use libc::{O_CLOEXEC, O_CREAT, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY};
3737

38-
/// The Windows analogs of the above. Note the use of [`HandleOrInvalid`] as
39-
/// the return type for `CreateFileW`, since that function is defined to return
40-
/// [`INVALID_HANDLE_VALUE`] on error instead of null.
38+
// The Windows analogs of the above. Note the use of [`HandleOrInvalid`] as
39+
// the return type for `CreateFileW`, since that function is defined to return
40+
// [`INVALID_HANDLE_VALUE`] on error instead of null.
4141
#[cfg(windows)]
4242
extern "system" {
4343
pub fn CreateFileW(

tests/niche-optimizations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ use std::mem::size_of;
77
#[cfg(any(unix, target_os = "wasi"))]
88
use io_lifetimes::{BorrowedFd, OwnedFd};
99
#[cfg(windows)]
10-
use io_lifetimes::{BorrowedHandle, BorrowedSocket, OwnedHandle, OwnedSocket};
10+
use io_lifetimes::{BorrowedSocket, OwnedSocket};
1111

1212
#[cfg(unix)]
1313
use std::os::unix::io::RawFd;
1414
#[cfg(target_os = "wasi")]
1515
use std::os::wasi::io::RawFd;
1616
#[cfg(windows)]
17-
use std::os::windows::io::{RawHandle, RawSocket};
17+
use std::os::windows::io::RawSocket;
1818

1919
#[cfg(all(rustc_attrs, any(unix, target_os = "wasi")))]
2020
#[test]

0 commit comments

Comments
 (0)