From 6283227d3755228c1d0412c7e39f00e2e6c4b80a Mon Sep 17 00:00:00 2001 From: Niyaz Nigmatullin Date: Fri, 8 Jul 2022 09:05:55 +0300 Subject: [PATCH] tests/util: follow clippy advice for cleaner code --- tests/common/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index bd73bbf326d..7fee86b3d9f 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -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)), @@ -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)),