From 6377b4f502450c49d7d117bc934480c7fddb1c99 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Mon, 6 Feb 2023 12:03:20 +0100 Subject: [PATCH] style: move unix-specific imports into unix section --- src/cleanup_guard.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cleanup_guard.rs b/src/cleanup_guard.rs index db149b1f3..e7fecc0ef 100644 --- a/src/cleanup_guard.rs +++ b/src/cleanup_guard.rs @@ -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};