From a61761f090351f797d622cee62bf7f0701b210f6 Mon Sep 17 00:00:00 2001 From: Krysztal112233 Date: Sat, 23 Mar 2024 17:13:07 +0800 Subject: [PATCH] util: fix compile failed on Windows. Use `std::path::MAIN_SEPARATOR_STR` instead of `std::path::MAIN_SEPARATOR` --- tests/common/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index 6ec65ff7f..19ef8317a 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -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;