From cc15876bb792e0b33313a4e56960555a6df37db6 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Tue, 19 Dec 2023 22:16:03 +0100 Subject: [PATCH] uucore/fsext: merge some windows imports --- src/uucore/src/lib/features/fsext.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/uucore/src/lib/features/fsext.rs b/src/uucore/src/lib/features/fsext.rs index 1dd536d47..394d70b6a 100644 --- a/src/uucore/src/lib/features/fsext.rs +++ b/src/uucore/src/lib/features/fsext.rs @@ -25,11 +25,13 @@ use std::ffi::OsStr; #[cfg(windows)] use std::os::windows::ffi::OsStrExt; #[cfg(windows)] -use windows_sys::Win32::Foundation::{ERROR_NO_MORE_FILES, INVALID_HANDLE_VALUE}; -#[cfg(windows)] -use windows_sys::Win32::Storage::FileSystem::{ +use windows_sys::Win32::{ + Foundation::{ERROR_NO_MORE_FILES, INVALID_HANDLE_VALUE}, + Storage::FileSystem::{ FindFirstVolumeW, FindNextVolumeW, FindVolumeClose, GetDiskFreeSpaceW, GetDriveTypeW, GetVolumeInformationW, GetVolumePathNamesForVolumeNameW, QueryDosDeviceW, + }, + System::WindowsProgramming::DRIVE_REMOTE, }; #[cfg(windows)] use windows_sys::Win32::System::WindowsProgramming::DRIVE_REMOTE;