Skip to content

Commit 4a34307

Browse files
committed
make helper funcs public
1 parent f7bc8a5 commit 4a34307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core/src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub fn u8_to_path(path: impl AsRef<[u8]>) -> PathBuf {
140140
///
141141
/// * `path` - The path to convert.
142142
#[must_use]
143-
pub fn typed_path_to_unix_path<'a>(path: &'a TypedPath<'_>) -> Cow<'a, UnixPath> {
143+
fn typed_path_to_unix_path<'a>(path: &'a TypedPath<'_>) -> Cow<'a, UnixPath> {
144144
match path {
145145
TypedPath::Unix(p) => Cow::Borrowed(p),
146146
TypedPath::Windows(p) => Cow::Owned(windows_path_to_unix_path(p)),
@@ -155,7 +155,7 @@ pub fn typed_path_to_unix_path<'a>(path: &'a TypedPath<'_>) -> Cow<'a, UnixPath>
155155
///
156156
/// * `path` - The path to convert.
157157
#[must_use]
158-
pub fn windows_path_to_unix_path(path: &WindowsPath) -> UnixPathBuf {
158+
fn windows_path_to_unix_path(path: &WindowsPath) -> UnixPathBuf {
159159
let mut unix_path = UnixPathBuf::new();
160160
let mut components = path.components();
161161
if let Some(c) = components.next() {

0 commit comments

Comments
 (0)