diff --git a/src/typed/non_utf8/pathbuf.rs b/src/typed/non_utf8/pathbuf.rs index 8c461e8..9e6126c 100644 --- a/src/typed/non_utf8/pathbuf.rs +++ b/src/typed/non_utf8/pathbuf.rs @@ -92,7 +92,7 @@ impl TypedPathBuf { /// Allocates an empty [`TypedPathBuf`] as a Windows path. #[inline] pub fn windows() -> Self { - Self::Unix(UnixPathBuf::new()) + Self::Windows(WindowsPathBuf::new()) } /// Creates a new [`TypedPathBuf`] from the bytes representing a Unix path. diff --git a/src/typed/utf8/pathbuf.rs b/src/typed/utf8/pathbuf.rs index 13025c8..ed3e0a1 100644 --- a/src/typed/utf8/pathbuf.rs +++ b/src/typed/utf8/pathbuf.rs @@ -95,7 +95,7 @@ impl Utf8TypedPathBuf { /// Allocates an empty [`Utf8TypedPathBuf`] as a Windows path. #[inline] pub fn windows() -> Self { - Self::Unix(Utf8UnixPathBuf::new()) + Self::Windows(Utf8WindowsPathBuf::new()) } /// Creates a new [`Utf8TypedPathBuf`] from the bytes representing a Unix path.