mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
lint: fix clippy::manual_main_separator_str
for util.rs
on Windows cfg.
This commit is contained in:
parent
d21dc125d0
commit
1484d06887
1 changed files with 2 additions and 2 deletions
|
@ -1016,7 +1016,7 @@ impl AtPath {
|
||||||
|
|
||||||
pub fn relative_symlink_file(&self, original: &str, link: &str) {
|
pub fn relative_symlink_file(&self, original: &str, link: &str) {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let original = original.replace('/', &MAIN_SEPARATOR.to_string());
|
let original = original.replace('/', std::path::MAIN_SEPARATOR_STR);
|
||||||
log_info(
|
log_info(
|
||||||
"symlink",
|
"symlink",
|
||||||
format!("{},{}", &original, &self.plus_as_string(link)),
|
format!("{},{}", &original, &self.plus_as_string(link)),
|
||||||
|
@ -1038,7 +1038,7 @@ impl AtPath {
|
||||||
|
|
||||||
pub fn relative_symlink_dir(&self, original: &str, link: &str) {
|
pub fn relative_symlink_dir(&self, original: &str, link: &str) {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let original = original.replace('/', &MAIN_SEPARATOR.to_string());
|
let original = original.replace('/', std::path::MAIN_SEPARATOR_STR);
|
||||||
log_info(
|
log_info(
|
||||||
"symlink",
|
"symlink",
|
||||||
format!("{},{}", &original, &self.plus_as_string(link)),
|
format!("{},{}", &original, &self.plus_as_string(link)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue