Skip to content

Commit dd53408

Browse files
committed
Move test::loc's use statements up
Since they have the same effect even down where that is not intuitive.
1 parent dea1746 commit dd53408

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

gix-path/src/env/git.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ mod tests {
192192

193193
#[cfg(windows)]
194194
mod loc {
195+
use std::ffi::{OsStr, OsString};
196+
use std::io::ErrorKind;
197+
use std::path::{Path, PathBuf};
198+
199+
use known_folders::{get_known_folder_path, KnownFolder};
200+
use windows::core::Result as WindowsResult;
201+
use windows::Win32::Foundation::BOOL;
202+
use windows::Win32::System::Threading::{GetCurrentProcess, IsWow64Process};
203+
use winreg::enums::{HKEY_LOCAL_MACHINE, KEY_QUERY_VALUE};
204+
use winreg::RegKey;
205+
195206
macro_rules! var_os_stub {
196207
{ $($name:expr => $value:expr),* $(,)? } => {
197208
|key| {
@@ -305,17 +316,6 @@ mod tests {
305316
);
306317
}
307318

308-
use std::ffi::{OsStr, OsString};
309-
use std::io::ErrorKind;
310-
use std::path::{Path, PathBuf};
311-
312-
use known_folders::{get_known_folder_path, KnownFolder};
313-
use windows::core::Result as WindowsResult;
314-
use windows::Win32::Foundation::BOOL;
315-
use windows::Win32::System::Threading::{GetCurrentProcess, IsWow64Process};
316-
use winreg::enums::{HKEY_LOCAL_MACHINE, KEY_QUERY_VALUE};
317-
use winreg::RegKey;
318-
319319
trait Current: Sized {
320320
fn current() -> WindowsResult<Self>;
321321
}

0 commit comments

Comments
 (0)