install: Fix check for windows build (#295)

This commit is contained in:
Jon C 2024-03-19 07:20:27 +01:00 committed by GHA: Update Upstream From Fork
parent 01e48239be
commit e39bd8d11d
1 changed files with 1 additions and 1 deletions

View File

@ -1173,7 +1173,7 @@ pub fn init_or_update(config_file: &str, is_init: bool, check_only: bool) -> Res
)
.map_err(|err| match err.raw_os_error() {
#[cfg(windows)]
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD => {
Some(os_err) if os_err == winapi::shared::winerror::ERROR_PRIVILEGE_NOT_HELD as i32 => {
"You need to run this command with administrator privileges.".to_string()
}
_ => format!(