Skip to content

Commit 2fc48a1

Browse files
committed
Adapt gix-path tests to changes in windows
Bumping the `windows` dev-dependency of `gix-path` from 0.58.0 to 0.61.1 broke the use of `windows::Win32::Foundation::BOOL`, since `BOOL` is now `windows::core::BOOL` (and also available through the `windows_core` crate). It is not immediately obvious from the changelog at what point the change occurred. (A seemingly related change is described for the newer version microsoft/windows-rs#3441. See microsoft/windows-rs#3441 for context.) This imports `BOOL` from `windows::core` to adjust.
1 parent 417917f commit 2fc48a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gix-path/src/env/git/tests.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ mod locations {
77
use std::path::{Path, PathBuf};
88

99
use known_folders::{get_known_folder_path, KnownFolder};
10-
use windows::core::Result as WindowsResult;
11-
use windows::Win32::Foundation::BOOL;
10+
use windows::core::{Result as WindowsResult, BOOL};
1211
use windows::Win32::System::Threading::{GetCurrentProcess, IsWow64Process};
1312
use winreg::enums::{HKEY_LOCAL_MACHINE, KEY_QUERY_VALUE};
1413
use winreg::RegKey;

0 commit comments

Comments
 (0)