Fix rust windows compiler issues

This commit is contained in:
Caelan Sayler
2024-01-01 18:41:32 +00:00
parent 25d3dabf27
commit 7857f3cc7f
2 changed files with 4 additions and 2 deletions

View File

@@ -219,7 +219,9 @@ impl BundleInfo<'_> {
// on windows, the zip paths are / and should be \ instead
#[cfg(target_os = "windows")]
let file_path_on_disk = file_path_on_disk.normalize_virtually();
let file_path_on_disk = file_path_on_disk.normalize_virtually()?;
#[cfg(target_os = "windows")]
let file_path_on_disk = file_path_on_disk.as_path();
debug!(" {} Extracting '{}' to '{}'", i, key, file_path_on_disk.to_string_lossy());
self.extract_zip_idx_to_path(i, &file_path_on_disk)?;

View File

@@ -6,7 +6,7 @@ use std::{
};
use winsafe::{self as w, co, prelude::*};
use super::bundle::Manifest;
use super::bundle::{self, Manifest, EntryNameInfo};
pub fn wait_for_parent_to_exit(ms_to_wait: u32) -> Result<()> {
info!("Reading parent process information.");