util: fix compile failed on Windows.

Use  `std::path::MAIN_SEPARATOR_STR` instead of `std::path::MAIN_SEPARATOR`
This commit is contained in:
Krysztal112233 2024-03-23 17:13:07 +08:00
parent 6f5dfa3c46
commit a61761f090
No known key found for this signature in database
GPG key ID: 331615739A596A02

View file

@ -33,7 +33,7 @@ use std::os::unix::process::ExitStatusExt;
#[cfg(windows)]
use std::os::windows::fs::{symlink_dir, symlink_file};
#[cfg(windows)]
use std::path::MAIN_SEPARATOR;
use std::path::MAIN_SEPARATOR_STR;
use std::path::{Path, PathBuf};
use std::process::{Child, Command, ExitStatus, Output, Stdio};
use std::rc::Rc;