refactor(fs): use type aliases
This commit is contained in:
parent
08d994cd6b
commit
e629cb2a82
2 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||||
|
|
|
@ -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.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue