style: move unix-specific imports into unix section

This commit is contained in:
Samuel Tardieu 2023-02-06 12:03:20 +01:00
parent f986415ef7
commit 6377b4f502

View file

@ -1,6 +1,5 @@
use std::sync::atomic::{AtomicBool, Ordering};
use std::io;
use std::sync::{Mutex, Once};
use std::{io, thread};
use once_cell::sync::Lazy;
use slab::Slab;
@ -56,6 +55,8 @@ mod platform {
use std::os::unix::io::{IntoRawFd as _, RawFd};
use std::os::unix::net::UnixDatagram;
use std::panic::AssertUnwindSafe;
use std::sync::atomic::{AtomicBool, Ordering};
use std::thread;
use libc::{c_int, SIGINT, SIGTERM};