Skip to content

Commit

Permalink
tests/util: follow clippy advice for cleaner code
Browse files Browse the repository at this point in the history
  • Loading branch information
niyaznigmatullin committed Jul 8, 2022
1 parent b81a390 commit 6283227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,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.to_string());
log_info(
"symlink",
&format!("{},{}", &original, &self.plus_as_string(link)),
Expand All @@ -727,7 +727,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.to_string());
log_info(
"symlink",
&format!("{},{}", &original, &self.plus_as_string(link)),
Expand Down

0 comments on commit 6283227

Please sign in to comment.