Skip to content

Commit

Permalink
tweak filesystem impl privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jun 28, 2024
1 parent b13c027 commit bf9732d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ mod os {
}
}

pub struct OsRandomAccessFile {
struct OsRandomAccessFile {
file: fs::File,
}

Expand Down Expand Up @@ -261,7 +261,7 @@ mod mmap {
}
}

pub struct MmapRandomAccessFile {
struct MmapRandomAccessFile {
mmap: Mmap,
}

Expand All @@ -282,7 +282,7 @@ mod mmap {
#[cfg(all(feature = "mmap", target_pointer_width = "64"))]
pub use mmap::MmapFilesystem;

#[cfg(any(unix, windows, feature = "mmap"))]
#[cfg(any(unix, windows, all(feature = "mmap", target_pointer_width = "64")))]
fn regular_file_size_impl(path: &Path) -> io::Result<u64> {
let meta = path.metadata()?;
if !meta.is_file() {
Expand All @@ -294,7 +294,7 @@ fn regular_file_size_impl(path: &Path) -> io::Result<u64> {
Ok(meta.len())
}

#[cfg(any(unix, windows, feature = "mmap"))]
#[cfg(any(unix, windows, all(feature = "mmap", target_pointer_width = "64")))]
fn read_dir_impl(path: &Path) -> io::Result<Vec<PathBuf>> {
fs::read_dir(path)?
.map(|maybe_entry| maybe_entry.map(|entry| entry.path().to_owned()))
Expand Down

0 comments on commit bf9732d

Please sign in to comment.