refactor(fs): use type aliases

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

View file

@ -3,10 +3,10 @@ use crate::fs::{DirItem, DirItemIterator, Result};
use super::{ use super::{
path::{DirMarker, PathReal}, 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 /// Creates a new, empty directory at the path
/// ///
/// Wrapper for [std::fs::create_dir] /// Wrapper for [std::fs::create_dir]

View file

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