Skip to content

Commit

Permalink
Merge pull request #64 from cakebaker/tests_use_main_separator_str
Browse files Browse the repository at this point in the history
util.rs: use MAIN_SEPARATOR_STR
  • Loading branch information
sylvestre authored Apr 18, 2024
2 parents 5e0aac1 + 933349e commit b5bafe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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;
Expand Down Expand Up @@ -993,7 +993,7 @@ impl AtPath {

pub fn relative_symlink_file(&self, original: &str, link: &str) {
#[cfg(windows)]
let original = original.replace('/', &MAIN_SEPARATOR.to_string());
let original = original.replace('/', &MAIN_SEPARATOR_STR);
log_info(
"symlink",
format!("{},{}", &original, &self.plus_as_string(link)),
Expand All @@ -1015,7 +1015,7 @@ impl AtPath {

pub fn relative_symlink_dir(&self, original: &str, link: &str) {
#[cfg(windows)]
let original = original.replace('/', &MAIN_SEPARATOR.to_string());
let original = original.replace('/', &MAIN_SEPARATOR_STR);
log_info(
"symlink",
format!("{},{}", &original, &self.plus_as_string(link)),
Expand Down

0 comments on commit b5bafe7

Please sign in to comment.