From b8089f8d5842dff6b4a42bf5dfdeb24c02b71d76 Mon Sep 17 00:00:00 2001 From: johnwdjiang Date: Wed, 3 Feb 2021 16:02:24 +0800 Subject: [PATCH] hide private func --- src/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.rs b/src/output.rs index 7f4c5e0..008f3a9 100644 --- a/src/output.rs +++ b/src/output.rs @@ -10,7 +10,7 @@ use crate::exit_codes::ExitCode; use crate::filesystem::strip_current_dir; use crate::options::Options; -pub fn replace_path_separator(path: &str, new_path_separator: &str) -> String { +fn replace_path_separator(path: &str, new_path_separator: &str) -> String { path.replace(std::path::MAIN_SEPARATOR, &new_path_separator) }