refactor(fs): use type aliases

This commit is contained in:
Paul Campbell 2024-11-03 11:28:00 +00:00
parent 08d994cd6b
commit e629cb2a82
2 changed files with 4 additions and 4 deletions

View file

@ -3,10 +3,10 @@ use crate::fs::{DirItem, DirItemIterator, Result};
use super::{
path::{DirMarker, PathReal},
Error, FileMarker, PathMarker,
DirHandle, Error, FileMarker, PathMarker,
};
impl<'base, 'path> PathReal<'base, 'path, DirMarker> {
impl<'base, 'path> DirHandle<'base, 'path> {
/// Creates a new, empty directory at the path
///
/// Wrapper for [std::fs::create_dir]

View file

@ -4,10 +4,10 @@ use crate::fs::Result;
use super::{
path::{FileMarker, PathReal},
reader::Reader,
Error,
Error, FileHandle,
};
impl<'base, 'path> PathReal<'base, 'path, FileMarker> {
impl<'base, 'path> FileHandle<'base, 'path> {
/// Returns a [Reader] for the file.
///
/// ```